Re: detecting a dead connection
From: Brannon Jones (brannonjNOSPAM_at_gmail.com)
Date: 09/17/04
- Previous message: Steve Thompson: "Re: How does ODBC's authentication work?"
- In reply to: Gideon: "detecting a dead connection"
- Next in thread: Gideon: "Re: detecting a dead connection"
- Reply: Gideon: "Re: detecting a dead connection"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Sep 2004 12:13:10 -0700
I'm curious what problem you've heard exists with SQL_ATTR_CONNECTION_DEAD?
Why do you need to test whether or not the connection is dead? Just try to
use it and have the correct error handling in place.
What happens if you successfully test that the connection is alive, and then
it dies a second later? You have to handle that error case anyway, so why
worry about testing to see if it's dead or not?
Brannon
"Gideon" <grashkes@yahoo.com> wrote in message
news:fb0829e1.0409170355.70ffd16b@posting.google.com...
> Hi all -
> I need a way to detect a dead connection.
> I realize there has been a problem with SQL_ATTR_CONNECTION_DEAD , so
> I use
> SQLGetConnectAttr with SQL_COPT_SS_CONNECTION_DEAD instead.
> I still dont get the expected result.
> (btw, SQL_COPT_SS_CONNECTION_DEAD is defined as
> SQL_ATTR_CONNECTION_DEAD. What kind of a fix is that?)
>
> Any help appreciated,
> Gideon.
- Previous message: Steve Thompson: "Re: How does ODBC's authentication work?"
- In reply to: Gideon: "detecting a dead connection"
- Next in thread: Gideon: "Re: detecting a dead connection"
- Reply: Gideon: "Re: detecting a dead connection"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|