Database项目中关于Procedure sp_refreshsqlmodule_internal的错误
最近項目中發(fā)現(xiàn)一怪問題,使用DB項目發(fā)布數(shù)據(jù)庫時,總提示
“(110,1): SQL72014: .Net SqlClient Data Provider: Msg 1222, Level 16, State 56, Procedure sp_refreshsqlmodule_internal, Line 67 Lock request time out period exceeded.
An error occurred while the batch was being executed.”
百般嘗試終不得其解,后google看到一篇文章,按里面的說明嘗試了一下,結(jié)果問題解決了。
文章地址:https://ask.sqlservercentral.com/questions/37428/using-syssp-refreshsqlmodule-with-objects-that-hav.html#
?
原因:有人重命名視圖造成的
通過下面的方法,把數(shù)據(jù)庫所有視圖命名重新規(guī)范一下,問題得到解決。
?
DROP VIEW testObjectView --刪除現(xiàn)有視圖名稱GOCREATE VIEW testView AS SELECT * FROM [sys].[objects] --創(chuàng)建視圖GOexec [sp_rename] 'testView', 'testObjectView' --重命名視圖GOexec [sp_refreshview] N'dbo.testObjectView' --刷新視圖 ?
轉(zhuǎn)載于:https://www.cnblogs.com/event/p/4410387.html
總結(jié)
以上是生活随笔為你收集整理的Database项目中关于Procedure sp_refreshsqlmodule_internal的错误的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 21金维他价格是多少啊?
- 下一篇: 如何在Form中使用键弹性域(Key F