摘要:
通常情况下,不能向 SQL Server 自增字段插入值,如果非要这么干的话,SQL Server 就会好不客气地给你个错误警告:Server:Msg544,Level16,State1,Line1 Cannotinsertexplicitvalueforidentitycolumnintable't'whenidentity_insertissettoOFF.这个错误消息提示我们,如果向 SQL Server 自增字段插入值,需要设置 identity_insert 选项为 on。setidentity_inserton看具体的一个例子:createtabledbo.t ( 阅读全文
posted @ 2013-07-23 11:56
prvin
阅读(16321)
评论(0)
推荐(0)

浙公网安备 33010602011771号