set identity_insert on off 失效 不起作用
set identity_insert on off 失效
明明设置了set identity_insert on
但SQL就是提示 set identity_insert off,导致无法手动指定autoid的自增列数值。
网上有很多例子了,但是我这种特殊情况,并非使用上的问题,而是SQL BUG导致的,网上搜寻了半天没找到原因,后来去翻查了微软SQL网站两个多小时,终于找到原因,特别分享出来,以免其他用户踩坑。
贴出问题:
这是微软官方bug导致,补丁修补说明:
https://support.mic
原创
2020-10-23 08:58:08 ·
1945 阅读 ·
0 评论