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 8189205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:11:49+00:00 2026-06-07T03:11:49+00:00

As strange as it sounds I need to slow down a SQL query. Currently

  • 0

As strange as it sounds I need to slow down a SQL query. Currently I’m using Microsoft SQL Server 2008 R2 on an in-house development server with the AdventureWorks database. I’m in the process of testing some code and the queries that I’m running are too fast no matter what I try!

Basically I’m testing a cut-off feature and need a sufficiently long query to be able to cut it off before it completes.

Unfortunately as it is a local installation there isn’t a single query or large enough table in the AdventureWorks database to actually give me good data to work with. I’ve tried

WAITFOR DELAY '01:00'

Which worked great to just test to make sure it was working, but now I need to test to see if I can cut the data stream off mid-read. The WAITFOR statement doesn’t do me justice in that respect because I need it to actively be retrieving data back from the server. My first intuition was to use convoluted calculations to slow it down, however even having SQL server multiply all the numerical values in the query by themselves 37 times only slowed down the query by milliseconds. The second thing I tried was embedding the WAITFOR statement in a sub-query but it appears you can’t do that. Finally, the only thing I haven’t tried is to execute multiple stored procedures and WAITFOR in between them, but I don’t think that would work for what I need.

I have to say, I’m impressed at how hard it is to make an absolutely terrible query when you’re this close to the server.

Is there any way I can slow down a query easily?

Thank you!

  • 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-07T03:11:51+00:00Added an answer on June 7, 2026 at 3:11 am

    Just do a load of cross joins.

    SELECT T1.*
    FROM SomeTable T1,  
         SomeTable T2,  
         SomeTable T3,  
         SomeTable T4
    

    For a 1,000 row table that will generate 1,000 billion rows which should be plenty slow enough.

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

Sidebar

Related Questions

However strange it sounds I need to modify some Groovy code by modifying how
It sounds strange but this is exactly what I want because I am using
It may sound strange, but in my PHP application I need to check if
I've got a question that might sound strange. We are using node.js, but the
The NetBeans people say that I need a Java Development Kit (JDK) 5 or
I have a strange need, a customer asked me to implement a webapp to
Scenario: Im elstablishing a connection with an http server using libcurl and downlading a
This sounds pretty strange, but there is ocurring in a databases of a bunch
This may sound strange, but I need a better way to build python scripts
This may sound like a strange question, but i need to redirect all .rar

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.