当我使用 LoadPackage() 从 .aspx 页面(或 Windows 服务)调用 SSIS 包时,如何设置权限以使其正常工作?
事件查看器报告 Sql server 错误:
用户“NT AUTHORITY\NETWORK SERVICE”登录失败。原因:无法打开明确指定的数据库。[客户:192.168.73.118]
如何让该帐户访问我的 sql 服务器?
我认为您不应该更改网络服务的权限。这将增加 Sql Server 的安全风险,因为 ASP.NET 或作为 NETWORK SERVICE 运行的任何其他服务的危害都会危害 Sql Server。在 ASP.NET 进程中运行 SSIS 也存在可靠性问题。
我建议使用一些特定的用户帐户在 ASP.NET 进程之外运行 SSIS。
查看有关以编程方式运行 SSIS 的各种方法的一些想法:http: //blogs.msdn.com/michen/archive/2007/03/22/running-ssis-package-programmatically.aspx
Are you running a non-english Operation System?
For some reasons, some account names like "NT Authority\Network Service" has been localized in other languages.
Sadly, a lot of programs have the account names hard coded to the english names, and won't find the account when running on foreign versions of Windows.