dbTalk Databases Forums  

How to create a Trigger

comp.databases.btrieve comp.databases.btrieve


Discuss How to create a Trigger in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bre-x
 
Posts: n/a

Default How to create a Trigger - 11-08-2004 , 02:22 PM






Hi,

We are using Pervasive 7, Win2000 Server

I need to create a trigger that will call a procedure everytime a
record has been update.

I have the procedure sql but i have problems with the trigger

CREATE PROCEDURE QtyShpd (in :SONU CHAR(100))
AS BEGIN
UPDATE BKARINVL SET BKA_QTYSHIP = BKA_QTYORD WHERE BKA_SONUM = :SONUM;
END;

Can a trigger be "run" everything a record is updated it?
Can the same trigger pass a value to the procedure??

Thank you All

Bre-x,

Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: How to create a Trigger - 11-08-2004 , 08:59 PM






Triggers in Pervasive.SQL "break" the Btrieve-level access. Do NOT use
Triggers if you have any Btrieve-level applications.

Having said that, triggers DO work, although your Pervasive.SQL 7 server
engine should be patched first to Service Pack 5, and then to SP6 for the
best results. See the manual for the exact syntax documentation.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Bre-x wrote:

Quote:
Hi,

We are using Pervasive 7, Win2000 Server

I need to create a trigger that will call a procedure everytime a
record has been update.

I have the procedure sql but i have problems with the trigger

CREATE PROCEDURE QtyShpd (in :SONU CHAR(100))
AS BEGIN
UPDATE BKARINVL SET BKA_QTYSHIP = BKA_QTYORD WHERE BKA_SONUM = :SONUM;
END;

Can a trigger be "run" everything a record is updated it?
Can the same trigger pass a value to the procedure??

Thank you All

Bre-x,


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.