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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to retrieve/check filename from SQL Server

Status
Not open for further replies.

SarahG

Programmer
May 23, 2002
111
IE
Hi
I want to create a stored procedure which will check a directory, see if there are files in it and if so, will return the filenames. I know I can do it through Access but is there a way to do it from SQL Server, something similar to xp_cmdshell perhaps?
 
xp_fileexist will check if a file exists, not sure if it does for directories though.
There are others like xp_dirtree and xp_dirinfo, some of these might help.


"I'm living so far beyond my income that we may almost be said to be living apart
 
Thanks a million, these aren't listed on Books online, I just assumed everything was.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top