Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about mechanics of calling a trigger
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00618827
Message ID:
00618836
Views:
8
>...but I'm not sure how I 'activate' the trigger [if I'm even asking this correctly] such that when I do an UPDATE on a reason code, the trigger automatically fires.
>

You define a trigger for a specifice table. If you define your trigger as an insert and update trigger, whenever a user inserts or updates a record in the table, the trigger will fire. Here is the basic syntax of a SQL Server trigger:

CREATE TRIGGER [TRIGGER NAME] ON [dbo]
FOR INSERT, UPDATE, DELETE
AS
Tim Westmoreland
Software Engineer
Skyline Technologies, Inc.

"Upper classes are a nation's past; the middle class is its future." - Ayn Rand, Russian-born author (1905-1982).
Previous
Reply
Map
View

Click here to load this message in the networking platform