How do I execute a stored procedure in a SQL Agent job?

后端 未结 2 1106
甜味超标
甜味超标 2020-12-14 05:50

I am using SQL Server 2008 and I need to run a SQL Job from SQL Server Agent. I am new to SQL Server Job and I want to execute a stored procedure regularly from a SQL Server

相关标签:
2条回答
  • 2020-12-14 06:18

    You just need to add this line to the window there:

    exec (your stored proc name) (and possibly add parameters)
    

    What is your stored proc called, and what parameters does it expect?

    0 讨论(0)
  • 2020-12-14 06:26

    As Marc says, you run it exactly like you would from the command line. See Creating SQL Server Agent Jobs on MSDN.

    0 讨论(0)
提交回复
热议问题