Executing SSIS Package with DTEXEC

Posted on 2011-04-20
Last Modified: 2013-11-10
With SQL 2005 I was able to develop a Batch File that did some file manipulation and then executed a SSIS package. The code to execute the SSIS package is: DTEXEC.EXE /De Password /F File path to package.dtsx

My Server was upgrade to SQL 2008 and now the Batch will still manipulate my files however, it will NOT execute the SSIS package.

Any ideas? Thanks Much
Question by:SeTech
    LVL 22

    Accepted Solution


    Author Comment

    Thanks for the link. The code for a bat in the link is:
    set OLDDIR=%CD%
    dtexec /F "%OLDDIR%\MyPackageName.dtsx

    What is the purpose of the set OLDDIR=%CD% ? Do you need to have it?

    LVL 2

    Expert Comment

    Is this an interactive batch job, or is this running under the agents security context?  If it is interactive you will have to add the the needed lauch permissions to DCOM config. Also ensure the user or service account is in the db_dtsoperator role.
    LVL 22

    Expert Comment

    it's used to get dinamically the path of the package.
    You cannot store the packages insider SSIS Server?

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
    Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
    Via a live example, show how to setup several different housekeeping processes for a SQL Server.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now