资讯中心
News
当网站打开提示:找不到存储过程的解决方法
发布时间:2022-09-27 00:00   您所在的位置: 网站首页 > 新闻资讯 > 经验杂谈
很简单把数据库的存储过程所有者修改为DBO

数据库打开新建查询 选择对应的数据库 把下边代码复制执行 错误忽略!OK

declare tb cursor local for

sp_changeobjectowner [+replace(user_name(uid),],]])+].[

+replace(name,],]])+],dbo

from sysobjects

where xtype in(U,V,P,TR,FN,IF,TF)status>=低

open tb

declare @s nvarchar(4低低低)

fetch tb into @s

while @@fetch_status=低

begin

exec(@s)

fetch tb into @s

end

close tb

deallocate tb

go

本文章由新概念互动原创,如没特殊注明,转载请注明来自:https://www.jianzhan0.com/jingyand/75498.html