Skip to content

Commit 8bbea92

Browse files
committed
Made various small SSIS updates per recent email threads.
1 parent 3068fe7 commit 8bbea92

3 files changed

Lines changed: 76 additions & 7 deletions

File tree

‎docs/integration-services/catalog/integration-services-ssis-server-and-catalog.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ ms.workload: "On Demand"
3434
For an overview of the SSISDB catalog functionality, see [SSIS Catalog](../../integration-services/catalog/ssis-catalog.md).
3535

3636
## High Availability
37-
Like other user databases, the **SSISDB** database does support database mirroring and replication. For more information about mirroring and replication, see [Database Mirroring (SQL Server)](../../database-engine/database-mirroring/database-mirroring-sql-server.md).
37+
Like other user databases, the **SSISDB** database supports database mirroring and replication. For more information about mirroring and replication, see [Database Mirroring (SQL Server)](../../database-engine/database-mirroring/database-mirroring-sql-server.md).
3838

39-
You can also provide high-availability of SSISDB and its contents by making use of SSIS and Always On Availability Groups. For more information, see this blog post by Matt Masson, [SSIS with Always On](http://go.microsoft.com/fwlink/?LinkId=255873), at blogs.msdn.com.
39+
You can also provide high-availability of SSISDB and its contents by making use of SSIS and Always On Availability Groups. For more information, see [Always On for SSIS Catalog (SSISDB](ssis-catalog.md#always-on-for-ssis-catalog-ssisdb). Also see this blog post by Matt Masson, [SSIS with Always On](http://go.microsoft.com/fwlink/?LinkId=255873), at blogs.msdn.com.
4040

4141
## <a name="ssms"></a> Integration Services Server in SQL Server Management Studio
4242
When you connect to an instance of the [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)] that hosts the **SSISDB** database, you see the following objects in Object Explorer:

‎docs/integration-services/lift-shift/ssis-azure-connect-with-windows-auth.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Connect to data sources and file shares with Windows Authentication | Microsoft Docs"
3-
ms.date: "01/12/2018"
3+
ms.date: "02/05/2018"
44
ms.topic: "article"
55
ms.prod: "sql-non-specified"
66
ms.prod_service: "integration-services"
@@ -21,7 +21,11 @@ This article describes how to configure the SSIS Catalog on Azure SQL Database t
2121
> [!WARNING]
2222
> If you don't provide valid domain credentials for Windows Authentication by running `catalog`.`set_execution_credential` as described in this article, packages that depend on Windows Authentication can't connect to data sources and fail at run time.
2323
24-
The domain credentials that you provide when you follow the steps in this article apply to all package executions - interactive or scheduled - on the SQL Database instance until you change or remove the credentials.
24+
## You can only use one set of credentials
25+
26+
At this time, you can only use one set of credentials in a package. The domain credentials that you provide when you follow the steps in this article apply to all package executions - interactive or scheduled - on the SQL Database instance until you change or remove the credentials. If your package has to connect to multiple data sources with different sets of credentials, you may have to separate the package into multiple packages.
27+
28+
If one of your data sources is Azure Files, you can work around this limitation by mounting the Azure file share at package run time with `net use` or the equivalent in an Execute Process Task. For more info, see [Mount an Azure File share and access the share in Windows](https://docs.microsoft.com/azure/storage/files/storage-how-to-use-files-windows).
2529

2630
## Provide domain credentials for Windows Authentication
2731
To provide domain credentials that let packages use Windows Authentication to connect to on-premises data sources, do the following things:

‎docs/integration-services/lift-shift/ssis-azure-deploy-run-monitor-tutorial.md‎

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Deploy, run, and monitor an SSIS package on Azure | Microsoft Docs"
3-
ms.date: "09/25/2017"
3+
ms.date: "02/05/2018"
44
ms.topic: "article"
55
ms.prod: "sql-non-specified"
66
ms.prod_service: "integration-services"
@@ -49,7 +49,7 @@ Use SQL Server Management Studio to connect to the SSIS Catalog on your Azure SQ
4949

5050
5. In Object Explorer, expand **Integration Services Catalogs** and then expand **SSISDB** to view the objects in the SSIS Catalog database.
5151

52-
## Deploy a project
52+
## Deploy a project with the Deployment Wizard
5353

5454
### Start the Integration Services Deployment Wizard
5555
1. In Object Explorer in SSMS, with the **Integration Services Catalogs** node and the **SSISDB** node expanded, expand a project folder.
@@ -74,12 +74,77 @@ Use SQL Server Management Studio to connect to the SSIS Catalog on your Azure SQ
7474
4. On the **Review** page, review the settings you selected.
7575
- You can change your selections by selecting **Previous**, or by selecting any of the steps in the left pane.
7676
- Select **Deploy** to start the deployment process.
77-
77+
78+
> ![NOTE]
79+
> If you get the error message **There is no active worker agent. (.Net SqlClient Data Provider)**, make sure the Azure-SSIS Integration Runtime is running. This error occurs if you try to deploy while the Azure-SSIS IR is in a stopped state.
80+
7881
5. After the deployment process is complete, the **Results** page opens. This page displays the success or failure of each action.
7982
- If the action failed, select **Failed** in the **Result** column to display an explanation of the error.
8083
- Optionally, select **Save Report...** to save the results to an XML file.
8184
- Select **Close** to exit the wizard.
8285

86+
## Deploy a project with PowerShell
87+
88+
To deploy a project with PowerShell to SSISDB on Azure SQL Database, adapt the following script to your requirements:
89+
90+
```powershell
91+
# Variables
92+
$ProjectFilePath = "C:\<folder>"
93+
$SSISDBServerEndpoint = "<servername>.database.windows.net"
94+
$SSISDBServerAdminUserName = "<username>"
95+
$SSISDBServerAdminPassword = "<password>"
96+
97+
# Load the IntegrationServices Assembly
98+
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Management.IntegrationServices") | Out-Null;
99+
100+
# Store the IntegrationServices Assembly namespace to avoid typing it every time
101+
$ISNamespace = "Microsoft.SqlServer.Management.IntegrationServices"
102+
103+
Write-Host "Connecting to server ..."
104+
105+
# Create a connection to the server
106+
$sqlConnectionString = "Data Source=" + $SSISDBServerEndpoint + ";User ID="+ $SSISDBServerAdminUserName +";Password="+ $SSISDBServerAdminPassword + ";Initial Catalog=SSISDB"
107+
$sqlConnection = New-Object System.Data.SqlClient.SqlConnection $sqlConnectionString
108+
109+
# Create the Integration Services object
110+
$integrationServices = New-Object $ISNamespace".IntegrationServices" $sqlConnection
111+
112+
# Get the catalog
113+
$catalog = $integrationServices.Catalogs['SSISDB']
114+
115+
write-host "Enumerating all folders..."
116+
117+
$folders = ls -Path $ProjectFilePath -Directory
118+
119+
if ($folders.Count -gt 0)
120+
{
121+
foreach ($filefolder in $folders)
122+
{
123+
Write-Host "Creating Folder " $filefolder.Name " ..."
124+
125+
# Create a new folder
126+
$folder = New-Object $ISNamespace".CatalogFolder" ($catalog, $filefolder.Name, "Folder description")
127+
$folder.Create()
128+
129+
$projects = ls -Path $filefolder.FullName -File -Filter *.ispac
130+
if ($projects.Count -gt 0)
131+
{
132+
foreach($projectfile in $projects)
133+
{
134+
$projectfilename = $projectfile.Name.Replace(".ispac", "")
135+
Write-Host "Deploying " $projectfilename " project ..."
136+
137+
# Read the project file, and deploy it to the folder
138+
[byte[]] $projectFileContent = [System.IO.File]::ReadAllBytes($projectfile.FullName)
139+
$folder.DeployProject($projectfilename, $projectFileContent)
140+
}
141+
}
142+
}
143+
}
144+
145+
Write-Host "All done."
146+
```
147+
83148
## Run a package
84149

85150
1. In Object Explorer in SSMS, select the package that you want to run.

0 commit comments

Comments
 (0)