I needed to query my results to a text file. Using xp_cmdshell i was able to accomplish it very quickly.
EXEC master..xp_cmdshell’bcp “SELECT * FROM yourdatabase.dbo.yourtable” queryout “c:\test.sql” -c -T -x’
Posted by Jesse @ 1:53 pm
Tags: Database, SQL
Name
Mail (will not be published)
Website
Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.