Groups | Blog | Home
all groups > sql server connect > february 2004 >

sql server connect : Fighting lost network connection


Steve Thompson
2/4/2004 1:06:43 PM
[quoted text, click to view]

<Warning: Slightly off topic answer here :>
One thing you may want to check, if you've got database autogrow/autoshrink
enabled, I've seen applications loose connection while the database is
adding additional file space.

To get to the bottom of a network disconnect I'd suggest running a network
monitor trace.

Steve

Bojidar Alexandrov
2/4/2004 3:22:14 PM
Hello, all

I have next question - What are best practices to catch situation when there
is a loss of connection between application and SQL Server for few seconds?

As I have found till now in Internet - Connection.State is not affected by
loss of connection - it represents state after last executed command and
best is to catch this in error handler.
What types of errors I must catch? Is this reliable?
How to determine if query need to be executed again? For example - executing
of stored procedure that perfform some modification of data an return status
after that. If application never receive this because of network eror what
to do?

Regards,
Bojidar Alexandrov


Bojidar Alexandrov
2/4/2004 8:14:38 PM
[quoted text, click to view]

Thanks for that too!

AddThis Social Bookmark Button