1) Use DTS
2) Use BCP
3) Use OSQL with the -o option to output to a file
Or you just want to run the query in Query Analyzer and then click on save.
It would be helpful if you provided more information about your process in order to provide a better answer. Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
You didn't give much more detail. Do you want to know how save the output of a query to a text file from a stored procedure? Is that the question? If it is, then I assume what someone mentioned is Execute xp_cmdshell, an exetended stored procedure. See the SQL FAQ at the following link for info about outputting query results to a text file from a stored procedure using xp_cmdshell.
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.