Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Checking Connection Status in a Pro*C program

Re: Checking Connection Status in a Pro*C program

From: John Strange <jstrange_at_imtn.dsccc.com>
Date: 13 Apr 1998 17:19:02 GMT
Message-ID: <6gthe6$8ho$1@psun6.dsccc.com>


some code snippets:

EXEC SQL INCLUDE SQLCA ;         EXEC SQL CONNECT :appidpwd ;  

        errno = 0 ;                   /* clear errno in case oracle sets it   */
 
        if (sqlca.sqlcode != 0)       /* check oracle error                   */
        {
          your error code here
	}


MEYOU_at_ComPorts.com wrote:
: Is there anyway to check connection status after "CONNECT" call in a
: Pro*C program?

: Need to know how very urgently. Please help!

: Regards

: Steven

--
While DSC may claim ownership of all my ideas (on or off the job), DSC does not claim any responsibility for them. Warranty expired when you opened this article and I will not be responsible for its contents or use. Received on Mon Apr 13 1998 - 12:19:02 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US