Article View: borland.public.cppbuilder.database.ado
Article #4345Re: Error question...
From: AdoAnywhere Team
Date: Fri, 11 Jan 2002 02:46
Date: Fri, 11 Jan 2002 02:46
27 lines
2157 bytes
2157 bytes
You could work backwards from the error message if every constraint message was unique. Constraint messages can be obtained via the TAdoConnection.OpenSchema call to siCheckConstraints. If your update was to a TAdoDataset rather than through an UPDATE SQL query, you could look at the Error parameter of the RecordChangeComplete Event but there is no Delphi help on that. On my system it is a pointer. Refer to MS SDK. If you would like to know more about the information that can be extracted from your database, the tool below allows OpenSchema calls to be made in a GUI. As you will notice if you use it, Check Constraints have no criteria for table and fields. But it is possible to establish the table and field from the constraint name (in Access at least)...as it includes the table and field name within it e.g. CONSTRAINT_NAME= [country].[capital].validation CHECK_CLAUSE= "<d" -- Michael Collier Bsc (Hons) Comp Sci ADO Support Tools. Download Free Fully Working 30-Day Trial in 7 Minutes From... http://www.adoanywhere.com/download/aaBrowse2_6.zip All information in this message is provided 'As is' and without warranty of any kind. http://www.adoanywhere.com
Technical Details
Message-ID:
<3c3e51df_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3c3dbc01_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,99337eea86ee6d4b X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-01-10 19:09:28 PST Reply-To: "AdoAnywhere Team" <mike@adoanywhere.com> From: "AdoAnywhere Team" <mike@adoanywhere.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3c3dbc01_2@dnews> Subject: Re: Error question... Date: Fri, 11 Jan 2002 02:46:03 -0000 Lines: 30 Organization: www.adoAnywhere.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 217.72.165.3 Message-ID: <3c3e51df_2@dnews> X-Trace: dnews 1010717151 217.72.165.3 (10 Jan 2002 18:45:51 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews