For a recent test, I want to 'create' a query which takes atleast 5 seconds to execute and does not change the schema or data of the database - although I can create a table and then delete it. Till that level its ok . How can I do this?
            Asked
            
        
        
            Active
            
        
            Viewed 140 times
        
    0
            
            
        - 
                    http://stackoverflow.com/questions/664902/sleep-command-in-t-sql – Sam Saffron Sep 04 '10 at 02:36
1 Answers
1
            Use the WAITFOR command:
WAITFOR DELAY '00:00:05';
 
    
    
        Dave Markle
        
- 95,573
- 20
- 147
- 170
- 
                    
- 
                    Not sure what you're asking. If you just want output, you could do something like "SELECT 1 AS Test;" – Dave Markle Sep 04 '10 at 02:54
