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

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

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.