🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Editing TADODataSet

#1051
From: Tumurbaatar S.
Date: Thu, 11 Nov 2004 10:30
8 lines
1293 bytes
There're 2 linked, master/detail tables (MSSQL2K). Insert/edit on the
master table works normally, but exception "Field PK cannot
be modified" is raised when I do it on the detail table. PK is a primary
key field of the detail table.
I tried it using TADODataSet, TADOTable and TADOQuery. All fail.
If I clear DataSource, MasterFields or query Params, i.e. remove
master-detail relationship, the detail table is edited normally.
Any ideas?
Technical Details
Message-ID: <41933f40@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,9ff039a97cf0d4c5,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Tumurbaatar S." <nospam_tumurbaatar@datacom.mn>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Editing TADODataSet
Date: Thu, 11 Nov 2004 18:30:27 +0800
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 202.131.2.5
Message-ID: <41933f40@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100169024 202.131.2.5 (11 Nov 2004 02:30:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail