I’m looking at the following issue
We want to run at night a query in the mssql server (for example as a job), and let the results written to a csv file on the server.
What is the best way to do this?
I'm not sure you can. You can cut out the (## rows affected) by using SET NOCOUNT ON. But for the rest, I'm not sure of a way in the job to change that.
I've never done this, buy you might be able to save the results to a table and then have Excel query the table for the results.
-SQLBill
The following is part of my signature block and is only intended to be informational.
Posting advice: FAQ481-4875
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.