gpt4 book ai didi

sql-server - SSIS 获取连接失败。连接可能未正确配置,或者您可能对此连接没有正确的权限

转载 作者:行者123 更新时间:2023-12-05 04:00:45 26 4
gpt4 key购买 nike

我使用的是 MS SQL Server 2016。我有一个 SSIS 包,其中有一个执行 SQL 任务。我可以用 Visual Studio 很好地执行它。当我部署到 SSIS 目录时,我收到以下错误:

Execute SQL Task: Error: Failed to acquire connection. Connection may not be configured correctly or you may not have the right permissions on this connection

同样,如果我尝试通过 SQL 代理作业执行,我会收到以下信息:

Description: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. Source: .Net SqlClient Data Provider Started: 15:02:11 Finished: 15:02:12 Elapsed: 0.125 seconds. The package execution failed. The step failed.

我错过了什么?任何帮助将不胜感激。

SQL Server 中的连接管理器使用的是 ADO.net,而不是 OLEDB

最佳答案

问题的原因是,在连接管理器中,您使用的是 Windows 集成安全性,它使用当前 Windows 用户建立连接。

当包从 SQL 作业执行时,它使用没有连接权限的 SQL 服务帐户。为了解决这个问题,您可以定义一个代理帐户并以您的 Windows 用户身份运行该作业:

关于sql-server - SSIS 获取连接失败。连接可能未正确配置,或者您可能对此连接没有正确的权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55937044/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com