Re: Common pro*c code for both Oracle and non-Oracle environments

From: Mark C. Stock <mcstockX_at_Xenquery>
Date: Wed, 6 Apr 2005 08:13:32 -0400
Message-ID: <oLydneK82NHxT87fRVn-jw_at_comcast.com>


[Quoted] "Golan" <bcg008_at_mot.com> wrote in message news:35e0ae97.0504052237.184b53ec_at_posting.google.com...
> Hi,
> I have a PRO*C code that may run also on PCs where Oracle is not
> installed. In this case ofcourse the code that read & write from the
> database should be ignored.
> What should I specify in the code so the oricedures with the database
> access will be ignored in case Oracle is not installed?
>
> Thanks

your initial attempt to connect to the database will fail -- just record [Quoted] that fact in the variable of your choice, and check that variable in your [Quoted] code before attempting any database access

++ mcs Received on Wed Apr 06 2005 - 14:13:32 CEST

Original text of this message