Select Object_Name(id.object_id) As [table_name]
, id.name As [column_name]
, t.name As [data_type]
,seed_value
,increment_value
, Cast(id.last_value As bigint) As [last_value]
, Case
When t.name = 'tinyint' Then 255
When t.name = 'smallint' Then 32767
When t.name = 'int' Then 2147483647
When t.name = 'bigint' Then 9223372036854775807
End As [max_value]
From sys.identity_columns As id
Join sys.types As t
On id.system_type_id = t.system_type_id
Where id.last_value Is Not NULL
ORDER BY last_value DESC
【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
上一篇: redis使用
下一篇: redis:windows连虚拟机