如何重新设置用户定义的表类型的标识列。 [英] how to reseed the identity column of an user defined table type.
本文介绍了如何重新设置用户定义的表类型的标识列。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以任何一个plz帮我解决如何重置用户定义的表类型的标识列。我在sp中引用一个udt而我不能删除或截断它的对象在sp。因此,在删除udt对象中的行后,不会重置身份。
提前感谢。
解决方案
< blockquote>试试这个,,,, :)
http://blog.sqlauthority.com/2012/08/24/sql-server-delete-truncate-and-reseed-identity / [ ^ ]
Hi,
can any one plz help me out how to reset the identity column of an user defined table type.I am referencing an udt in a sp and i can't drop or truncate the object of it in the sp. So after deleting the rows from the udt's object the identity is not reset.
Thanks in advance.
解决方案
Try this,,,,:)
http://blog.sqlauthority.com/2012/08/24/sql-server-delete-truncate-and-reseed-identity/[^]
这篇关于如何重新设置用户定义的表类型的标识列。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文