gpt4 book ai didi

sql-server - 在命令行参数中检测到错误,请确保所有参数设置正确(SqlManagerUI)

转载 作者:行者123 更新时间:2023-12-04 20:52:19 25 4
gpt4 key购买 nike

我有一个 SSIS 包,可以输出和 excel 文件并通过电子邮件发送它。当我从 Visual Studio 运行它时,它工作正常。但是当我从 SSMS 中的作业运行它时,它会抛出一个错误:

"Errors were detected in the command line argument, please make sure all arguments are set correctly. (SqlManagerUI)



问题似乎出在 Excel 连接管理器连接字符串中。它在 Visual Studio 中工作正常,但在 SSMS 工作中导致上述错误。

以下是我的工作中如何定义连接字符串:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\\nsi.pri\atp-images-DEV\StagingDB\ApprovedCustomers\DailyApprovedCustomers_2019_05_14.xlsx;Extended Properties="EXCEL 12.0 XML;HDR=YES";

最佳答案

我认为主要原因是 SQL 作业作为没有访问 excel 路径的 SQL 服务帐户运行。尝试以 Windows 用户身份运行作业。

  • Run an SSIS Package Under a Different Account

  • 此外。可能是 32/64 位问题,尝试在 32 位模式下执行作业:
  • SSIS Package Not Running as 32bit in SQL Server 2012
  • 关于sql-server - 在命令行参数中检测到错误,请确保所有参数设置正确(SqlManagerUI),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56136963/

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