sql查询含有某列名的所有表
SELECT b.name as TableName,a.name as columnname From
syscolumns a INNER JOIN sysobjects b ON a.id=b.id AND b.type='U' AND a.name='你的列名称'
SELECT b.name as TableName,a.name as columnname From
syscolumns a INNER JOIN sysobjects b ON a.id=b.id AND b.type='U' AND a.name='你的列名称'