Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

IDENTITY_INSERT ON

$
0
0

Why doesn't this work?

SET IDENTITY_INSERT TemoCatalogProducts ON
INSERT INTO TempCatalogProducts
SELECT * FROM CatalogProducts WHERE VariantID IN ('125244', '104907', '144083', '144098', '144099', '144097', '144096')

I still get the error:

Msg 8101, Level 16, State 1, Line 2
An explicit value for the identity column in table 'TempCatalogProducts' can only be specified when a column list is used and IDENTITY_INSERT is ON.


Kevin Burton


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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