Click here to Skip to main content
15,898,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
If i going to execute this below query error is throwing


insert into tbl_DirectBackend_Update_Mst
select * from Maven..tbl_DirectBackend_Update_Mst


Msg 8101, Level 16, State 1, Line 1
An explicit value for the identity column in table 'tbl_DirectBackend_Update_Mst' can only be specified when a column list is used and IDENTITY_INSERT is ON.
Posted
Comments
phil.o 16-Mar-15 8:41am    
Basically you are trying to insert into a table all the values still present in this table.

What do you want your query to do exactly?
Member 11337367 16-Mar-15 8:43am    
there is no data in that table.I want to insert from maven database table to other db table..

Instead of putting * in select query use column names and if any IDENTITY column is there then please dn't use IDENTITY Column name.

Then run the query, this will work.

Thanks
 
Share this answer
 
Just give all columns name except identity column... Because you can not insert value in identity field (may be Duplicate or Auto Increment field).

Regards
AARIF SHAIKH
 
Share this answer
 
 
Share this answer
 
Hi,

Check this...An Explicit Value..[^]

You are inserting values in Identity Column. Try to avoid this either make Identity_Insert Off or Use columns name except identity column.

Cheers
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900