开发者

Schedule SQL Server query to execute and output a file

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜