sql job to run every certain time and execute a console application

匆匆过客 提交于 2019-12-08 04:30:38

问题


I am trying to write a SQL job to run every 10 minutes and to execute a console application that I wrote in C#.

It would be really helpful if someone could help.


回答1:


What you want is a SQL Server Agent Job, with a CmdExec step (which can execute a windows command line). This is explained here: http://msdn.microsoft.com/en-us/library/ms190264.aspx

If security is a concern, it can be secured through the use of a SQL Agent Proxy definition. This is explained here: http://msdn.microsoft.com/en-us/library/ms189064(SQL.105).aspx



来源:https://stackoverflow.com/questions/14266561/sql-job-to-run-every-certain-time-and-execute-a-console-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!