Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why temp table Inserted is not visible outside trigger?
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01152798
Message ID:
01152834
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
>>> The error is strange, but what is the structure of MyTable_tmp?
>>It's because MyTable_tmp contains two columns of 'text' type?
>
>Yes, I would guess so. May be you need to list all fields you want to insert explicitly.

From BOL:

SQL Server 2005 does not allow for text, ntext, or image column references in the inserted and deleted tables for AFTER triggers. However, these data types are included for backward compatibility purposes only. The preferred storage for large data is to use the varchar(max), nvarchar(max), and varbinary(max) data types. Both AFTER and INSTEAD OF triggers support varchar(max), nvarchar(max), and varbinary(max) data in the inserted and deleted tables.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform