barski Posted January 3, 2006 Posted January 3, 2006 is there a way to determine on an update trigger what field was modified? Quote
HJB417 Posted January 3, 2006 Posted January 3, 2006 I think you'll need to use the COLUMNS_UPDATED function inside the trigger. Because I'm a tsql noob, I can't provide sample code =( ...Assuming you're using mssql. Quote
Administrators PlausiblyDamp Posted January 3, 2006 Administrators Posted January 3, 2006 You can always use the UPDATE keyword IF UPDATE() BEGIN --handle updated field here END Also http://www.databasejournal.com/features/mssql/article.php/1479821 contains a decent article on COLUMNS_UPDATED in case that is how you decide to handle it. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.