Run a SSIS Package Using Batch File

Data Enthusiast picture Data Enthusiast · May 2, 2017 · Viewed 8.1k times · Source

need some help in executing my SSIS package from command prompt. below is the path of my DTExec file and the package path. when i run this , i am getting an error "missing argument for option "file"

"C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\DTExec.exe"/f

"C:\Users\myname\Documents\Visual Studio 2015\Projects\SSIS tutorials\SSIS tutorials\filtering duplicates using fuzzy grouping.dtsx"

please help

Answer

Hadi picture Hadi · May 2, 2017

When installed Integration Services the DTExec path (C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\) is added by default to PATH environment variable so you can use the following command (make sure it is one line command)

Dtexec /f "C:\Users\myname\Documents\Visual Studio 2015\Projects\SSIS tutorials\SSIS tutorials\filtering duplicates using fuzzy grouping.dtsx"

Also check spacing between arguments

Reference