Create $PackageVariable ssis

Shambhu Rai 1,411 Reputation points
2022-04-03T20:09:42.173+00:00

Hi Expert

How to create $package variable in ssis

Expected output
189543-image.png

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,344 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yitzhak Khabinsky 26,586 Reputation points
    2022-04-03T21:14:24.367+00:00

    Hi @Shambhu Rai ,

    The $Package::ParameterName is not a variable. It is a package level parameter.

    Check it out here: getting-started-with-sql-server-integration-services-ssis-parameters-vs-variables

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2022-04-04T01:49:42.707+00:00

    Hi @Shambhu Rai ,

    As shown in your image, it is not a variable but a package parameter, variable usually formats as User::FilePath.

    189572-image.png

    If you want to create variable in the package, refer to integration-services-ssis-variables.

    If you want to create parameter in the package, refer to integration-services-ssis-package-and-project-parameters.

    The two is different, see also here ssis-variables-vs-parameters-ssis-denali

    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.

    0 comments No comments

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.