線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:932
推到 Plurk!
推到 Facebook!

Delphi 5 ADO Deletion Problem

答題得分者是:timhuang
problemman
一般會員


發表:7
回覆:25
積分:16
註冊:2003-04-11

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-04-12 10:34:36 IP:203.198.xxx.xxx 未訂閱
Hi        Thank you for reading my message. I have a problem about ADO Master/Detail dataSet. I am using Delphi 5 and the database is Microsoft SQL server 7.0/2000 which has a database (e.g. TmpDB) and have two tables "tmpTB1" and "tmpTB2". Table "tmpTB1" is the master of the table "tmpTB2". Moreover , there is a trigger statement in tmpTB1 for Deletion of  details of "Detail table(tmpTB2)". >
timhuang
尊榮會員


發表:78
回覆:1815
積分:1608
註冊:2002-07-15

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-04-12 10:54:43 IP:61.221.xxx.xxx 未訂閱
Try to alter the trigger as:    CREATE TRIGGER tg_TestDel ON dbo.tmpTB1 FOR DELETE  AS begin  set nocount on; delete tmpTB2 from deleted where tmpTB2.deleted.userID and tmpTB2.idx=deleted.idx; end
problemman
一般會員


發表:7
回覆:25
積分:16
註冊:2003-04-11

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-04-12 11:10:28 IP:203.198.xxx.xxx 未訂閱
很多謝你阿timhuang,此問題已困擾我多時,現在可以解決,真感激萬分    < >< >< >< > 發表人 - problemman 於 2003/04/12 11:11:15
系統時間:2024-05-04 15:07:38
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!