Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Copy Records
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01119791
Message ID:
01121075
Views:
8
Right, you also have to list all the columns in the INSERT.

>Same result
>
>>In order to allow inserts in an IDENTITY column, you have to set
SET IDENTITY_INSERT result_detail ON
>>
>>
>>>I made a copy of a table for backup purposes. I now want to restore from it:
>>>
>>>
>>>insert into result_detail
>>>  select * from result_detail_old
>>>
>>>
>>>SQL throws:
>>>"An explicit value for the identity column in table 'result_detail' can only be specified when a
>>>column list is used and IDENTITY_INSERT is ON."
>>>
>>>I tried SET IDENTITY_INSERT result_detail OFF
>>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform