How to run an SSIS package from C# .NET 7?

Maxim Eliseev 20 Reputation points
2023-08-03T13:21:26.5033333+00:00

How to run an SSIS package from C# .NET 7?

I saw the following article

https://learn.microsoft.com/en-us/sql/integration-services/ssis-quickstart-run-dotnet?view=sql-server-ver16

but it seems it cannot be applied to .NET 7.

It has the following step

In Solution Explorer, right-click the References folder and select Add Reference. The Reference Manager dialog box opens.

but there is no References folder and Add Reference option in a .NET 7 project.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
Developer technologies .NET Other
{count} votes

Accepted answer
  1. Yitzhak Khabinsky 26,586 Reputation points
    2023-08-03T15:40:36.9466667+00:00

    Hi @Maxim Eliseev,

    There are many ways how to launch SSIS packages.

    One of them is via T-SQL. So, you can create a stored procedure (SP) that will launch SSIS packages. After that just call that SP from C# .NET 7.

    For the reference: https://learn.microsoft.com/en-us/sql/integration-services/ssis-quickstart-run-tsql-ssms?view=sql-server-ver16

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2023-08-04T02:24:22.9466667+00:00

    Hi @Maxim Eliseev,

    I'm not familiar with C#.

    Check it out here to see if it is helpful.

    How to execute an SSIS package from .NET

    Execute SSIS Packge by using C# and SQL Server

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  2. Olaf Helper 47,436 Reputation points
    2023-08-04T06:08:29.2666667+00:00

    but there is no References folder and Add Reference option in a .NET 7 project.

    Then you may have create a wrong project type in Visual Studio.

    Create a new one and ensure you have selected a .NET (not core!) WinForms/WPF or similar project type.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.