Is it possible to complete an executable query and return a certain value (for example, return value = 1) if the SQL query takes longer than X seconds?
Could you give a specific example of a basic query. For example, in SQL:
select * from test
If this query takes more than 10 seconds to complete, it should return: 1 as the result.
I am using SQL management studio.
source
share