Posted by Erland Sommarskog on 08/07/06 13:27
Roy Harvey (roy_harvey@snet.net) writes:
> I would only add that a WHERE clause on the UPDATE in the trigger
> would save updates when the value is already within the range:
>
> WHERE t.col < 0 OR T.col > 10000
Good point! Thanks, Roy!
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
[Back to original message]
|