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:
01422917
Views:
46
>I would like to have a general function. Then I don't know the columns name.
>Marc, a few questions...
>
>1) You say you want to grab the last row that was inserted....are you sure you want "every" column, or just certain columns?
>
>2) A related question...are you doing this across several tables, or just for one table?
>
>
>As you've already read from other reponses, text and image columns won't work, unless you can somehow change the storage type without creating havoc in the application.
>
>By the way (though if you're stuck with SQL 2000, this won't help much), SQL 2008 implements Change Data Capture (CDC), which incorporates logging into the database manager, so it's all done automatically....reduced need for triggers.

I will have to read about CDC - thanks.

http://www.mssqltips.com/tip.asp?tip=1474
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform