Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
fatcat
Starting Member
2 Posts |
Posted - 2006-01-19 : 22:03:55
|
| Hi. Using SQL Server 2000, my goal is to automate a query to run every morning for example, saving its results to a file such as a CSV file.I have searched on the internt on how to have a query automatically save its results to file. All I get is "In Query Analyzer, click on file and...".I have had a look at xp_sendmail, which has a query parameter, unfortunately there is no MAPI client such as Outlook installed on the server. |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2006-01-19 : 22:24:12
|
| you can use BCP or osql / isql. Check the Books OnLine for detail-----------------'KH' |
 |
|
|
fatcat
Starting Member
2 Posts |
Posted - 2006-01-19 : 23:35:38
|
| I knew it would be something simple like this. Now to format the output into something sane... well, I can figure that out. Thanks for your help. |
 |
|
|
|
|
|