Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9185127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:13:07+00:00 2026-06-17T19:13:07+00:00

I am trying to execute a SSIS package located in a database programatically. I

  • 0

I am trying to execute a SSIS package located in a database programatically.

I am using this API:

Imports Microsoft.SqlServer.Dts.Runtime

I have an image describing the path (in database) to package but I cannot figure out how to set the packagePath property properly in the LoadFromSqlServer method.

Here is the image describing my package path in database:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:13:08+00:00Added an answer on June 17, 2026 at 7:13 pm

    You will need to add a reference to Microsoft.SqlServer.Management.IntegrationServices. For me, it does not show up in the SQL Server folders and I could only find it in the GAC.

    C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Management.IntegrationServices\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Management.IntegrationServices.dll

    There’s also a dependency from that assembly to

    C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Management.Sdk.Sfc\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Management.Sdk.Sfc.dll

    Sub Main()
        '
        ' Do not fault me for my poor VB skills nor my lack of error handling
        ' This is bare bones code adapted from 
        ' http://blogs.msdn.com/b/mattm/archive/2011/11/17/ssis-and-powershell-in-sql-server-2012.aspx
    
        Dim folderName As String
        Dim projectName As String
        Dim serverName As String
        Dim packageName As String
        Dim connectionString As String
        Dim use32BitRuntime As Boolean
        Dim executionId As Integer
    
        Dim integrationServices As Microsoft.SqlServer.Management.IntegrationServices.IntegrationServices
        Dim catalog As Microsoft.SqlServer.Management.IntegrationServices.Catalog
        Dim catalogFolder As Microsoft.SqlServer.Management.IntegrationServices.CatalogFolder
        Dim package As Microsoft.SqlServer.Management.IntegrationServices.PackageInfo
    
        ' Dimensions in your example
        folderName = "SSISHackAndSlash"
        ' dimCalendar in your example
        projectName = "SSISHackAndSlash2012"
        serverName = "localhost\dev2012"
    
        ' dimCalendar in your example (no file extension)
        packageName = "TokenTest.dtsx"
        connectionString = String.Format("Data Source={0};Initial Catalog=msdb;Integrated Security=SSPI;", serverName)
    
        integrationServices = New Microsoft.SqlServer.Management.IntegrationServices.IntegrationServices(New System.Data.SqlClient.SqlConnection(connectionString))
        ' There is only one option for an SSIS catalog name as of this posting
        catalog = integrationServices.Catalogs("SSISDB")
    
        ' Find the catalog folder. Dimensions in your example
        catalogFolder = catalog.Folders(folderName)
    
        ' Find the package in the project folder
        package = catalogFolder.Projects(projectName).Packages(packageName)
    
        ' Run the package. The second parameter is for environment variables
        executionId = package.Execute(use32BitRuntime, Nothing)
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am trying to execute ssis package using dtexec utility from c# app(Creating New Process,
I am getting this error when trying to execute the SSIS package. [Flat File
I'm trying, unsuccessfully, to remotely execute an SSIS package. The package resides on a
I'm trying to execute a sql script using the task in SSIS. My script
I am using this in Script Component In SSIS --> Microsoft.Office.Interop.Excel.Application objXL = new
I am trying to execute this program using fork and join framework. When I
Am trying to execute SSIS package with dtexec command line utility. my syntax for
i got this error whenever i trying execute my project which is used database
I am trying to execute a parameter query for a Postgre database using Springs
I'm trying to execute a command using the following code snippet: foreach($package in (Get-Childitem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.