SQL Server查询某字段在哪些表中

select a.name 表名,b.name 列名
from sys.objects a,sys.columns b
where object_name(b.object_id)=a.name
and b.name='taskNo'
and type='u'object

相关文章
相关标签/搜索