I have a stored procedure in SQL Server, I want to set a time out for my sprpc so that if it does not finish in appropriate time, SQL Server forces it to stop.
thanks
I have a stored procedure in SQL Server, I want to set a time out for my sprpc so that if it does not finish in appropriate time, SQL Server forces it to stop.
thanks
Since you asked specifically about how to set the timeout value, I'll tell you, but I agree with the comment OMG Ponies
made, that you are far better off if you figure out why the query is taking so long. To start reading about query optimization, read this and this.
Here are the steps to setting the Query Timeout on the server: