我制作了一个 SSIS 包,用于从 Microsoft SQL Server 导出数据并将其导入到 .csv 和 mysql 文件中。我开始使用代理帐户并且它有效,但仅当用户登录时才有效。 当用户注销时如何使其工作!?先感谢您。
最佳答案
我解决了这个问题。首先,创建系统DSN。 link for this
Does any connection manager in the package use ODBC DSN? If any ODBC DSN is used, please make sure the DSN type is System DSN rather than User DSN. The user DSN may not be accessible when the user that create the DSN logs off.
其次,创建新代理并为其提供凭据 link for this
Use master
CREATE CREDENTIAL [MyCredential] WITH IDENTITY = 'yourdomain\myWindowAccount', secret = 'WindowLoginPassword'
Use msdb
Sp_add_proxy @proxy_name='MyProxy', @credential_name='MyCredential'
Sp_grant_login_to_proxy @login_name=' devlogin', @proxy_name='MyProxy'
Sp_grant_proxy_to_subsystem @proxy_name='MyProxy', @subsystem_name='SSIS'
关于mysql - sql 作业中带有代理帐户的 ssis 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56825970/