You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integration-services/lift-shift/ssis-azure-schedule-packages.md
+45-10Lines changed: 45 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Schedule SSIS package execution on Azure | Microsoft Docs"
3
-
ms.date: "09/25/2017"
3
+
ms.date: "01/16/2018"
4
4
ms.topic: "article"
5
5
ms.prod: "sql-non-specified"
6
6
ms.prod_service: "integration-services"
@@ -23,9 +23,42 @@ You can schedule the execution of packages stored in the SSISDB Catalog database
23
23
24
24
## <aname="agent"></a> Schedule a package with SQL Server Agent
25
25
26
-
### Prerequisite
26
+
### Prerequisite - Create a linked server
27
27
28
-
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 as a linked server. For more info, see [Create Linked Servers](../../relational-databases/linked-servers/create-linked-servers-sql-server-database-engine.md) and [Linked Servers](../../relational-databases/linked-servers/linked-servers-database-engine.md).
28
+
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.
29
+
30
+
1.**Set up the linked server**
31
+
32
+
```sql
33
+
-- Add the SSISDB database on your Azure SQL Database as a linked server to your SQL Server on premises
34
+
EXEC sp_addlinkedserver
35
+
@server='myLinkedServer', -- Name your linked server
36
+
@srvproduct='',
37
+
@provider='sqlncli', -- Use SQL Server native client
38
+
@datasrc='<server_name>.database.windows.net', -- Add your Azure SQL Database server endpoint
39
+
@location=‘’,
40
+
@provstr=‘’,
41
+
@catalog='SSISDB'-- Add SSISDB as the initial catalog
42
+
```
43
+
44
+
2. **Set up linked server credentials**
45
+
46
+
```sql
47
+
-- Add your Azure SQL DB server admin credentials
48
+
EXEC sp_addlinkedsrvlogin
49
+
@rmtsrvname = 'myLinkedServer’,
50
+
@useself = 'false’,
51
+
@rmtuser = 'myUsername', -- Add your server admin username
52
+
@rmtpassword = 'myPassword' -- Add your server admin password
For more info, see [Create Linked Servers](../../relational-databases/linked-servers/create-linked-servers-sql-server-database-engine.md) and [Linked Servers](../../relational-databases/linked-servers/linked-servers-database-engine.md).
29
62
30
63
### Create a SQL Server Agent job
31
64
@@ -39,19 +72,21 @@ To schedule a package with SQL Server Agent on premises, create a job with a job
39
72
40
73
4. In the **New Job Step** dialog box, select`SSISDB`as the **Database.**
41
74
42
-
5. In the command field, enter a Transact-SQL script similar to the script shown in the following example:
75
+
5. In the **Command** field, enter a Transact-SQL script similar to the script shown in the following example:
43
76
44
77
```sql
78
+
-- T-SQL script to create and start SSIS package execution using SSISDB stored procedures
0 commit comments