run ssis package in 32 bit mode using bat file

  • Hello,

    I have created several topics that I posted on SSC regarding SSIS 2012 that were never answered. I have had great success with this web site over the past ten years, so I am not sure why my posts are being ignored. Am I on the correct forum?

    Here is my issue...

    I have a bat file that kicks off a master package, which kicks off about 300 child packages. My bat file is working correctly, however there seems to be issues executing packages in 64 bit mode.

    So my question is...

    Is there a way to specify in the bat file to execute packages in 32 bit mode and not 64 bit? Any help would be greatly appreciated.

    bat file:

    "C:\Program Files\Microsoft SQL Server\110\DTS\Binn\DTExec.exe" /f "E:\MasterPackage.dtsx"

    The are no problems, only solutions. --John Lennon

  • You will need to install either the client tools or SQL Server Data Tools on the server that runs the packages. This will install the 32 bit DTExec.exe.

    http://msdn.microsoft.com/en-us/library/hh231187(v=sql.110).aspx

    Then it's as simple as pointing to "C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\DTExec.exe" in your batch file.

  • Hi All,

    I have a similar situation as the original poster's. I'm running a master SSIS package from a bat file, and per the last poster, I believe my bat file is pointing to the correct 32 bit Dtexec.exe, as this is the content of the .bat file:

    REM Runs DTSX package via the command line

    pushd D:\SFAS\SSIS\SESDatamart\bin
    "C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\dtexec.exe" /f "D:\SFAS\SSIS\SESDatamart\packages\MASTER EXTRACT.dtsx" /set "\package.variables[User:: PriorYears].Properties[Value]";3 /set "\package.variables[User::MonthIncrement].Properties[Value]";2
    popd

    REM Capture error code and send to UC4
    exit /b %errorlevel%

    My master package was developed with the Project property of Run64BitRuntime as False, and when I've been trying to deploy and get it to run on our Dev server which is running a 64 bit OS, I'm receiving random app crashes on dtexec. Can anyone please advise how to correct this issue? Thanks in advance for sharing your expertise!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply