dbTalk Databases Forums  

COLUMNS_UPDATED() Dangerous?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss COLUMNS_UPDATED() Dangerous? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default COLUMNS_UPDATED() Dangerous? - 02-23-2011 , 07:23 PM






Dear SQLer:

I am just reading up about COLUMNS_UPDATED(), and it appears to
be dangerous.

It seems to me that a trigger using it would be vulnerable to
breaking if a change were made in the structure of the table.

Am I correct, or am I missing something?

Sincerely,

Gene Wirchenko

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: COLUMNS_UPDATED() Dangerous? - 02-24-2011 , 03:57 AM






Gene Wirchenko (genew (AT) ocis (DOT) net) writes:
Quote:
I am just reading up about COLUMNS_UPDATED(), and it appears to
be dangerous.

It seems to me that a trigger using it would be vulnerable to
breaking if a change were made in the structure of the table.

Am I correct, or am I missing something?
No, you are correct. I find this function to be of very dubious value.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
  #3  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: COLUMNS_UPDATED() Dangerous? - 02-24-2011 , 04:10 PM



On Thu, 24 Feb 2011 09:57:22 +0000 (UTC), Erland Sommarskog
<esquel (AT) sommarskog (DOT) se> wrote:

Quote:
Gene Wirchenko (genew (AT) ocis (DOT) net) writes:
I am just reading up about COLUMNS_UPDATED(), and it appears to
be dangerous.

It seems to me that a trigger using it would be vulnerable to
breaking if a change were made in the structure of the table.

Am I correct, or am I missing something?

No, you are correct. I find this function to be of very dubious value.
Thank you. I was surprised to see something so dubious-looking.

Sincerely,

Gene Wirchenko

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.