http://blog.csdn.net/gane_cheng/article/details/52232238

{“当 IDENTITY_INSERT 设置为 OFF 时,不能向表 ‘ClassInfo’ 中的标识列插入显式值”}

###允许将显式值插入表的标识列中 ON-允许  OFF-不允许

set identity_insert ClassInfo ON;

insert into ClassInfo(ID,ProductID,ClassName,InvokeCode,Enabled) values(500,1,'InlineShapes(i)','Application.ActiveDocument.InlineShapes(i)',1);
insert into ClassInfo(ID,ProductID,ClassName,InvokeCode,Enabled) values(501,1,'Endnotes','Application.ActiveDocument.Endnotes',1);

set identity_insert ClassInfo OFF;