|
Question : asp .net: call a sql job?
|
|
Can a sql job be initiated via a asp .net page? I want to just provide a button to the user, and when clicked will execute the sql job. If this is possible, what is the code for the initiating of the sql job?
|
|
Answer : asp .net: call a sql job?
|
|
Just put that TSQL call in a stored procedure and call that in your asp.net code.
create procedure usp_runjob as EXEC dbo.sp_start_job N'Weekly Sales Data Backup'
http://support.microsoft.com/kb/306574
|
|
|