重新编译存储过程

来源:互联网 发布:mac系统好用吗 编辑:程序博客网 时间:2024/05/07 15:34
select 'exec sp_recompile '''+quotename(a.name)+'.'+quotename(b.name)+'''' from sys.schemas a
join sys.all_objects b
on a.schema_id=b.schema_id
and b.type='p' and a.name <>'sys'
order by a.name,b.name
原创粉丝点击