🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

More informations from MS SQL Server

#5473
From: Piero Salandin
Date: Fri, 20 Apr 2001 06:47
20 lines
1604 bytes
Using BCPP5+ADO+MS Sql Server 7

When I issue a Batch Update command with a TADODataSet, it may happen that
the DB raises an error message, using a RAISERROR statement. In ADO I found
that this raises an EOleException exception.
Unfortunately I only get a Message, a Source and an ErrorCode.
The source is obviously the OLE DB Provider, and the message is what I get
printed. But I don't know if there is a relationship between the ErroeCode
(a horrible -2147217900 for a Primary Key Violation, for example) and the
true DB error code, which I would like to intercept for my own purposes.

Is it possible to have other info from Sql Server? If so, how?
The error code I get is in any way "decodable"?

Thanks a lot


--
Ing. Piero Salandin
piero.salandin@libero.it
Technical Details
Message-ID: <3adfdc27$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,831473a2bdc5c62f,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-04-20 00:08:06 PST
From: "Piero Salandin" <piero.salandin@libero.it>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: More informations from MS SQL Server
Date: Fri, 20 Apr 2001 08:47:55 +0200
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 151.25.4.1
Message-ID: <3adfdc27$1_1@dnews>
X-Trace: dnews 987749415 151.25.4.1 (19 Apr 2001 23:50:15 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews