什么是错误......? [英] what is the error......?

查看:133
本文介绍了什么是错误......?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我要在下面执行此查询错误正在抛出





插入到tbl_DirectBackend_Update_Mst

select *来自Maven..tbl_DirectBackend_Update_Mst





Msg 8101,Level 16,State 1,Line 1

An表'tbl_DirectBackend_Update_Mst'中标识列的显式值只能在使用列列表且IDENTITY_INSERT为ON时指定。

解决方案

而不是在选择查询中放*使用列名,如果有任何IDENTITY列,请不要使用IDENTITY列名。



然后运行查询,这将有效。



谢谢


只提供除标识列以外的所有列名...因为您无法在标识字段中插入值(可能重复或自动增量字段)。



问候

AARIF SHAIKH


检查出来: http://www.sql-server-helper.com/error-messages/msg- 8101.aspx [ ^ ]

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.

解决方案

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


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


Check this out: http://www.sql-server-helper.com/error-messages/msg-8101.aspx[^]


这篇关于什么是错误......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆