说明:列出数据库里所有的表名 
select name from sysobjects where type='U' 
 
说明:列出表里的所有的列 
select name from syscolumns where id=object_id('TableName') 

相关文章: