Article View: borland.public.interbase.sql
Article #11162Whenever Sqlerror...
From: Tom Greenway
Date: Thu, 05 Dec 2002 01:31
Date: Thu, 05 Dec 2002 01:31
25 lines
1641 bytes
1641 bytes
Is there a way to see if a trigger or table exists in the database before submitting an SQL update script? Example: Client 1 has a database with NO BankDesc table Client 2 has a database WITH a BankDesc table. Need to incorporate a SQL update that is similar to: If NOT exist BankDesc then Create BankDesc... If possible, then the same update could be ran on both Client 1 and Client 2's database with no errors. I looked at the 'Whenever SQLERROR Continue' example, but attempting a SQL update: Create table BankDesc.... Whenever SqlError Continue via IBConsole was not successful (table already in database). Any suggestions would be appreciated. Thanks, Tom Greenway
Technical Details
Message-ID:
<3deeabb6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newspump.sol.net!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114a0e,5f20a07b5cfe1634 X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-12-04 17:39:10 PST From: "Tom Greenway" <tomgreenway@lllow.com> Newsgroups: borland.public.interbase.sql Subject: Whenever Sqlerror... Date: Wed, 4 Dec 2002 20:31:33 -0500 Lines: 28 Organization: Low Associates, Inc X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 209.131.67.137 Message-ID: <3deeabb6@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1039051702 209.131.67.137 (4 Dec 2002 17:28:22 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newspump.sol.net!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail