Cannot insert explicit value for identity column in table '表名' when IDENTITY_INSERT is set to OFF
问题:sql Insert的时候报的错误.
分析:要插入的表中有自增字段.
解决:跳过此自增字段不插入.
例如:tableA中的a为自增字段
insert into tableA(a,b,c)
select b,c from tableB
http://www.cnblogs.com/RobotTech/archive/2008/09/05/1284909.html
set IDENTITY_INSERT on 和 off 的设置