Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 text, ntext

Author  Topic 

tkbeam
Starting Member

1 Post

Posted - 2005-04-06 : 10:42:36
I need to manipulate text and ntext field in a trigger and cannot define local variables with these data type.

How can I update these fields in a trigger?

Thank you,
TB

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-04-06 : 14:53:51
Look at Books on line for UpdateText. Also, there are many topics here relating to text column manipulation. Do a forum search on Text nText.

Be One with the Optimizer
TG
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-04-06 : 19:27:17
Also note that text/ntext/image columns can only be modified in an INSTEAD OF trigger, not a (regular) AFTER trigger. Books Online has more details under "CREATE TRIGGER".
Go to Top of Page
   

- Advertisement -