Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I have a job in sql server agent 2012 and I want to start this job on click of button in asp.net page. how can i start this job please provide me steps to invoke this job.
Posted
Comments
Thanks7872 29-Jul-15 9:21am    
Why not to execute Stored procedure? Why you need job?

You can use the sp_start_job[^] procedure.

Use SqlCommand from your code to execute that procedure with proper parameters.
 
Share this answer
 
v2
 
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