Re: How to check whether connection is valid
From: Cindy Winegarden (cindy.winegarden_at_mvps.org)
Date: 08/15/04
- Next message: Cindy Winegarden: "Re: The SQL Except statement not supported ?"
- Previous message: Anders: "Re: C0000005 Error with Oracle Backend"
- In reply to: Hitendra: "How to check whether connection is valid"
- Next in thread: Hitendra: "Re: How to check whether connection is valid"
- Reply: Hitendra: "Re: How to check whether connection is valid"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 15 Aug 2004 15:32:41 -0400
Hi Hitendra,
When you connect, store the value of the connection handle to a variable:
nConn = SQLConnect(....)
If nConn is >0 then should have a good connection.
-- Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP cindy.winegarden@mvps.org www.cindywinegarden.com "Hitendra" <Hitendra@discussions.microsoft.com> wrote in message news:DC68117D-1512-4828-AC47-1916F2DAE056@microsoft.com... > Our application is encountering Fatal Exception Errors with Oracle > Backend, > inspite of having the latest Service Pack & ODBC drivers. We create a > connection at application startup and use this connection throughout to > perform SQLExec() operations on the backend, where it sometimes generates > these FEs. > I suspect that Oracle backend may be clearing or deleting the connection > somehow and since VFP doesn't know about it while sending SQLExec() > statement, it FEs in that case. > Is it possible to check whether a connection is still valid and will fire > properly with any Backend? > Please let me know. > Thanx,
- Next message: Cindy Winegarden: "Re: The SQL Except statement not supported ?"
- Previous message: Anders: "Re: C0000005 Error with Oracle Backend"
- In reply to: Hitendra: "How to check whether connection is valid"
- Next in thread: Hitendra: "Re: How to check whether connection is valid"
- Reply: Hitendra: "Re: How to check whether connection is valid"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|