Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extracting dtsx from Integration Service Catalog from C#

From a local C# program, I am trying to connect to an SSMS server's Integration Services Catalog (SSISDB) to read the .dtsx file(s) that are in there. I have the IP/u/p of the server, but after that, how would I get the .dtsx files?

like image 465
bloodpresage Avatar asked Oct 19 '25 05:10

bloodpresage


1 Answers

You can extract SSIS projects (including dtsx files) using the SSISDB.catalog.get_project stored procedure. You should use it to save the project as a ".zip" file and extract the packages from it.

You should call this stored procedure from an SQL Command using C# to extract those files. While searching online I found a solution implemented in PowerShell, you can implement the same logic using c#:

  • Exports all SSIS projects and packages from a SQL Server 2012 and above SSISDB catalog
  • Get packages from SSIS Catalog
  • Dumping All Your Microsoft SQL Server Integration Services Packages to Files with PowerShell

Similar questions:

  • How to export packages deployed in "Integration Services Catalog" using any command line, C# or T-SQL?
like image 178
Hadi Avatar answered Oct 21 '25 18:10

Hadi