tags:

views:

22

answers:

1

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?

+1  A: 

Use the WAITFOR command:

WAITFOR DELAY '00:00:05';
Dave Markle
any quick query that you can think of to run with the command?
ScG
Not sure what you're asking. If you just want output, you could do something like "SELECT 1 AS Test;"
Dave Markle