Article View: borland.public.cppbuilder.database.ado
Article #3394C++ Builder 5, ADO and SQL Server problem
From: Robert Lancaster
Date: Wed, 11 Sep 2002 12:13
Date: Wed, 11 Sep 2002 12:13
19 lines
1400 bytes
1400 bytes
Greetings, I am using the ADO components supplied with C++ Builder 5 to talk to a Microsoft SQL Server 2000 database. The problem I am having is the following: 1) i use a TADOCommand component to issue an "SET IDENTITY_INSERT table_name ON" ii) o then open TADOQuery and issue an Append() command the minute I attempt to set the value of the identity field I get an exception. Is there any way around this problem ? Thanks, Robert Lancaster
Technical Details
Message-ID:
<3d7f335f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,35f78f244d14cb21,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-09-11 06:05:00 PST From: "Robert Lancaster" <robert.lancaster@thales-geosolutions.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: C++ Builder 5, ADO and SQL Server problem Date: Wed, 11 Sep 2002 14:13:06 +0200 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 NNTP-Posting-Host: 196.15.157.2 Message-ID: <3d7f335f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1031746399 196.15.157.2 (11 Sep 2002 05:13:19 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail