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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.