Results 1 to 4 of 4

Thread: Execution of SSIS Package

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2010
    Posts
    28

    Execution of SSIS Package

    Hi,
    I Just want to know is is possible to execute a ssis package from vb.net application?If so how to do that???

    Please help me if anybody knows about this.
    Thanks in advance.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Execution of SSIS Package

    I've recently deployed an application that executes a stored procedure in the database and that executes the package via xp_cmdshell. The obvious alternative would be SMO.

    http://social.msdn.microsoft.com/Sea...20package&ac=3
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2010
    Posts
    28

    Re: Execution of SSIS Package

    Hi,
    can you tell me what you mean by smo???
    Can you give me the syntax for execution of a package via xp_cmdshell???
    Thanks for your reply.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Execution of SSIS Package

    http://social.msdn.microsoft.com/Sea...query=smo&ac=8

    xp_cmdshell is an extended stored procedure in SQL server that you can use to execute applications. It is disabled by default for security reasons, so don't enable it lightly. Basically, you simply pass xp_cmdshell the same commandline that you would type into a console window to execute an application. In this case, the application you want to execute is DTEXEC, which is used to execute SSIS packages. That also makes me think that you could just call Process.Start to run DTEXEC too, assuming it's a Windows app. Consult MSDN for the options available when running DTEXEC, because the actual commandline will depend on your specific circumstances.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width