Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL SERVER 7.0 TRIGGER
Message
From
06/04/2000 13:14:22
 
 
To
06/04/2000 12:26:29
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00350975
Message ID:
00356378
Views:
12
Vince,

I did not get the previous messages so I don't know exactly what you're trying to do, but here's what I know.

In the UPDATE trigger, you have access to "logical" tables called inserted and deleted. The inserted table contains new values and the deleted table contains the old values. Look for CREATE TRIGGER in books online.

Also, don't forget that when the trigger runs, it might run on more than one record, so don't assume that the inserted and deleted table contains a single record each.

HTH



>Daniel,
>Our understanding is that the update trigger is fired after the row is updated and the trigger is processed using the updated values. We are trying to get at the old values in the record prior to the update. We need to do some comparison of the previous value with the updated value.
>Any thoughts on how to get at the old value would be greatly appreciated.
Sylvain Demers
Previous
Reply
Map
View

Click here to load this message in the networking platform