Groups | Blog | Home
all groups > sql server programming > october 2003 >

sql server programming : ntext, text and image in Trigger


Nicole Calinoiu
10/25/2003 1:14:03 PM
John,

You can join to the inserted table to the audited table to retrieve the
values of these column types from the audited table. This won't work for
auditing deletions, but that's not too bad since you can read the deleted
values from the last insertion or update audit log entry .

HTH,
Nicole


[quoted text, click to view]

John Koswalski
10/25/2003 5:22:33 PM
Hello,

I've written a stored procedure to automate the creation of audit tables.
This works well. For the columns of tetx, ntext or image data type I have
opted not to include them as they do not work in triggers (error: Cannot use
text, ntext, or image columns in the 'inserted' and 'deleted' tables, this
is documented behaviour)

Does anyone have a good workaround that is practical to include 'm in the
tigger anyway ?

Thanks

Louis Davidson
10/26/2003 11:23:31 PM
They are available in instead of triggers. Why avoid them? It is a
limitation, but is it imperative that you use every column in the trigger?

--
----------------------------------------------------------------------------
-----------
Louis Davidson (drsql@hotmail.com)
Compass Technology Management

Pro SQL Server 2000 Database Design
http://www.apress.com/book/bookDisplay.html?bID=266

Note: Please reply to the newsgroups only unless you are
interested in consulting services. All other replies will be ignored :)

[quoted text, click to view]

AddThis Social Bookmark Button