CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2010
    Posts
    29

    SSIS package Excecution

    Hi,

    I want to execute a ssis package from vb.net application.

    I am getting the following error while calling a ssis package from vb.net application.

    The specified package could not be loaded from the SQL Server database

    ssis package is working fine from BIDS as well as from SQL Server Management Studio (SSMS).

    Package is deployed to the File System of SSMS.

    I am using the following code.

    Code:

    app.LoadFromSqlServer("\\MData_import", "70.50.30.891\SQL2005", Nothing, Nothing, Nothing)

    where app is the Microsoft.SqlServer.Dts.Runtime.Application object and MData_import is the package name.

    There is no password set for the package.

    Please help me to resolve my issue.
    Thanks in advance.

  2. #2
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    Arrow Re: SSIS package Excecution

    Just to confirm, you have deployed the package to the filesytem OR SSIS?

    See this article for an example of what I'm talking about:
    http://technet.microsoft.com/en-us/l...sqlserver.aspx
    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

  3. #3
    Join Date
    Jun 2010
    Posts
    29

    Re: SSIS package Excecution

    Hi,

    My SSIS package is deployed to MSDB location of the SQL2005.

    Now I am able to execute the ssis package from the application in my PC.

    But here I am facing one more issue.i.e.
    The same application not working in another PC in which no SQL server environment is there.

    In my PC SQL server2005 server is installed.

    I am using one library in my application for calling SSIS package.
    i.e.Microsoft.SQLServer.ManagedDTS.dll

    I copied the same library in to the same location of the new PC in which I want to execute.

    Assembly location
    -----------------------

    C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies\Microsoft.SQLServer.ManagedDTS.dll

    But still I am getting error.

    How to execute the same application in that new PC?

    Thanks in advance.

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: SSIS package Excecution

    Map the location. Refer to it as \\myShare\Folder\myfile.dll
    to the location it is working on the first pc. Probably in the SQL related folders
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured