![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi, From your description, I understand that: You encountered the time out error of SQL Server in your VB.NET application. The problem was that the transaction did not fail after the timeout. If I have misunderstood, please let me know. I am afraid that the timeout should be caused by the settings in your SQL connection string. As far as I know, the default timeout value in a SqlConnection is 15 seconds. You may enlarge the timeout value by setting the property "Connection Timeout = <value (s)>" in the connection string and see what is going on. In fact, at the timeout point, the execution at the server side is still running without any issue. The timeout exception is not thrown by SQL Server, meanwhile SQL Server hasn't finished the execution, so the transaction cannot rollback at that time. I recommend that you try running the script file in Query Analyzer and see how long it will cost, then you can set an appropriate timeout value for your SqlConnection. Charles Wang Microsoft Online Community Support ================================================== ==== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ================================================== ==== This posting is provided "AS IS" with no warranties, and confers no rights. ================================================== ==== |
#4
| |||
| |||
|
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |