Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
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
 
Old March 6th, 2006, 12:26 PM
Authorized User
 
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default 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
 
Old March 6th, 2006, 03:14 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Go into Enterpise Manager
Open the SQL Server Agent node
Go to jobs.. create a new job

Jim

 
Old March 6th, 2006, 04:16 PM
Authorized User
 
Join Date: Feb 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old March 7th, 2006, 12:10 AM
Authorized User
 
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

      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
 
Old March 7th, 2006, 12:17 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I don't see a way of setting it for less than 1 min

 
Old March 7th, 2006, 01:14 AM
Authorized User
 
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

can't we do it through sql query or through any other process.

thanks
vamsi

vamsi
 
Old March 7th, 2006, 01:17 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

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.

 
Old March 7th, 2006, 01:38 AM
Authorized User
 
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

thanks for u r help. I need to search an other to handle this.

regards
vamsi

vamsi
 
Old March 7th, 2006, 01:39 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

no problem :)


 
Old March 7th, 2006, 03:52 AM
Authorized User
 
Join Date: Jun 2003
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Procedure jezywrap SQL Server ASP 1 January 3rd, 2007 12:29 AM
stored procedure kdm260 SQL Server 2000 2 June 19th, 2006 04:45 PM
Help About Stored Procedure zhuge6 BOOK: ASP.NET Website Programming Problem-Design-Solution 3 May 20th, 2005 09:27 AM
stored procedure allang MySQL 3 January 26th, 2005 12:48 PM
C# and stored procedure Msmsn C# 1 August 26th, 2003 11:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.