Drop Table
Support Forum for database administrators and web based access to important newsgroups related to databasesHi, Using T-SQL is it posible to write the resultset of a select statement to a text file?. If possible please give me the details. Thanks in advance. Regards, Sha
Post Follow-up to this messageYou have to open up a cmdshell for this to save the results to a file, something like: xp_cmdshell 'OSQL -E -Q"Select * FROM SomeTable" -O"C:\myoutputfile.txt"' HTH, Jens Suessmeyer.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread