Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YAQ on Connection Time out
Message
 
 
To
23/05/2010 16:44:24
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01465578
Message ID:
01465653
Views:
27
Hi James,

Thank you for your input. I think your suggestion of restarting the DB service makes sense and is easy to do for testing. Great idea!

>Hi Dmitry,
>
>The only way that I could simulate a server connection timeout was to either restart the DB service or go into the DB management tools and disconnect my user. Restarting the service is the easiest if you are using a test DB that only you control.
>
>This paragraph will not work with remote views (I think). I created my own connection class a few years ago and what I found was the easiest way was to test the connection on each error that I get. If the test fails then I will try and reconnect and run the query again if the reconnect works. Otherwise, I just handle the error. I could probably test for the appropriate error number so I only test the connection when I get a disconnect but I was always afraid that there would be another error that could be cured by a reconnect and I don't think the overhead is that much.
>
>
>
>>It does seem like this is how it works. And if so, this is fine with me. But I am just wondering, what is the purpose of setting the idletime out? That is, what does the application achieve by that?
>>
>>And as always, thank you for your input.
>>
>>>The way I understand it is the vfp will disconnect after the IdleTimeOut, ie closing the connection
>>> But after that, if you to any operation that is using the handle, it automatically reconnects
>>>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform