在SQL 的查询分析器中,打开对应的数据库,执行以下语句:
显示数据库中所有的表名:select * from sysobjects where xtype='u'
显示数据库中的所有用户表名:select * from sysobjects where xtype='u' and status>0
显示数据库中的所有视图名:select * from sysobjects where xtype='v'
显示数据库中的所有用户视图名:select * from sysobjects where xtype='v' and status>0
显示数据库中的所有存储过程名:select * from sysobjects where xtype='p'
显示数据库中的所有用户存储过程名:select * from sysobjects where xtype='p' and status >0