SQLTeam.com | Weblogs | Forums

I want to create a text file from the output of a query


#1

Can some one show me a simple example of writing the output of an sql query to a fixed width text file? First time ever doing this with SQL.

Thanks,

Ross


#2

https://ask.sqlservercentral.com/questions/7080/export-results-of-a-query-into-a-csvtxt-file.html

or you could use ssis to import the output of the query to text files.