sql server 重新编译所有视图
2013-04-08 11:31
155 查看
--重新编译所有视图
declare @s nvarchar(4000)
declare tb cursor local for
select 'sp_refreshview '''+name+ ' '' '
from sysobjects
where xtype= 'V ' and status> =0
open tb
fetch tb into @s
while @@fetch_status=0
begin
exec(@s)
fetch tb into @s
end
close tb
deallocate tb
declare @s nvarchar(4000)
declare tb cursor local for
select 'sp_refreshview '''+name+ ' '' '
from sysobjects
where xtype= 'V ' and status> =0
open tb
fetch tb into @s
while @@fetch_status=0
begin
exec(@s)
fetch tb into @s
end
close tb
deallocate tb
相关文章推荐
- SQL Server修改表结构后批量更新所有视图
- 刷新SQL SERVER所有视图、函数、存储过程
- SQL Server修改表结构后批量更新所有视图
- sql server 删除所有表、视图、存储过程
- SQL Server修改表结构后批量更新所有视图
- 重新编译视图
- SQL Server中查询所有的表、视图、列和存储过程
- Devexpress 10.1.6 源代码重新编译成功(DXperience 10.1.6 重新编译)附所有需要用到的资源下载地址(建议现在编译用新版本方法编译)
- SQL Server修改表结构后批量更新所有视图
- sql server 2008查看所有的表,视图,列
- 重新编译所有无效的PL/SQL模块(对象)
- Keil V5.1x命令“Build Target”重新编译所有文件
- Microsoft Dynamics server 2015 所有的SQL server 2012 视图 介绍及功能
- sql server 删除所有表、视图、存储过程
- 删除可视图中的类不能彻底避免它重新被编译
- Sql Server 查看所有存储过程或视图的位置及内容
- 删除可视图中的类不能彻底避免它重新被编译
- Sql Server 查看所有存储过程或视图的位置及内容
- Sql Server 查看所有存储过程或视图的位置及内容
- sql server查询所有表名、字段名、类型、长度 和 存储过程、视图 的创建语句