 |
| SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

March 6th, 2006, 12:26 PM
|
|
Authorized User
|
|
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
sheduleing a stored procedure
hai
how i can shcedule a stored procedure which i needs to run for every 10 sec. can any one help me to get out of this problem.
thanks
Vamsi
vamsi
__________________
vamsi Krishna G
mobile: 91 + 9986023966.
124 Puttappa layout new Tippasandhra,
bangalore.
Inida
|
|

March 6th, 2006, 03:14 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
Go into Enterpise Manager
Open the SQL Server Agent node
Go to jobs.. create a new job
Jim
|
|

March 6th, 2006, 04:16 PM
|
|
Authorized User
|
|
Join Date: Feb 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
A little more detail: Go to sqlserver agent, select jobs, rightclick and select new job, under General/description write exec (store procedure name), then click on schedule/new schedule and set it up for every 10 minutes.
Quote:
quote:Originally posted by g_vamsi_krish
hai
how i can shcedule a stored procedure which i needs to run for every 10 sec. can any one help me to get out of this problem.
thanks
Vamsi
vamsi
|
|
|

March 7th, 2006, 12:10 AM
|
|
Authorized User
|
|
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks for u r help. I have one more problem. How can i schedule it for 5 sec. i.e., less than a minute. is there any option to do that
vamsi
|
|

March 7th, 2006, 12:17 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
I don't see a way of setting it for less than 1 min
|
|

March 7th, 2006, 01:14 AM
|
|
Authorized User
|
|
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
can't we do it through sql query or through any other process.
thanks
vamsi
vamsi
|
|

March 7th, 2006, 01:17 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
You can add a job and schedule it though system stored procedures, but you still can't set the timing for less than 1 minute.
|
|

March 7th, 2006, 01:38 AM
|
|
Authorized User
|
|
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks for u r help. I need to search an other to handle this.
regards
vamsi
vamsi
|
|

March 7th, 2006, 01:39 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
no problem :)
|
|

March 7th, 2006, 03:52 AM
|
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi.
You could try to set up several schedules on the same job, setting each schedule to run every minute, with different starting points. One could start say 05:00:00 , the next could start 05:00:10. Continue like that until you have the minute covered.
Might be a problem though, if the jobs can not run at the same time, since you are not guaranteed that the last job has finished.
gert
|
|
 |