1 select b.name 2 from dbo.syscomments a, dbo.sysobjects b 3 where a.id=b.id and b.xtype='p' and a.text like '%@tempGoods%'4 order by name
xtype 代表类型
C = CHECK 约束
D = 默认值或 DEFAULT 约束F = FOREIGN KEY 约束L = 日志FN = 标量函数IF = 内嵌表函数P = 存储过程PK = PRIMARY KEY 约束(类型是 K)RF = 复制筛选存储过程S = 系统表TF = 表函数TR = 触发器U = 用户表UQ = UNIQUE 约束(类型是 K)V = 视图X = 扩展存储过程