摘要:
1:获取当前数据库中的所有用户表select Name from sysobjects where xtype='u' and status>=02:获取某一个表的所有字段select name from syscolumns where id=object_id('表名')3:查看与某一个表相关的视图、存储过程、函数select a.* from sysobjects a, syscomments b where a.id = b.id and b.text like '%表名%'4:查看当前数据库中所有存储过程select name a 阅读全文