Schedule the execution of SQL Server Integration Services (SSIS) packages deployed in Azure
Article
Applies to:SQL Server
SSIS Integration Runtime in Azure Data Factory
You can schedule the execution of SSIS packages deployed to the SSISDB Catalog on an Azure SQL Database server by choosing one of the methods described in this article. You can schedule a package directly, or schedule a package indirectly as part of an Azure Data Factory pipeline. For an overview about SSIS on Azure, see Lift and shift SQL Server Integration Services workloads to the cloud.
In SQL Server Management Studio (SSMS), you can right-click on a package deployed to the SSIS Catalog database, SSISDB, and select Schedule to open the New schedule dialog box. For more info, see Schedule SSIS packages in Azure with SSMS.
Before you can use elastic jobs to schedule SSIS packages stored in the SSISDB Catalog database on an Azure SQL Database server, you have to do the following things:
Before you can use SQL Server Agent on premises to schedule execution of packages stored on an Azure SQL Database server, you have to add the SQL Database server to your on-premises SQL Server as a linked server. The below example uses the Microsoft OLE DB Driver for SQL Server.
Set up the linked server
-- Add the SSISDB database on your Azure SQL Database as a linked server to your SQL Server on premises
EXEC sp_addlinkedserver
@server='myLinkedServer', -- Name your linked server
@srvproduct='',
@provider='MSOLEDBSQL', -- Microsoft OLE DB Driver for SQL Server
@datasrc='<server_name>.database.windows.net', -- Add your Azure SQL Database server endpoint
@location='',
@provstr='',
@catalog='SSISDB' -- Add SSISDB as the initial catalog
Set up linked server credentials
Replace <password> with a valid password.
-- Add your Azure SQL Database server admin credentials
EXEC sp_addlinkedsrvlogin
@rmtsrvname = 'myLinkedServer',
@useself = 'false',
@rmtuser = 'myUsername', -- Add your server admin username
@rmtpassword = '<password>' -- Add your server admin password
To schedule a package with SQL Server Agent on premises, create a job with a job step that calls the SSIS Catalog stored procedures [catalog].[create_execution] and then [catalog].[start_execution]. For more info, see SQL Server Agent Jobs for Packages.
In SQL Server Management Studio, connect to the on-premises SQL Server database on which you want to create the job.
Right-click on the SQL Server Agent node, select New, and then select Job to open the New Job dialog box.
In the New Job dialog box, select the Steps page, and then select New to open the New Job Step dialog box.
In the New Job Step dialog box, select SSISDB as the Database.
In the Command field, enter a Transact-SQL script similar to the script shown in the following example:
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.