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 Development (2000)
 AutoRun Stored Proc

Author  Topic 

skillile
Posting Yak Master

208 Posts

Posted - 2002-06-05 : 22:00:39
Whats the best way to have a stored procedure run
automatically? Should you call it from DTS, script it
again in DTS. I'm not sure what is best practice.

The event is going to be a table update 3-4 times daily
if that matters.

If any code is available, it would be appreciated.

Thanks



slow down to move faster...

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-06-05 : 22:17:28
No need for DTS at all. Create a new job in Enterprise Manager (under Management:SQL Agent:Jobs) and add a job step to it. Type should be T-SQL, and just put in EXECUTE spName in the code window. Then set the schedule on the schedule tab.

Go to Top of Page

skillile
Posting Yak Master

208 Posts

Posted - 2002-06-05 : 22:18:57
thanks, exactly what I needed. Didn't know you could call the sproc
I was retyping it in and I knew it should be easier.



slow down to move faster...
Go to Top of Page
   

- Advertisement -