在sqlserver中如何根据字段名查找字段所在的表

下面的sql语句在sqlserver中根据字段名查询,看哪些表包含了这个字段

select   a.name   表名,b.name   列名   from   sysobjects   a,syscolumns   b   where   a.id=b.id   and   b.name='列名'   and   a.type='U'
原文地址:https://www.cnblogs.com/dahuzizyd/p/Sql.html