复制代码 代码如下:
select a.name, o.name AS TableName, o.type, a.id, o.object_id, o.schema_id
FROM sys.syscolumns AS a INNER JOIN sys.systypes AS b ON a.xtype = b.xtype
AND b.name = ‘nvarchar’
INNER JOIN
sys.objects AS o ON a.id = o.object_id
WHERE (o.type = ‘u’)
AND (o.schema_id = 1)
原创文章,作者:1402239773,如若转载,请注明出处:https://blog.ytso.com/234380.html