Executing SSIS Package as SQLAgent Job

后端 未结 2 1705
旧巷少年郎
旧巷少年郎 2021-01-22 02:38

I have a SQL Server 2008 SSIS job which executes some Win 32 exe files. This job runs fine when i execute the job through BIDS (On Windows 2008 box). Now i have deployed the pac

相关标签:
2条回答
  • 2021-01-22 03:21

    My assumption is the server is a 64 bit server, yes? If so, the agent will be running SSIS In 64 bit mode and that's causing an incompatibility with the executables.

    In the agent job, on the Execution Options tab, check the "Use 32 bit runtime" and it should be fine.

    enter image description here

    The question is tagged as 2008 but if I recall correctly, 2005 SQL Agent tasks of type SQL Server Integration Services Package did not have an option for running in 32 bit mode and by default everything ran in 64 bit mode. To get around that, one needed to run an OS command and call out to the 32 bit dtexec.exe which was most likely found in C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\DTExec.exe

    0 讨论(0)
  • 2021-01-22 03:30

    This also needs to be changed on BIDS. Solution Explorer> Right Click Project Properties>Configurations Properties>Debug Options>Run64BitRuntime - False enter image description here

    0 讨论(0)
提交回复
热议问题