Re: monitoring database
From: Val Mazur \(MVP\) (group51a_at_hotmail.com)
Date: 03/18/05
- Next message: Val Mazur \(MVP\): "Re: User registration system: shows the minimum age among the users."
- Previous message: Val Mazur \(MVP\): "Re: Newbie ADODB.Recordset MoveNext problem"
- In reply to: scottrm: "monitoring database"
- Next in thread: Kevin Yu [MSFT]: "Re: monitoring database"
- Reply: Kevin Yu [MSFT]: "Re: monitoring database"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Mar 2005 20:59:12 -0500
Hi,
Unfortunately you would need to execute some sort of SQL statement to see if
connection is still alive or not. OLEDB does not reflect actual live state
of the connection and shows a state of the connection at the moment when it
was opened or closed.
-- Val Mazur Microsoft MVP http://xport.mvps.org "scottrm" <scottrm@newsgroup.nospam> wrote in message news:23967AD4-041B-42C7-8032-5B4A16856113@microsoft.com... >I have a C++ application running on a separate box from the database > application (sql server). I want to know if there is any way I can tell if > the database connection has been lost for any reason. I am not so much > interested in the physical database box going down which I could do a ping > test for but also to detect any internal problem within sql server. I > guess > I could write something to attempt to open a connection every couple of > seconds but that seems a bit cumbersome, any other ideas? > -- > Scott
- Next message: Val Mazur \(MVP\): "Re: User registration system: shows the minimum age among the users."
- Previous message: Val Mazur \(MVP\): "Re: Newbie ADODB.Recordset MoveNext problem"
- In reply to: scottrm: "monitoring database"
- Next in thread: Kevin Yu [MSFT]: "Re: monitoring database"
- Reply: Kevin Yu [MSFT]: "Re: monitoring database"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|