在sqlserver中查找某个字段存在于那个表中的语句

在sqlserver中查找某个字段存在于那个表中的语句是:
use test
go
select a.Name as tableName from sysobjects a inner join syscolumns b on a.ID=b.ID
where b.Name='列名'
 
例句:
use DigSmart70FL
go
select a.Name as tableName from sysobjects a inner join syscolumns b 
on  a.ID=b.ID where b.Name='DtReceived'

 

posted @ 2012-12-10 19:51  摩根船长  阅读(8064)  评论(0编辑  收藏  举报