[Openroad-users] Conversion to OpenSQL
Simon Lovell
simonl at unwired.com.au
Tue Jan 22 15:33:10 EST 2008
So long as you actually mean "Gateway compliant" rather than strict open
SQL, I think the gateway can handle DB Events as well as DB Procedures
it has been advised of. RTM for details.
SAVEPOINTS? Do you have a compelling reason to use them?
I think "CREATE TABLE ... AS SELECT" and "DROP ..." ARE open SQL.
Pete Rabjohns wrote:
> Hi Colin,
>
> With the exception of DB Events (our application does not use them),
> we took the approach of abstracting all of the non standard SQL into
> classes that would manage the differences of the underlying DBMS via
> EXECUTE IMMEDIATE (or DIRECT EXECUTE IMMEDIATE). The reason for this
> was that you don’t necessarily want to limit your SQL to OpenSQL to
> achieve the right performance. This was especially true of UPDATE/FROM.
>
> As an example, our application sits on top of SQL Server, Ingres &
> Oracle, and all three of them support some kind of UPDATE/FROM syntax,
> albeit in slightly different ways.
>
> Sorry, cant help on the DBEVENT question.
>
> Regards,
>
> Pete
>
> ------------------------------------------------------------------------
>
> *From:* openroad-users-bounces at peerlessit.com
> [mailto:openroad-users-bounces at peerlessit.com] *On Behalf Of *Colin Hay
> *Sent:* 22 January 2008 03:31
> *To:* International OpenROAD Users
> *Subject:* [Openroad-users] Conversion to OpenSQL
>
> Just starting a project whereby we have to make all our OpenROAD /
> Ingres code OpenSQL compliant
>
> I've identified the following statements that will not work:
>
> · COPY <tablename>
>
> · CREATE TABLE … AS SELECT
>
> · CREATE TABLE (<column> … WITH DEFAULT)
>
> · DECLARE GLOBAL TEMPORARY TABLE … AS SELECT
>
> · DROP [TABLE|VIEW] :<tablename>
>
> · RAISE DBEVENT
>
> · REGISTER DBEVENT
>
> · SET LOCKMODE
>
> · SAVEPOINT
>
> · UPDATE <table> FROM
>
> We can rewrite COPY's using StringObjects and UPDATE FROMs with SELECT
> loops etc
>
> but how does one handle DBEVENTs and SAVEPOINTs ??
>
> Anyone had such experience of porting OpenROAD sp3 to run on DB2 ?
>
> *Colin Hay*
>
> *Database Administrator
> **Fintechnix*
>
> *
>
> Level 3,*
>
> *55 Clarence Street**,*
>
> *Sydney*
>
>
> <mailto:colin.hay at fintechnix.com>
> colin.hay at fintechnix.com <mailto:colin.hay at fintechnix.com>
>
>
> Phone: +61 2 8234 8276
>
>
> Specialist providers of back and front office systems for the
> financial services industry.
> Featuring: Fintechnix(r)
> Disclaimer:
> Notice: This message contains privileged and confidential information
> intended only for the use of the addressee named above. If you are not
> the intended recipient of this message you are hereby notified that
> you must not disseminate, copy or take any action in reliance on it.
> Any views expressed in this message are those of the individual
> sender,except where the sender specifically states them to be the
> views of Fintechnix Pty Ltd.
>
>------------------------------------------------------------------------
>
>________________________________________________________________
>OpenROAD-Users mailing list
>
>You can maintain your subscription here:
>http://www.peerlessit.com/mailman/listinfo/openroad-users
>
>To unsubscribe click on this link
>mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
>
>To subscribe click on this link
>mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.5.516 / Virus Database: 269.19.8/1235 - Release Date: 21/01/2008 9:39 AM
>
>
More information about the Openroad-users
mailing list