--重新编译所有视图
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 重新编译所有视图》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇Python36和Python27共存的方法详细讲解 A/B 测试关键步骤,快来检查下还有哪些疏漏的知识点下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=