Hello
I have select SQL statement in my Stored procedure. Now, I want to load data from sql to text file.
Can anyone suggest me the ways to do it? I know one SQL to load data from sql table to text file
i.e.
EXEC
master..xp_cmdshell 'bcp "Execute sp_Test " queryout "\\testserver\Files\testfile.txt" -c -S[yourserver/instancename] -T'
Is there any other option than this? Thanks