我们的核心数据库有问题,该数据库已被前一天的备份数据库恢复。
在那之后,该网站运行良好,但我们在发布任何更改时遇到问题。一旦你点击发布按钮,“发布初始化......”消息就会持续很长时间。从“发布开始/结束”开始,事件日志中都不会捕获注释。
因此,当我们尝试使用数据库清理工具清理 master/web 数据库时,会弹出 SQL 错误。
有没有人解决这样的问题?
这是我在清理“网络”数据库时遇到的错误。
Job started: CleanUpDatabases|System.Exception: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.Data.DataException: Error executing SQL command: declare @x bigint set @x = 0 DECLARE @item TABLE(ID uniqueidentifier,parentID uniqueidentifier) INSERT INTO @item (ID,parentID) SELECT [ID],[ParentID] FROM [Items] DECLARE @temp TABLE(ID uniqueidentifier) WHILE (SELECT count(id) FROM @item ) <> @x begin set @x = (SELECT count(id) FROM @item ) delete from @temp; …Run Code Online (Sandbox Code Playgroud) sitecore ×1