sql server xtype 对应数据类型名称sql查询

SELECT c.name,c.user_type_id,t.name
FROM sys.[columns] AS c INNER JOIN sys.types AS t ON t.user_type_id=c.user_type_id

查询xtype对应的类型名称 做orm用到 记录一下

原文地址:https://www.cnblogs.com/ProDoctor/p/7403174.html