如何获得表对应的架构名称
如何获得表对应的架构名称
[解决办法]
select s.[name]
from sys.tables as t
join sys.schemas as s on t.schema_id = s.schema_id
where t.[name] = '表名'
select schema_name([schema_id]) 'schema'
from sys.objects
where type='U' and name='[表名]'