存储过程语句
create proc [dbo].[jrprSearchOBJ] @searchStr varchar(50) as
declare @tbObjstr table(objname varchar(30),typecnname varchar(20),objstr varchar(80))
insert into @tbObjstr
select
o.name,case o.type when 'tr' then '触发器'
when 'p' then '存储过程'
when 'v' then '视图'
when 'FN' then '函数' end ,
':'+ (case o.type when 'tr' then '触发器'
when 'p' then '存储过程'
when 'v' then '视图'
when 'FN' then '函数' end )
+
'【'<