Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to set batch file argument in "Execute Process Task" (SSIS Packages)

How to set batch file argument in "Execute Process Task" (SSIS Packages)

Scheduled Pinned Locked Moved C#
helpsql-servertutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chintan Desai
    wrote on last edited by
    #1

    Hi Guys, I have one batch file. I set argument in it and when I double click the bat file,it work perfectly :). Argument only suggest to execute other SSIS packages on a given path. Argument is:

    FOR %%V IN (*.dtsx) DO dtexec /f "%%V" /Config "cfg%%~nV.dtsConfig" >> log_PkgExecution.txt
    pause

    Now, I want to set the same argument in SSIS Package called "Execute Process Task" in Execute Process Task editor -> Argument property. I did it, but getting problem during execution. On executing the package, DOS prompt is coming blank... I think, it is not getting the argument... Please help, if I am doing something wrong. Thanks in advance. Chintan

    L 1 Reply Last reply
    0
    • C Chintan Desai

      Hi Guys, I have one batch file. I set argument in it and when I double click the bat file,it work perfectly :). Argument only suggest to execute other SSIS packages on a given path. Argument is:

      FOR %%V IN (*.dtsx) DO dtexec /f "%%V" /Config "cfg%%~nV.dtsConfig" >> log_PkgExecution.txt
      pause

      Now, I want to set the same argument in SSIS Package called "Execute Process Task" in Execute Process Task editor -> Argument property. I did it, but getting problem during execution. On executing the package, DOS prompt is coming blank... I think, it is not getting the argument... Please help, if I am doing something wrong. Thanks in advance. Chintan

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Chintan.Desai wrote:

      On executing the package, DOS prompt is coming blank...

      It will be. You are redirecting output to the log_PkgExecution.txt file. Have a look in there. Your question is also not C# related.

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4a out now (29 May 2008)

      C 1 Reply Last reply
      0
      • L leppie

        Chintan.Desai wrote:

        On executing the package, DOS prompt is coming blank...

        It will be. You are redirecting output to the log_PkgExecution.txt file. Have a look in there. Your question is also not C# related.

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4a out now (29 May 2008)

        C Offline
        C Offline
        Chintan Desai
        wrote on last edited by
        #3

        Thx for the reply :) Log file is showing the following:

        Microsoft (R) SQL Server Execute Package Utility
        Version 9.00.1399.06 for 32-bit
        Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

        Started: 12:19:02 PM
        DTExec: Stopping the package execution.
        Started: 12:19:02 PM
        Finished: 12:19:10 PM
        Elapsed: 7.938 seconds

        I couldn't see the rows affected in my DB by packages which are executed by this bat file...In short, this batch file is not executing the argument.

        Regards Chintan

        modified on Tuesday, July 15, 2008 5:18 AM

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups