Skip to main content

SSIS Direct

You can run SQL Server Integration Services (SSIS) packages from JAMS. JAMS has an SSISDirect Execution Method that runs a package stored in one of four locations and reports the outcome back to JAMS:

  • File System - A package file (.dtsx) on disk.
  • SSIS Package Store - A package in the SSIS Package Store on an SSIS server.
  • SQL Server - A package stored in the msdb database on a SQL Server.
  • SSIS Catalog - A package deployed to an Integration Services Catalog (SSISDB) on a SQL Server.

You can create, view and edit SSISDirect Jobs in the Web Client. A Job saved in the Web Client opens in the JAMS Desktop Client with all values intact, and the reverse.

Before You Begin​

Review the following before you create the Job:

  • For every Package Source except File System, you need a SQL Server or SSIS server that can be reached from JAMS. You can enter the server name in the Job, or use a SQL Server Connection from the Connection Store. See Adding a Connection to a SQL Server.
  • You need access to the package. For the SSIS Catalog source, this means access to the Catalog, Folder and Project that contain the package and, if you use one, the Environment.
  • Decide how the Job authenticates to the server:
    • Windows Authentication - The connection uses a Windows account. No Credential is entered in the Source tab.
    • SQL Server Authentication - The connection uses a SQL Server login. You need a JAMS Credential that holds the login, unless you select a Connection, which supplies its own authentication.
  • Decide which JAMS Credential runs the Job (Execute As). At run time, the Job connects to the server as this account, or with the SQL Server login when SQL Server Authentication is selected.

Windows Authentication and server lists​

When you build the Job, the Web Client loads the Catalog, Folder, Project, Environment and Package lists from the server. With Windows Authentication, including a Connection that uses Windows Authentication, these lookups connect to SQL Server as the Windows account the JAMS Web services run as. They do not connect as the user signed in to the Web Client, and they do not connect as the Job's Execute As Credential.

By default, the JAMS Web services run as LocalSystem. SQL Server sees this account as:

  • NT AUTHORITY\SYSTEM when SQL Server is on the Web server.
  • The Web server's computer account, such as DOMAIN\SERVER$, when SQL Server is on another machine.

This account normally has no access to the SSIS objects in msdb or SSISDB, so the lists fail to load. A SQL Server administrator can grant the access on each target SQL Server. Replace NT AUTHORITY\SYSTEM with the account the JAMS Web services run as. For a remote SQL Server, create the login first:

CREATE LOGIN [DOMAIN\SERVER$] FROM WINDOWS;

For the SQL Server Package Source (msdb):

USE msdb;
IF USER_ID(N'NT AUTHORITY\SYSTEM') IS NULL
CREATE USER [NT AUTHORITY\SYSTEM] FOR LOGIN [NT AUTHORITY\SYSTEM];
ALTER ROLE db_ssisltduser ADD MEMBER [NT AUTHORITY\SYSTEM];

For the SSIS Catalog Package Source (SSISDB):

USE SSISDB;
IF USER_ID(N'NT AUTHORITY\SYSTEM') IS NULL
CREATE USER [NT AUTHORITY\SYSTEM] FOR LOGIN [NT AUTHORITY\SYSTEM];
ALTER ROLE ssis_admin ADD MEMBER [NT AUTHORITY\SYSTEM];

Instead of ssis_admin, READ permission on the Catalog folders, projects and environments is also sufficient. Alternatively, run the JAMS Web services under a domain service account that already has this access.

note

These permissions affect only the lists in the Web Client. The Package field always accepts a typed value, so you can define the Job without them.

Creating Credentials in JAMS​

You need up to two Credentials in JAMS to run an SSISDirect Job:

  • A Credential is used to run the Job (Execute As).
  • A Credential is used for the SQL Server login when SQL Server Authentication is selected. It is not needed for Windows Authentication, or when you select a Connection, which supplies its own authentication.

Adding a Credential for Running the Job​

  1. Click Environment in the left sidebar.
  2. Click Credentials.
  3. Click Add.
  4. In the Display Name field, enter a name for the Credential.
  5. In the Logon Username field, enter the Windows username that runs the Job, such as DOMAIN\username.
  6. In the Password and Reenter Password fields, enter the password.
  7. Click Save & Return.

Adding a Credential for SQL Server Authentication​

  1. Click Environment in the left sidebar.
  2. Click Credentials.
  3. Click Add.
  4. In the Display Name field, enter a name for the Credential.
  5. In the Logon Username field, enter the SQL Server login.
  6. In the Password and Reenter Password fields, enter the password for the SQL Server login.
  7. Click Save & Return.

For more information, see Credentials.

Fields by Package Source​

The fields on the Source tab depend on the selected Package Source. Fields that do not apply are disabled. When you change the Package Source, values that no longer apply are cleared.

FieldFile SystemSSIS Package StoreSQL ServerSSIS Catalog
Connection or ServerDisabledRequiredRequiredRequired
Authentication ModeDisabledWindows Authentication onlyEither modeEither mode
CredentialDisabledDisabledRequired for SQL Server AuthenticationRequired for SQL Server Authentication
Catalog, Folder, ProjectDisabledDisabledDisabledRequired
EnvironmentDisabledDisabledDisabledOptional
PackageRequired, typed pathRequired, typedRequired, selected from the list or typedRequired, selected from the list or typed
Use 32-bit RuntimeDisabledDisabledDisabledOptional

Creating a Job for running SSIS Packages​

  1. Click Jobs from the main menu.

  2. Click a Folder in the Folder Navigator where the Job will be saved.

  3. Click Add.

  4. In the Job Name field, enter a name for the Job.

  5. In the Execution Method field, select SSISDirect.

  6. Click Save & Continue.

  7. Click the Source tab. A new Job opens with File System selected and the remaining fields empty.

  8. In the Package Source field, select where the package is stored: File System, SSIS Package Store, SQL Server or SSIS Catalog.

  9. For every Package Source except File System, specify the server in one of these ways:

    • In the Connection field, select a SQL Server Connection from the Connection Store. The Server field is filled from the Connection, and the Server, Authentication Mode and Credential fields are disabled because the Connection supplies them. Clear the Connection to edit them again.
    • Leave the Connection field empty, and in the Server field, enter the SQL Server or SSIS server name, such as SQLSERVER01 or SQLSERVER01\INSTANCE.
  10. If you entered a Server, in the Authentication Mode field, select Windows Authentication or SQL Server Authentication. On a Job whose source has never been saved, SQL Server Authentication is selected. The SSIS Package Store source uses Windows Authentication only.

  11. If you selected SQL Server Authentication, in the Credential field, select the Credential that holds the SQL Server login. The Credential field is disabled for Windows Authentication.

  12. For the SSIS Catalog source, select the Integration Services Catalog settings. The Catalog list loads once a Connection is selected, or once a Server is entered with Windows Authentication, or with SQL Server Authentication and a Credential. The lists load in this order, and each selection fills the next list:

    1. In the Catalog field, select the Catalog, such as SSISDB. The Folder field is disabled until a Catalog is selected.
    2. In the Folder field, select the Folder. The Project field is disabled until a Folder is selected.
    3. In the Project field, select the Project. The Environment and Package fields are disabled until a Project is selected.
    4. Optionally, in the Environment field, select an Environment to use when the package runs.

    Changing the Catalog, Folder or Project clears and reloads the fields below it, including the Package.

  13. For the SSIS Catalog source, select the Use 32-bit Runtime checkbox to run the package in the 32-bit runtime.

  14. In the Package field, specify the package:

    • For File System, enter the full path to the package file, such as C:\Packages\LoadSales.dtsx.
    • For SSIS Package Store, enter the package name or path.
    • For SQL Server and SSIS Catalog, select the package from the list loaded from the server, or enter its name.
  15. Click Save.

  16. Click the Schedules tab to add schedule items to set when the Job will run.

  17. Click the Properties tab.

  18. In the Agent field, select the Agent if the Job will not run on the Scheduler.

  19. In the Execute As field, select the JAMS Credential to run the Job.

  20. Click Save.

Saving and Validation​

When you save the Source tab, the Web Client checks only the fields that apply to the selected Package Source. A message is displayed on the form when:

  • The Package is missing, for every Package Source.
  • Neither a Connection nor a Server is specified for the SSIS Package Store, SQL Server or SSIS Catalog source.
  • The Catalog, Folder or Project is missing for the SSIS Catalog source. The message names the missing field.
  • SQL Server Authentication is selected without a Credential.

A Job using the File System source can be saved with only a Package. A Credential is not required for Windows Authentication. Validation errors returned by the JAMS REST API are also displayed on the form.

The Catalog, Folder, Project, Environment and Package lists are filled only when the server can be reached and the authentication is valid. If a list cannot be loaded, the Web Client displays a message explaining why, and you can still enter the value manually. If the lists fail with a permission error under Windows Authentication, see Windows Authentication and server lists.