Re: Need Dirxn --> How to schedule recurring stored procedure executio
From: Wayne Snyder (wayne.nospam.snyder_at_mariner-usa.com)
Date: 12/07/04
- Next message: Stan Sainte-Rose: "Full Catalog Update"
- Previous message: Wayne Snyder: "Re: Full-Text Catalogs"
- In reply to: Mark Allison: "Re: Need Dirxn --> How to schedule recurring stored procedure executio"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 7 Dec 2004 08:06:30 -0500
I agree with Mark, use SQL Agent for this.
-- Wayne Snyder, MCDBA, SQL Server MVP Mariner, Charlotte, NC www.mariner-usa.com (Please respond only to the newsgroups.) I support the Professional Association of SQL Server (PASS) and it's community of SQL Server professionals. www.sqlpass.org "Mark Allison" <marka@no.tinned.meat.mvps.org> wrote in message news:u7AHIUE3EHA.2312@TK2MSFTNGP15.phx.gbl... > Richard, > > You can place your stored proc invocation into a SQLAgent T-SQL job step. > > You can invoke a SQLAgent job using sp_start_job. You can schedule this > job by creating a SQLAgent Job Schedule. You can change the Job Schedule > using sp_update_jobschedule. > > So, your "other" stored proc can invoke sp_update_jobschedule to change > the frequency that the job executes. > > -- > Mark Allison, SQL Server MVP > http://www.markallison.co.uk > > Looking for a SQL Server replication book? > http://www.nwsu.com/0974973602m.html > > > Richard wrote: > > Hi, > > > > I need to schedule a stored procedure to run on a recurring basis. It would > > be acceptable if the procedure ran 1x per minute though it would be better if > > I could schedule & re-schedule procedure start time from within a trigger or > > other stored procedure. The recurring stored procedure is NOT an > > administrative maintenance task. The recurring procedure calls other stored > > procedures across servers to gather data for the application. > > > > Question: > > > > 1) What's the preferred way to schedule & reschedule recurring execution of > > an application's stored procedures? From reading Books Online I gather that > > SQL Server Agent and DTS can both schedule tasks? Is one of those two > > approaches appropriate for my needs? > > > > --Richard > >
- Next message: Stan Sainte-Rose: "Full Catalog Update"
- Previous message: Wayne Snyder: "Re: Full-Text Catalogs"
- In reply to: Mark Allison: "Re: Need Dirxn --> How to schedule recurring stored procedure executio"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading