Article View: borland.public.cppbuilder.database.ado
Article #5556ado for sqlserver
From: jane
Date: Thu, 12 Apr 2001 09:18
Date: Thu, 12 Apr 2001 09:18
35 lines
2069 bytes
2069 bytes
The second:
In SQLSERVER database , I have a trigger,
create trigger AINewUser on TSUser for insert as
begin
declare
-- ��.��
if @UserType = 0
begin
insert into TSAppPermi
select @UserID, FModuleID, FFlag, FFlagEx
from TSAppPermi
where FUserID = 0
insert into TSModuleParm
select @UserID, FModuleID, FName, FType, FValue, FValueEx,
FDesc
from TSModuleParm
where FUserID = 0
end
��..
end
you know table TSAppPermi and table TSModuleParm both have more than one
record.when I add a new record to the TADODataSet,and execute it��spost()
method(this can trigger the trigger),
1. if the table TSAppPermi have one record, the Post execute successfully.
2. If the table TSAppPermi have more than one record ,the ApplyUpdate
execute erroyly. The error message Is ��update affeted more than one
record��.
We talk about the error for a long time, we think the ADO Enginer may be
erro. Because we use the ADO for ODBC
Drive,the TADODataSet's Post and Refresh execute successfully.
If you have good news ,don't forget to tell me.
Technical Details
Message-ID:
<3ad57172_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.stealth.net!feed.textport.net!news.bnb-lp.com!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,88c491d303ccd223,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-04-12 02:50:02 PST Reply-To: "jane" <janez@pbtco.com> From: "jane" <janez@pbtco.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: ado for sqlserver Date: Thu, 12 Apr 2001 17:18:58 +0800 Lines: 41 Organization: powerbridge X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 202.105.182.54 Message-ID: <3ad57172_2@dnews> X-Trace: dnews 987066738 202.105.182.54 (12 Apr 2001 02:12:18 -0700) Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.stealth.net!feed.textport.net!news.bnb-lp.com!dnews