SQL Server 2005 - How can I save the results of a query to a text file programatically? (i.e without choosing the Results to file option in Analyzer and not through sql command)?
For example
select * from northwind.dbo.suppliers
And I save my results to CSV file?