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.
| Author |
Topic |
|
byrmol
Shed Building SQL Farmer
1591 Posts |
Posted - 2001-10-09 : 00:43:54
|
| SQL Server 7Does anybody know how to get the data from a text column in the deletedtable of a trigger?According to BOL (2000):"In a DELETE, INSERT, or UPDATE trigger, SQL Server does not allow text,ntext, or image column references in the inserted and deleted tables if thecompatibility level is equal to 70. The text, ntext, and image values in theinserted and deleted tables cannot be accessed. To retrieve the new value ineither an INSERT or UPDATE trigger, join the inserted table with theoriginal update table. When the compatibility level is 65 or lower, nullvalues are returned for inserted or deleted text, ntext, or image columnsthat allow null values; zero-length strings are returned if the columns arenot nullable.If the compatibility level is 80 or higher, SQL Server allows the update oftext, ntext, or image columns through the INSTEAD OF trigger on tables orviews."I need the deleted table data..Any ideas??DavidMWant a job in 10 years?. Prepare for "Tutorial D" |
|
|
|
|
|
|
|