Hello
I am using the xp_fileexist command inside a stored proc to check to see if files that are created each night exist in a directory (hence check to see if they where created properly). Is there any way of outputting the result of the xp_fileexist command to a text file or even to a table.
i.e
EXEC master..xp_fileexist 'C:\Test\test.txt' brings back
File Exists File is a Directory Parent Directory Exists
----------- ------------------- -----------------------
1 1 1
How would I get this output in a text file from within a Stored Proc?
Thanks
I am using the xp_fileexist command inside a stored proc to check to see if files that are created each night exist in a directory (hence check to see if they where created properly). Is there any way of outputting the result of the xp_fileexist command to a text file or even to a table.
i.e
EXEC master..xp_fileexist 'C:\Test\test.txt' brings back
File Exists File is a Directory Parent Directory Exists
----------- ------------------- -----------------------
1 1 1
How would I get this output in a text file from within a Stored Proc?
Thanks