Running an SSIS Package using dtexec

后端 未结 2 1378
逝去的感伤
逝去的感伤 2020-11-29 12:54

I\'m running an SSIS package using dtexec. The package runs fine in BIDS on my system. When I create an SQL server agent job to run the package on a schedule. The package ru

2条回答
  •  北海茫月
    2020-11-29 13:20

    Here is the solution if you are trying to run a SSIS package with dtexec from transact SQL that contains an excel import.

    1. Create a batch file that contains the following code.

      cd C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\ DTEXEC.exe /DE "password" /F "C:\mySSISfolder\package.dtsx"

    2. Create a shortcut pointing at your batch file, set the properties\advanced on the shortcut to run as an administrator.

    3. from your transact sql procedure run the following command

      exec xp_cmdshell 'C:\myfolder\runssis_sc.lnk'

提交回复
热议问题