Click here to Skip to main content
15,883,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Run or Start Sql Server Agent Job from SharePoint(When I Click the button)??
Posted

1 solution

Execute the following code against a connection :
SQL
USE msdb ;
GO
EXEC dbo.sp_start_job N'Weekly Sales Data Backup' ;
GO


You can follow my article on starting the job using Sqlserver .Net objects:
Manage SQL Server Agent Jobs using C#[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900