Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3019

Re: "inserted" table not allowed in derived table query

$
0
0

> If you really want to use the inserted data further you may have to save it into a  (temp) table first.

 

You can't insert into a temp table using a trigger (its a really annoying limitation that I've hit before).

 

create trigger a1 on newtablefor insert

as

    select * into #x from inserted

go

 

Msg 287, Level 16, State 1

Server 'DBS', Procedure 'a1', Line 3

SELECT INTO command not allowed within a trigger.


Viewing all articles
Browse latest Browse all 3019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>