Visual Studio Issue

Mav 81 Reputation points
2022-01-27T21:21:17.21+00:00

Hi

I am using VS 2019
My SQL Server has 2016 version and has SSIS solutions deployed in Integration Service catalogues
The SSIS Package has C# scripts in it in script tasks.

Now when I try to import the solution in my VS 2019, by either "Integration Services Import Project Wizard" or from ispac file. the VS solution gets created with target sql as 2019 and C# scripts disappear

What can be done to fix this

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 VB
SQL Server Other
{count} vote

3 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2022-01-28T05:46:32.32+00:00

    created with target sql as 2019 and C# scripts disappear

    In VS right-mouse click on the project => properties => TargetServerVersion.


  2. ZoeHui-MSFT 41,491 Reputation points
    2022-01-28T06:02:14.96+00:00

    Hi @devhere,

    Have you tried to change the target version?

    169343-image.png

    Don't forget to choose apply and then check your package.

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Tom Phillips 17,771 Reputation points
    2022-01-28T13:04:06.803+00:00

    This was a bug a while ago in SSDT. Please make sure you have the most current version.

    The scripts technically existed in the file, but when you opened them in the UI they were marked "invalid" and reset to the default text and saved that way. Once saved, they are gone.


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.