Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8278115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:53:58+00:00 2026-06-08T08:53:58+00:00

MY PROBLEM(scenario): There is a already a built in method call WAITFOR that can

  • 0

MY PROBLEM(scenario):

There is a already a built in method call “WAITFOR” that can make the execution of a for example a “Stored Procedure”. This waiting can only be done for less than 24 hours.

But the thing is my client who is also a developer wants to find a method to go around this issue and find a way to wait more than 24 hours to reduce the development time.

There is already a method. That can query necessary tables once a day and send the necessary emails to the customers ect..

I know that since this “WAITFOR” is limited to 24 hours, There has to be a performance issue as this number of “WAITFOR” executions go higher (For example 2000).

MY QUESTION:

  1. Is there a way of holding a stored procedure more than 24 hours. Lets say for more than 14 days.
  2. If there is not a method to work this out,,How should I defend on this issue, What are the facts that I can give to my client, Such as Performance Issues,,

This is what I think,,
Since this waiting is limited to 24 hours is that there is no other option to give the expected functionality to perform a data base task precisely on time. But this gives a big over head to the server to keep the track of each “WAITFOR” execution. If this is more than 2000 or so,, This is impossible to bear for the server.

The best option available is to have a “SQL Agent Job” that run once a day(as you wish) and get the values that are related to set the WAITFOR to execute some job precisely on time.

Please give me a much better understanding on this issue of waiting for more than 24 hours. To go for the next alternative. :((((

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:54:00+00:00Added an answer on June 8, 2026 at 8:54 am

    Is there a way of holding a stored procedure more than 24 hours. Lets
    say for more than 14 days.

    Yes, 14 x 24 hour WAITFOR‘s for example .. but of course that would be terrible beyond all ability to describe; you are forcing a connection to remain open for that period, consuming resources on the server for that period and so on.

    What you describe is precisely what an SQL Agent Job is for, use one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that there are some questions about this already, most relate to either
Relevant background info I've built a little software that can be customized via a
Is there a way to make an svn-checkout from a git repository? The problem
I'm having a very odd problem that I can't seem to track down. Any
Here's a problem scenario: I've got a C++ object that includes a Cleanup() virtual
Scenario: One header DIV with three DIV's inside side by side floated left. Problem:
I need to solve a locking problem for this scenario: A multi CPU system.
I'm having a problem in getting an array of a users ratings. The scenario
This is a challenge question / problem. Hope you find it interesing. Scenario: You
I've encountered a rather frustrating problem when trying to use has_and_belongs_to_many associations. The scenario

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.