How to set timeout for a stored procedure in SQL Server -


i have stored procedure in sql server, want set time out sprpc if not finish in appropriate time, sql server forces stop.

thanks

since asked how set timeout value, i'll tell you, agree comment omg ponies made, far better off if figure out why query taking long. start reading query optimization, read this , this.

here steps setting query timeout on server:

  1. locate server in sql server management studio.
  2. right click on server name.
  3. select properties.
  4. choose connections tab.
  5. set query timeout value. (the value in seconds. set 0 unlimited time)
  6. click ok.

alt text


Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

c++ - Update and multiple console windows -