Link to home
Start Free TrialLog in
Avatar of chokka
chokkaFlag for United States of America

asked on

Execute .dtsx file from .bat ( Execute SSIS Package from MS DOS Batch file )

How to execute a SSIS Package from MS DOS batch file?
Avatar of EvilPostIt
EvilPostIt
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of chokka

ASKER

I wrote a batch file .. !

But it is not generating the excel sheet.
'dtexec /f "C:\MedISReports\SalisburyExportExcelCC01.dtsx"'

Open in new window

Have you had a look at the output of the command to ensure that it is not erroring?
Avatar of chokka

ASKER

Its running .. but i am not getting the output.

Do you suggest me to keep PAUSE keyword in dos command .. ?
No, you should be getting an output of some kind. The package should at least be validated before it is executed.

This is just a dtsx file. Its not stored in a SQL Server somewhere is it?
Avatar of chokka

ASKER

Do you have any sample batch file to execute .dtsx file ?

i thought executing .dtsx file as similar to executing .exe file.
ASKER CERTIFIED SOLUTION
Avatar of EvilPostIt
EvilPostIt
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chokka

ASKER

EvilPostit ..!

dtexec /f "C:\MedISReports\SalisburyExportExcelCC01.dtsx"


The difference between your code and my code is .. i have single quote .. which you dont have.