开发者

Schedule SQL Server query to execute and output a file

开发者 https://www.devze.com 2023-02-15 10:18 出处:网络
Alright guys, this shoul开发者_如何转开发d be a very simple request. I\'d like to run a query (IE Select * from tablex) every night and have it automatically output to a text file on the same system.

Alright guys, this shoul开发者_如何转开发d be a very simple request. I'd like to run a query (IE Select * from tablex) every night and have it automatically output to a text file on the same system.

Thanks


Create a new SQL Server Agent job, in the step put in your SELECT statement. In Advanced, tell it to output to a file. Done.


Look at bcp.exe scheduled via Windows for possibly the simplest way...

0

精彩评论

暂无评论...
验证码 换一张
取 消