use [数据库名]
select name from sys.procedures
-- 读取库中的所有表名select name from sysobjects where xtype='u'
-- 读取指定表的所有列名select name from syscolumns where id=(select max(id) from sysobjects where xtype='u' and name='表名')
---- 查询临时表SELECT * FROM tempdb.dbo.sysobjects
WHERE name LIKE '%keytemp%'