How to select each row in the result to a different text file in SQL Server

advertisements

I am using sql server and I ran a query that resulted in 5000 rows. I want each row to be saved as a separate text file. Is there a way to do that?


Use SSIS, I was going to type it all out, but here is a site where he has it detailed with screenshots.
https://coldlogics.wordpress.com/2011/04/09/using-ssis-to-dynamically-create-data-files-from-a-full-result-set/