--解决办法:--执行下面的sql语句,可以重新编译当前库中的所有视图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 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
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货