VSTS Azure SQL数据库部署任务不断失败,并显示错误:用户登录失败

时间:2018-10-16 09:29:53

标签: sql-server azure azure-devops azure-pipelines azure-pipelines-release-task

我正在尝试使用VSTS中的SQL数据库部署任务来执行SQL脚本,但始终出现错误“用户登录失败”。用户具有登录名和执行脚本的所有必需访问权限。

请提供输入以解决此问题。

以下是我得到的错误

2018-10-15T11:11:37.2211859Z ##[debug]Write-Exception : Login failed for user '*****'.
2018-10-15T11:11:37.2229567Z ##[debug]At C:\vstsagent\A6\_work\_tasks\SqlDacpacDeploymentOnMachineGroup_4b506f7f-720f-47bb-bf21-029bac6a690d\0.3.11\Main.ps1:183 char:5
2018-10-15T11:11:37.2255956Z ##[debug]+ Write-Exception($_.Exception)
2018-10-15T11:11:37.2256107Z ##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2018-10-15T11:11:37.2258402Z ##[debug] + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep tion
2018-10-15T11:11:37.2269833Z ##[debug] + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio n,Write-Exception
2018-10-15T11:11:37.2341886Z ##[debug] 
2018-10-15T11:11:37.2342067Z ##[debug]Script stack trace:
2018-10-15T11:11:37.2344163Z ##[debug]at Write-Exception, C:\vstsagent\A6\_work\_tasks\SqlDacpacDeploymentOnMachineGroup_4b506f7f-720f-47bb-bf21-029bac6a690d\0.3.11\Main.ps1: line 12
2018-10-15T11:11:37.2355864Z ##[debug]at <ScriptBlock>, C:\vstsagent\A6\_work\_tasks\SqlDacpacDeploymentOnMachineGroup_4b506f7f-720f-47bb-bf21-029bac6a690d\0.3.11\Main.ps1: line 183
2018-10-15T11:11:37.2386096Z ##[debug]at <ScriptBlock>, <No file>: line 1
2018-10-15T11:11:37.2386303Z ##[debug]at <ScriptBlock>, <No file>: line 22
2018-10-15T11:11:37.2388404Z ##[debug]at <ScriptBlock>, <No file>: line 18
2018-10-15T11:11:37.2399352Z ##[debug]at <ScriptBlock>, <No file>: line 1
2018-10-15T11:11:37.2710738Z ##[debug]Exception:
2018-10-15T11:11:37.2710996Z ##[debug]Microsoft.PowerShell.Commands.WriteErrorException: Login failed for user '*******'.
2018-10-15T11:11:37.2772735Z ##[error]Login failed for user '*****'. 

0 个答案:

没有答案