![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Options->Query Execution, but it's still happening - in new windows and after having restarted SSMS. |
#2
| |||
| |||
|
|
On SSMS 9.00.3042.00, any query that runs longer than 10 minutes gets the following error message: The statement has been terminated. Msg -2, Level 11, State 0, Line 0 Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. I have changed the setting for Execution time-out to 0 in Tools- Options->Query Execution, but it's still happening - in new windows and after having restarted SSMS. Any suggestions? I'm using QA to get around this for now, but this seems a pretty basic issue. |
#3
| |||
| |||
|
|
Hm, what happens if you run: WAITFOR DELAY '00:11:00' do you get the timeout error? I don't, and I did not expect too. However, in order to verify that theh error message really comes from SSMS, I changed the timeout setting in SSMS to 30 seconds, and ran a WAITFOR for one minute. Which completed successfully. And just like you I opened a new query window and even restarted SSMS. I have tried re-booting my machine, though. Maybe there is some weired bug that makes it difficult to change the query timeout. But I would like you to try the WAITFOR statement, so that I know that I have a good test case. |
#4
| |||
| |||
|
|
I think Mohit may be onto something here. Erland, are you trying on the local server connection, or a remote query? |
#5
| |||
| |||
|
|
I have changed the setting for Execution time-out to 0 in Tools- Options->Query Execution, but it's still happening - in new windows and after having restarted SSMS. Hm, what happens if you run: WAITFOR DELAY '00:11:00' do you get the timeout error? |
#6
| |||
| |||
|
|
I do. Msg -2, Level 11, State 0, Line 0 Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Looking at what Mohit posted, my server does have the remote query timeout of 600 seconds. But this is the first time I've ever seen this issue. Odd. Okay - this is odd - if I create a new Database Engine Query, it works properly, even though (with the same instance of SSMS running) I managed to have it timeout on me with the WAITFOR test. So, is that why Query Analyzer doesn't get killed after 10 minutes? Because it's a local connection? Or did you just manage to create a bug separate from what I was seeing? |
![]() |
| Thread Tools | |
| Display Modes | |
| |