Solved

SQL 2000 - schedule jobs for 10 seconds?

Posted on 2011-03-19
3
358 Views
Last Modified: 2012-05-11
This is SQL 2000. I have a SQL Script that i want to scheudle to run every 10 seconds.

Looked at the job scheduling and the least amount of time is 1 minute. What can I do? what are my other options??
0
Comment
Question by:Camillia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 250 total points
ID: 35171783
hi use the SP to create the schedule

this sample will create a scedule for a every 10 seconds

EXEC @ReturnCode = msdb.dbo.sp_add_jobschedule @job_id=@jobId, @name=N'SCHEDULE',
            @enabled=1,
            @freq_type=4,
            @freq_interval=1,
            @freq_subday_type=2,
            @freq_subday_interval=10,
            @freq_relative_interval=0,
            @freq_recurrence_factor=0,
            @active_start_date=20070211,
            @active_end_date=99991231,
            @active_start_time=0,
            @active_end_time=235959
 
0
 
LVL 11

Assisted Solution

by:JoeNuvo
JoeNuvo earned 250 total points
ID: 35171801
For this requirement on the system I ever work with.

I combine job schedule with WAITFOR DELAY '000:00:10'
in the job, it will run 5-6 rounds of command together with WAITFOR DELAY (depend on how fast the query run)
0
 
LVL 7

Author Comment

by:Camillia
ID: 35172341
Is this line says 10 seconds: @freq_subday_interval=10,

0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question