--取得一个表的详细信息
select * from sysobjects where id=object_id('表名')
--取得一个表的所有字段的详细信息
select * from syscolumns where id=object_id('表名')