Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the CommandTimeout in SQL Management studio

How can I change the CommandTimeout in SQL Management Studio?

like image 526
OrElse Avatar asked Jul 16 '09 12:07

OrElse


People also ask

How do I change the timeout in SQL?

Using SQL Server Management StudioIn Object Explorer, right-click a server and select Properties. Click the Connections node. Under Remote server connections, in the Remote query timeout box, type or select a value from 0 through 2,147,483,647 to set the maximum number seconds for SQL Server to wait before timing out.

What is the default CommandTimeout?

Property Value The time in seconds to wait for the command to execute. The default is 30 seconds.

How do I change timeout in ODBC?

Answer: Open your query in design view. Under the View menu, select Properties. When the "Query Properties" window appears, set the "ODBC Timeout" property to 0. By default, it will be set to 60 which means that the query will timeout after 60 seconds.

How do I fix SQL Server connection timeout?

If you encounter a connection-timeout error, follow the steps: Increase the connection-timeout parameter. If you use an application to connect to SQL Server, increase the relevant connection-timeout parameter values and check whether the connection eventually succeeds.


2 Answers

If you are getting a timeout while on the table designer, change the "Transaction time-out after" value under Tools --> Options --> Designers --> Table and Database Designers

This will get rid of this message: "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."

enter image description here

like image 57
Brian Thorne Avatar answered Oct 03 '22 05:10

Brian Thorne


Changing Command Execute Timeout in Management Studio:

Click on Tools -> Options

Select Query Execution from tree on left side and enter command timeout in "Execute Timeout" control.

Changing Command Timeout in Server:

In the object browser tree right click on the server which give you timeout and select "Properties" from context menu.

Now in "Server Properties -....." dialog click on "Connections" page in "Select a Page" list (on left side). On the right side you will get property

Remote query timeout (in seconds, 0 = no timeout): [up/down control] 

you can set the value in up/down control.

like image 44
TheVillageIdiot Avatar answered Oct 03 '22 07:10

TheVillageIdiot