Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a SQL Server schedule job from the command line

Status
Not open for further replies.

mike718

Programmer
Jul 7, 2004
58
US
I have a job Scheduled to run using the SQL Server Agent Jobs. Besides just scheduling the job to run and having it run automatically I would like to know if this job (not the script under the job) can also be run from the command line. In other words how can or can I write an ISQL statement to run a scheduled batch in SQL Server Agent?

Thanks

Mike
 
Yes you can. Look at sp_start_job in BOL.

Denny

--Anything is possible. All it takes is a little research. (Me)
 
Denny,

that did the trick. Your the man.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top