Article View: borland.public.interbase.sql
Article #578Re: AfterInsert and BeforeInsert property
From: Alain
Date: Thu, 11 Oct 2007 08:42
Date: Thu, 11 Oct 2007 08:42
54 lines
2576 bytes
2576 bytes
I am using Stored Procedure components The Stored procedure inserts row in a table it is Local Interbase 6 Windows XP My application process incoming SMS and upon reception following certain rules contained in the message it inserts in a table using the Stored Procedure Now where do I use AfterInsert ? The component Stored Procedure does have After and Before insert events handler But are not triggered when this ------------------------- // store in database incoming messages Add_message->Prepare(); Add_message->Params->Items[0]->AsString=aSms->Phone; Add_message->Params->Items[1]->AsDateTime=aSms->DateTime; Add_message->Params->Items[2]->AsString=aSms->Text; Add_message->ExecProc(); // ----------------------- "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca> wrote in message news:470d3e3b@newsgroups.borland.com... > Alain wrote: >> >> These properties are not triggered when inserting in the table >> >> either in the Stored procedure component property nor in a table >> property related to the table > > I assume you are talking about events of a dataset component like TIBQuery > or TQuery or IBDataset or TTable? > > These events fire on these components when you use the component's Insert > function. If you are directly executing an SQL Insert statement (e.g. with > an TIBDataset) then these events do not fire. > > -- > Wayne Niddery - Winwright, Inc (www.winwright.ca) > "The only reason some people get lost in thought is because it's > unfamiliar territory." - Paul Fix >
Technical Details
Message-ID:
<470de1fb@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<470cfae8@newsgroups.borland.com> <470d3e3b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,5935be3261d799e7 X-Google-Attributes: gid114a0e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Alain" <alainbastien@gmail.com> Newsgroups: borland.public.interbase.sql References: <470cfae8@newsgroups.borland.com> <470d3e3b@newsgroups.borland.com> Subject: Re: AfterInsert and BeforeInsert property Date: Thu, 11 Oct 2007 12:42:31 +0400 Lines: 56 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 202.123.15.132 Message-ID: <470de1fb@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1192092155 202.123.15.132 (11 Oct 2007 01:42:35 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail