|
|
|
Valued Member
      
Group: General Forum Members
Last Login: 2 days ago @ 8:35 AM
Points: 59,
Visits: 682
|
|
I have an SQL Server Agent job running every day at 9am to run a query and using the Advanced tab in the specific step to run the query I send the output of the query to a CSV file. However, when checking the CSV file, only half of the results of the query display.
I'm using SQL server 2008 r2 and I save it to a CSV file on the network and then open it with Excel 2007 on my Windows 7 professional PC.
When I run the query itself outside of the job and save the results to a CSV file, the whole results show.
Any help greatly appreciated.
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Today @ 4:39 PM
Points: 573,
Visits: 3,074
|
|
This thread looks promising as a solution....
http://social.msdn.microsoft.com/Forums/en-AU/transactsql/thread/ec9348c5-acbc-4ca7-8793-322847511460
http://msdn.microsoft.com/en-us/library/ms186238.aspx
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: 2 days ago @ 8:35 AM
Points: 59,
Visits: 682
|
|
| Thanks, I'll give it a go tomorrow.
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: 2 days ago @ 8:35 AM
Points: 59,
Visits: 682
|
|
Chrissy321 (10/10/2012) This thread looks promising as a solution....
http://social.msdn.microsoft.com/Forums/en-AU/transactsql/thread/ec9348c5-acbc-4ca7-8793-322847511460
http://msdn.microsoft.com/en-us/library/ms186238.aspx
Sadly, this didn't work for me.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 10:31 AM
Points: 2,425,
Visits: 3,403
|
|
| Have to specified any size limit to the output file??
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: 2 days ago @ 8:35 AM
Points: 59,
Visits: 682
|
|
| I don't really understand the question. Do I have to specify a limit? No. I did try the set textsize option but this did not change the output for me.
|
|
|
|