🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #246

How to catch(dbExceptions ...)

#246
From: Nick
Date: Fri, 19 Jan 2007 03:34
8 lines
1037 bytes
Good Day all,

  I am working with BCB6ent, against MSSQL2000.  There are occaisons where the DB might throw an exception at me, such as "Can not insert Duplicate Key".
  OK - I am looking for an example to try/catch db errors.  What should my try/catch look like?

Thanks in advance,
Nick
Technical Details
Message-ID: <45b03c29$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,41460225af543c7d,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Nick" <NRambarransingh@Rogers.com>
Sender: "Nick" <NRambarransingh@Rogers.com>
Reply-To: "Nick" <NRambarransingh@Rogers.com>
Subject: How to catch(dbExceptions ...)
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 74.101.83.164     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <45b03c29$1@newsgroups.borland.com>
Date: 18 Jan 2007 19:34:01 -0800
X-Trace: newsgroups.borland.com 1169177641 207.105.83.66 (18 Jan 2007 19:34:01 -0800)
Lines: 8
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail