Interpreting type codes in sys.objects in SQL Server

前端 未结 3 1218
慢半拍i
慢半拍i 2021-02-01 08:02

On SQL Server, the sys.objects table includes \"Type\" and \"Type_Desc\" attributes. For example, for one of my DBs:

SELECT DISTINCT [Type], Type_Desc
FROM Sys.O         


        
3条回答
  •  星月不相逢
    2021-02-01 08:25

    I realise this is a bit old now, but for those looking for an answer, this is what I found.

    select * from master..spt_values where type = 'O9T'
    

提交回复
热议问题