无法在sql server代理中运行作业

时间:2017-05-25 11:42:04

标签: sql-server ssis sql-server-agent

我正在尝试从SQL Server代理执行作业,但收到错误:

The login is from an untrusted domain and cannot be used with Windows authentication.

带有Sql server Agent和SSIS的Sql server 2016,其中凭据帐户proxy链接到windows admin account。代理设置为SSIS package excecution

enter image description here

该作业只有一步即可运行SSIS包。该软件包是从VS 2016 +数据工具开发/测试/部署的。

enter image description here

以下是步骤:

enter image description here

和错误:

enter image description here

右键单击作业以查看历史记录。这是错误:

Executed as user: MACHINE_NAME\admin_user. Microsoft (R) SQL Server Execute Package Utility  Version 13.0.1601.5 for 64-bit  Copyright (C) 2016 Microsoft. All rights reserved.    Started:  2:15:10 PM  Failed to execute IS server package because of error 0x80131904. Server: xxx, Package path: \SSISDB\Practise 1\SSIS 1\Package.dtsx, Environment reference Id: NULL.  Description: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.  Source: .Net SqlClient Data Provider  Started:  2:15:10 PM  Finished: 2:15:10 PM  Elapsed:  0.188 seconds.  The package execution failed.  The step failed.

1 个答案:

答案 0 :(得分:1)

在本地计算机上运行的Sql server代理无法在步骤中解析服务器名称tcp:xxx.cloudapp.azure.com。由于代理是本地的,因此只需将服务器名称设置为.即可。解决。

enter image description here