Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SSIS 包包含一个脚本,用于检查目录是否存在。Directory.Exists() 方法返回 false,但我有权以管理员身份访问该文件夹。我如何确定在 SSIS 包执行期间使用了哪些用户权限。
这取决于你如何运行它。在 BIDS 中,它是运行它的用户,在 SQL 代理中,它通常是 SQL 代理帐户。在存储过程中,它通常是 SQL Server 帐户。
要确定,请使用 ProcMon 监控 DTEXEC 过程
除了来自@ElectricLlama 的评论之外,您还可以通过代理帐户在不同的凭据集的上下文中执行 SSIS 包。