Create SQL Server Agent jobs programatically

后端 未结 1 1051
执念已碎
执念已碎 2021-01-23 10:32

I want to create SQL Server Agent jobs programmatically. I am using the following code, while running it doesn\'t throw any error but when I check SQL Server Agent I don\'t see

相关标签:
1条回答
  • 2021-01-23 11:25

    for the error you are seeing for The EXECUTE permission was denied.... please open SSMS and execute the following code on a query tab:

    GRANT EXEC on CreateSQLAgentjobs to PUBLIC
    

    and remove it from the proc

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