Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Asset Information Management

Deploy SSIS

  • Last UpdatedJul 23, 2024
  • 7 minute read

The SQL Server Integration Services (SSIS) enables you to populate the AIM reporting tables. SSIS provides an environment for updating and managing the tables with minimal impact on the database.

Creating De-Normalized Tables

You must create de-normalized reporting tables before running the SSIS package.

To create de-normalized tables:

  1. Go to the following folder:

    {install path}\Report\SSIS Reporting Example

  2. Open the DNOMScript.sql file.

    Note: Creating the tables in a database in a separate instance of the SQL server enhances the SSIS performance.

  3. Create a new database using the SQL Server Management Studio.

  4. Run the DNOMScript.sql script.

Installing and Deploying SSIS Packages

To install and deploy SSIS packages:

  1. Go to the following folder:

    {install path}\Report\SSIS Reporting Example

  2. Double-click the AVEVA.Reporting.SSIS.Dataload.SSISDeploymentManifest file.

    The package Installation Wizard opens.

  3. Select Next.

  4. Execute the following based on your infrastructure:

    If you want to

    Select

    And Then

    Deploy packages and dependencies in a specified folder in the file system

    File system deployment

    1. Select Next.

    2. In the Select Installation Folder window, select Browse, and select a Folder.

    3. In all the succeeding windows populated with the default values or options, select Next.

      Deploy packages and dependencies in an SQL Server instance

      SQL Server deployment

      Note: If SQL Server shares packages between servers, use this option. Any package dependencies are installed in the specified folder in the file system.

      1. Select Next.

      2. In the Server name drop-down box, select the arrow, and then select the computer hosting the SQL Server database.

      3. If you want to use your domain credentials, select Use Windows Authentication.

      4. If you select SQL Server Authentication, you must enter the User name and Password of the SQL Server Database.

      5. In all the succeeding windows populated with the default values or options, select Next.

        Verify the packages after installation

        Validate packages after installation

        NA

        If you want to skip to the Finish the Package Installation Wizard page, select the Finish button.

        Note: Use this option if you have backtracked through the wizard pages to revise your choices and have specified all of the required options.

        The Finish the Package Installation Wizard page shows the package installation results summary such as:

        • Deployed Integration Services project name

        • Installed packages

        • Configuration files

        • Installation location

        Important: If you encounter any issues while deploying the package, you can import the package from the Microsoft SQL Server Management Studio.

        Note: The package should be imported into SQL Server using the command from the command prompt:
        DTUTIL /FILE C:\Program Files\AVEVA\AVEVA NET\Report\SSIS Reporting Example\Default\REP_SSRS.dtsx /COPY SQL;REP_SSRS.

        Importing SSIS Packages

        To import SSIS Packages:

        1. On the Start menu, select All Programs.

        2. Under the appropriate version of Microsoft SQL Server, select SQL Server Management Studio.

          The Connect to Server window opens.

        3. In the Server type drop-down box, select the arrow, and then select Integration Services.

          The Server name and credentials will be auto-populated.

        4. Select Connect.

          Microsoft SQL Server Management Studio opens.

        5. In the left pane, expand the Stored Packages node.

        6. Right-click File System, and then select Import Package.

          The Import Package windows opens.

        7. In the Package location drop-down box, select the arrow, and then select Files System.

        8. In the Package path box, select the button, and browse to the package location.

        9. Select OK.

          The imported package appears under the File System node in the left pane.

          Note: The package should be imported into SQL Server using the command from the command prompt:DTUTIL /FILE C:\Program Files\AVEVA\AVEVA NET\Report\SSIS Reporting Example\Default\REP_SSRS.dtsx /COPY SQL;REP_SSRS - Where C:\Program Files\AVEVA\AVEVA NET\Report\SSIS Reporting Example\Default\REP_SSRS.dtsx is the path of the package in the installed directory.

          Validating SSIS Packages

          To validate SSIS packages:

          1. On the Start menu, select All Programs.

          2. Under Microsoft SQL Server, select SQL Server Management Studio.

            The Connect to Server window opens.

          3. In the Server type drop-down box, select the arrow, and then select Integration Services.

            The Server name and credentials will be auto-populated.

          4. Select Connect.

          5. In the left pane, expand the Stored Packages node.

            Executing SSIS Packages

            This section explains how to connect to the Workhub database through Windows authentication on a specific database schema, while executing the SSIS package to populate the reporting tables.

            To configure and execute the package:

            1. Open SQL Server Management Studio.

              The SQL Server Management Studio dialog.

            2. In the Server type drop-down box, select the arrow, and then select Integration Services.

              The server name and credentials will be auto-populated.

            3. Select Connect.

              Microsoft SQL Server Management Studio opens.

            4. In the left pane, expand the Stored Package node.

            5. Under the MSDB node, right-click REP_SSRS, and then select Run Package.

              REP_SSRS selected in the file explorer.

            6. In the Execute Package Utility window, select the arrow in the Package Source box to select the location.

            7. In the Server drop-down box, click the arrow to select the Server.

            8. Select the authentication mode to log on to the Server.

            9. In the left pane, select Connection Managers.

              The Connection Managers page is open in Execute Package Utility.

            10. In the right pane, select the DestinationConnection and SourceConnectionManager check boxes.

            11. Edit the DestinationConnectionManager Connection String, so that it references the SQL server instance that contains the de-normalized reporting tables.

            12. Edit the SourceConnectionManager Connection String, so that it references the SQL server instance with the AIM Workhub database.

            13. If you are connecting to the Workhub database, using Windows authentication and on a schema other than 'dbo,' execute the following steps:

              1. In the left pane, select Command Line.

                The Command Line page is open in Execute Package Utility.

              2. In the right pane, select Edit the command line manually.

              3. In the command line, enter the value for SchemaName:

                /DTS "\"\MSDB\REP_SSRS\"" /SERVER localhost /CONNECTION DestinationConnectionManager;"\"Data Source=localhost;Initial Catalog=Workhub_report;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;Application Name=SSIS-REP_SSRS-{E6331B89-FBD2-4417-8DFC-16ABA205B88E}DestinationConnectionManager;\"" /CONNECTION SourceConnectionManager;"\"Data Source=localhost;Initial Catalog=workhub_ipe;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;Application Name=SSIS-REP_SSRS-{1C77EDAF-04C7-4E6E-B4CA-DE6EAEDB6D39}SourceConnectionManager;\"" /SET "\Package.Variables[User::SchemaName].Properties[Value]";"Test" /CHECKPOINTING OFF /REPORTING V

                Note: In this example, 'Test' is the non-default schema on the Workhub database. If the user variable 'SchemaName' is not defined in the command line, the package assumes 'dbo' as the schema, to connect to the Workhub database.

              4. Select Execute.

                The Package Execution Progress window opens, displaying the progress status and errors, if any.

                Note: The package can also be executed without importing into SQL Server by using the following command: dtexec /File "C:\Program Files\AVEVA\AVEVA NET\Report\SSIS Reporting Example\Default\REP_SSRS.dtsx"

                For this execution, add/change the Destination and source database details by manually opening the package in notepad.

              Updating the De-Normalized Tables

              To update the De-Normalized tables:

              1. Go to the following folder: {install path} \Report\SSIS Reporting Example

              2. Open the ViewsScript.sql file.

              3. Run the ViewsScript.sql script under the same database that was created while creating de-normalized tables.

                Scheduling SSIS Deployment

                You must schedule jobs using the SQL Server agent, so that the reporting tables are up-to-date.

                To schedule SSIS deployment:

                1. On the Start menu, select All Programs.

                2. Under the Microsoft SQL Server, select SQL Server Management Studio.

                  The Connect to Server window opens.

                3. In the Server type drop-down box, select the arrow, and then select Integration Services.

                  The server name and credentials will be auto-populated.

                4. Select Connect.

                  Microsoft SQL Server Management Studio opens.

                5. In the left pane, expand the SQL Server Agent node.

                  The SQL Server Agent node expanded in the file explorer. The context menu for Jobs is open.

                6. Right-click Jobs, and then select New Jobs.

                  The New Job window opens.

                7. In the right-pane, type a job name in the Name box (for example, AVEVA Reporting SSIS Job).

                8. Go to the right pane, select Steps, and then select New.

                  The New Job Step window opens.

                9. In the Step Name box, enter a name (for example, AVEVA Reporting SSIS Package Step).

                  The new job window with an example step name filled in.

                10. In the Type drop-down box, select the arrow, and then select SQL Server Integration Services Package.

                11. In the Run as box, retain the default SQL Agent Services Account.

                12. In the Package Source drop-down box, select the arrow, and then select the same option as selected during the package deployment (SSIS Package Store or File system).

                13. If you are not using the File System, select the arrow in the Server drop-down box, and select the server.

                14. In the Package box, do any of the following:

                  • Enter the Package name.

                  • Select the button, and browse to the package location.

                  The Select an SSIS Package window opens.

                15. Select the SSIS package you have deployed.

                16. To close the Select an SSIS Package window and return to the New Job Step window, select OK.

                17. In the right-pane, select the Data Sources tab.

                18. In the Connection Manager column, select the DestinationConnection and SourceConnectionManager check boxes.

                  The DestinationConnection and SourceConnectionManager check boxes both selected under the data sources tab.

                19. Go to the Connection String column, and edit both the Connection Strings so that it references the correct machine name.

                  Note: The source and destination strings are standard OLEDB connection strings.

                20. To close the New Job Step window and return to the New Job window, select OK.

                21. In the left pane, select Schedule.

                22. To open the New Job Schedule window, select New.

                  Note: You can create multiple schedules as required, with setting Alerts, Notifications, or Targets.

                23. To test the schedule, right-click the package, and then select Start Job at Step.

                  The context menu for a package is open. The Start Job at step option is labelled with the text "Run manually" and View History is labelled "A way to check history".

                  The schedule status is displayed.

                24. To check the history, right-click the package, and then select View History.

                  Related Links
                  TitleResults for “How to create a CRG?”Also Available in