Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My question is: Is there a way to

Status
Not open for further replies.

AER

Programmer
Joined
Sep 10, 2001
Messages
1
Location
US
My question is:
Is there a way to make a straight call from stored procedure in SQL Server 7.0 to the file system ?

Sincerely,
Alex
 
There are no direct calls to the file system. You can use Bulk Insert to read a flat file and insert the data into a table with T-SQL. There are a number of extended stored procedures that allow access to the file system. These undocumented exetended stored procedures are listed at
I'm unclear of your exact need but hope this info helps. Terry L. Broadbent
Life would be easier if I had the source code. -Anonymous
 
It depends what do you want to do. For example if you have in your system scrrun32.dll, you may use FileSystemObject to gain acces to disk. For this you must use extended stored procedures sp_OACreate, sp_OAMethod to create and call methods from activeX objects.

Another way, much more limited is the extended stored procedure xp_cmdshell. With this you may call all dos commands.

xcata.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top