Jan 2, 2006 #1 B barski Well-known member Joined Apr 7, 2002 Messages 239 Location Tennessee is there a way to determine on an update trigger what field was modified?
Jan 2, 2006 #2 HJB417 Well-known member Joined Mar 5, 2003 Messages 609 Location Lowell, MA I think youll need to use the COLUMNS_UPDATED function inside the trigger. Because Im a tsql noob, I cant provide sample code =( ...Assuming youre using mssql.
I think youll need to use the COLUMNS_UPDATED function inside the trigger. Because Im a tsql noob, I cant provide sample code =( ...Assuming youre using mssql.
Jan 3, 2006 #3 PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,155 Location Lancashire, UK User Rank *Expert* You can always use the UPDATE keyword Code: IF UPDATE(<fieldname>) 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.
You can always use the UPDATE keyword Code: IF UPDATE(<fieldname>) 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.
Jan 3, 2006 #4 B barski Well-known member Joined Apr 7, 2002 Messages 239 Location Tennessee thanks for the help.