Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update trigger question
Message
From
17/08/2002 14:58:04
 
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00690662
Message ID:
00690764
Views:
17
Check out the topic Programming Tiggers in the BOL. Basically you have two options: IF UPDATED() and IF COLUMNS_UPDATED(). IF UPDATED() uses the column name while IF COLUMNS_UPDATED() works off of a bitmask.

IF UPDATED('lastName')
BEGIN
...
END

-Mike

>Suppose I have a row in a table where the lastname field is 'Jones'.
>
>Now suppose I do an UPDATE on that row, and set the lastname to 'Jones'
>
>
>Is there anything I can check in the update trigger that will tell me whether one of the columns that I updated was the lastname column, even though the value itself didn't change?
>
>(It may sound like a silly question, but the answer is important to an authentication method that we're considering).
>
>Thanks,
>Kevin
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform