Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Scheduling Stored Procs

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-12-21 : 09:35:44
Mandar writes "I would like to know, how can a stored proc be scheduled with
T-SQL, and also, how can I check if the procedure has been executed at the given time?

I already know the Enterprise Manager method, but i would like to know by way of T-SQL, as sites are hosted on SQL 2000 and hence there is no way i can connect by SQL 7 EM to SQL 2000 EM.

Regards
Mandar Pai
QuadraSoft Solutions"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2001-12-21 : 09:53:42
The T-SQL commands would be sp_add_job, sp_add_jobschedule, sp_add_jobstep, and perhaps a few others. The links for these in Books Online will also link you to the other related job procedures you'd need.

Go to Top of Page

izaltsman
A custom title

1139 Posts

Posted - 2001-12-21 : 09:59:12
And sp_help_job to check the last run outcome...

Go to Top of Page
   

- Advertisement -