问题描述
VS Online中的Azure Sql数据库部署任务无法部署Dacpac文件,错误为
错误SQL72014:.Net SqlClient数据提供程序:消息1222,级别16 ,状态56,第3行超出锁定请求超时时间。
错误SQL72045:脚本执行错误。 执行的脚本:
WAITFOR DELAY '00:00.010';
ALTER TABLE [dbo]。[TEST] WITH NOCHECK
   添加约束[FK_Test1_Table2] FOREIGN KEY([TestId])REFERENCES [dbo]。[Test1]([Id])"。
我们尝试添加/ p: DeployDatabaseInSingleUserMode = True和/ p:CommondTimeout = 1800但不起作用。
我们还尝试在preDeployment.script中设置LOCK_TIMEOUT。它既不起作用。
Azure Sql Database Deployment task in VS Online failed to deploy Dacpac file with error
Error SQL72014: .Net SqlClient Data Provider: Msg 1222, Level 16, State 56, Line 3 Lock request time out period exceeded.
Error SQL72045: Script execution error. The executed script:
WAITFOR DELAY '00:00.010';
ALTER TABLE [dbo].[TEST] WITH NOCHECK
ADD CONSTRAINT [FK_Test1_Table2] FOREIGN KEY ([TestId]) REFERENCES [dbo].[Test1] ([Id])".
We have tried to add /p:DeployDatabaseInSingleUserMode=True and /p:CommondTimeout=1800 but doesn't work.
We also tried to set LOCK_TIMEOUT in preDeployment.script. It doesn't work neither.
这篇关于VS Online中的Azure Sql数据库部署任务无法部署Dacpac文件,错误“执行脚本时锁定请求超时...”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!