dbTalk Databases Forums  

Inser Trigger problem

comp.databases.btrieve comp.databases.btrieve


Discuss Inser Trigger problem in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
datenisis
 
Posts: n/a

Default Inser Trigger problem - 06-29-2006 , 05:49 PM






I've created an insert trigger that works if I add records manually
using PCC. But when I use our accounting app to insert a new record in
the same table the trigger doesn't fire. Thoughts?


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

Default Re: Inser Trigger problem - 06-30-2006 , 05:18 PM






Is your accounting application written in Btrieve or SQL/ODBC?

Currently, Pervasive triggers are NOT "universal", meaning that they
will NOT fire if INSERTS are done from the Btrieve layer. This is
documented in the manuals regarding the triggers. In fact, the inserts
may be failing (due to the trigger), and the accounting app may be
creating problems in its database in the process.

In short, if you have a Btrieve application, DO NOT use triggers. If
you have a SQL application (like the PCC, MSAccess, etc.), then
triggers are fully supported.
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Chicago: Pervasive Service & Support Class - 07/2006 ***



datenisis wrote:

Quote:
I've created an insert trigger that works if I add records manually
using PCC. But when I use our accounting app to insert a new record
in the same table the trigger doesn't fire. Thoughts?


Reply With Quote
  #3  
Old   
datenisis
 
Posts: n/a

Default Re: Inser Trigger problem - 07-04-2006 , 12:59 PM



What good is a trigger if it cannot detect changes? Is there anyway to
get around this deficiency?


Reply With Quote
  #4  
Old   
Guy Dawson
 
Posts: n/a

Default Re: Inser Trigger problem - 07-05-2006 , 10:50 AM



datenisis wrote:
Quote:
What good is a trigger if it cannot detect changes?
It's an SQL trigger and it detects changes at the SQL level. An
unfortunate part of the Btrieve/PSQL legacy perhaps but that's the case.

Quote:
Is there anyway to get around this deficiency?
If by that, you want SQL triggers to fire when a change is made via
the Btrieve interface then, no, there's no way round it that I know
of.

Guy
-- --------------------------------------------------------------------
Guy Dawson I.T. Manager Crossflight Ltd
gnues (AT) crossflight (DOT) co.uk


Reply With Quote
  #5  
Old   
datenisis
 
Posts: n/a

Default Re: Inser Trigger problem - 07-05-2006 , 01:10 PM



Guy Dawson wrote:
Quote:
Is there anyway to get around this deficiency?

If by that, you want SQL triggers to fire when a change is made via
the Btrieve interface then, no, there's no way round it that I know
of.

Guy
-- --------------------------------------------------------------------
Guy Dawson I.T. Manager Crossflight Ltd
gnues (AT) crossflight (DOT) co.uk
Let me rephrase this: Is there an effcient method for detecting
changes, perhaps using Btrieve, that works like a trigger?



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

Default Re: Inser Trigger problem - 07-06-2006 , 07:55 AM



If you are running on Windows or NetWare server (not Linux), then you
can take advanatge of Pervasive's AuditMaster product. This tool does
allow you to capture all database-level changes (and can even detect
READ operations if you want to).

It is an add-on product that requires a minimum version level, so an
upgrade may also be in the cards. (You never specified the DB version.)
Check our website at www.goldstarsoftware.com/am.asp for more
information.
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Chicago: Pervasive Service & Support Class - 07/2006 ***

datenisis wrote:

Quote:
Guy Dawson wrote:
Is there anyway to get around this deficiency?

If by that, you want SQL triggers to fire when a change is made via
the Btrieve interface then, no, there's no way round it that I know
of.

Guy
--
--------------------------------------------------------------------
Guy Dawson I.T. Manager Crossflight
Ltd gnues (AT) crossflight (DOT) co.uk

Let me rephrase this: Is there an effcient method for detecting
changes, perhaps using Btrieve, that works like a trigger?


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.