SQL Server查询某一列都在哪些表中存在
/* select object_name(id) objName,Name as colName from syscolumns where (name like'%Domain%') and id in(select id from sysobjects where xtype='u') order by objname; 查询某列在哪些表里存在。 */
/* select object_name(id) objName,Name as colName from syscolumns where (name like'%Domain%') and id in(select id from sysobjects where xtype='u') order by objname; 查询某列在哪些表里存在。 */