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
To copy a package that is stored in the **msdb** database on a local instance of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] using Windows Authentication to the SSIS Package Store, use the following syntax:
To copy a package on the local file system to an instance of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] hosted on another computer, use the following syntax:
Because the */DestU[ser]* and */DestP[assword]* options were not used, Windows Authentication is assumed.
154
153
155
154
To create a new ID for a package after it is copied, use the following syntax:
156
155
157
-
```
156
+
```dos
158
157
dtutil /I /FILE copiedpkg.dtsx
159
158
```
160
159
161
160
To create a new ID for all the packages in a specific folder, use the following syntax:
162
161
163
-
```
162
+
```dos
164
163
for %%f in (C:\test\SSISPackages\*.dtsx) do dtutil.exe /I /FILE %%f
165
164
```
166
165
@@ -169,13 +168,13 @@ for %%f in (C:\test\SSISPackages\*.dtsx) do dtutil.exe /I /FILE %%f
169
168
### Delete Examples
170
169
To delete a package that is stored in the **msdb** database on an instance of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] that uses Windows Authentication, use the following syntax:
171
170
172
-
```
171
+
```dos
173
172
dtutil /SQL delPackage /DELETE
174
173
```
175
174
176
175
To delete a package that is stored in the **msdb** database on an instance of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] that uses [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] Authentication, use the following syntax:
To delete a package that is stored in the SSIS Package Store, use the following syntax:
186
185
187
-
```
186
+
```dos
188
187
dtutil /DTS delPackage.dtsx /DELETE
189
188
```
190
189
191
190
To delete a package that is stored in the file system, use the following syntax:
192
191
193
-
```
192
+
```dos
194
193
dtutil /FILE c:\delPackage.dtsx /DELETE
195
194
```
196
195
197
196
### Exists Examples
198
197
To determine whether a package exists in the **msdb** database on a local instance of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] that uses Windows Authentication, use the following syntax:
199
198
200
-
```
199
+
```dos
201
200
dtutil /SQL srcPackage /EXISTS
202
201
```
203
202
204
203
To determine whether a package exists in the **msdb** database on a local instance of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] that uses [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] Authentication, use the following syntax:
To determine whether a package exists in the local package store, use the following syntax:
214
213
215
-
```
214
+
```dos
216
215
dtutil /DTS srcPackage.dtsx /EXISTS
217
216
```
218
217
219
218
To determine whether a package exists in the local file system, use the following syntax:
220
219
221
-
```
220
+
```dos
222
221
dtutil /FILE c:\srcPackage.dtsx /EXISTS
223
222
```
224
223
225
224
### Move Examples
226
225
To move a package that is stored in the SSIS Package Store to the **msdb** database on a local instance of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] that uses Windows Authentication, use the following syntax:
227
226
228
-
```
227
+
```dos
229
228
dtutil /DTS srcPackage.dtsx /MOVE SQL;destPackage
230
229
```
231
230
232
231
To move a package that is stored in the **msdb** database on a local instance of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] that uses [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] Authentication to the **msdb** database on another local instance of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] that uses [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] Authentication, use the following syntax:
To sign a package that is stored in a [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] database on a local instance of [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] that uses Windows Authentication, use the following syntax:
The following sample encrypts the file-based PackageToEncrypt.dtsx to the file-based EncryptedPackage.dts using full package encryption, with a password. The password that is used for the encryption is *EncPswd*.
Copy file name to clipboardExpand all lines: docs/integration-services/lesson-1-6-adding-and-configuring-the-lookup-transformations.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
-
---
2
-
title: "Step 6: Adding and Configuring the Lookup Transformations | Microsoft Docs"
3
-
ms.custom: ""
4
-
ms.date: "03/01/2017"
5
-
ms.prod: "sql-server-2016"
6
-
ms.reviewer: ""
7
-
ms.suite: ""
8
-
ms.technology:
9
-
- "integration-services"
10
-
ms.tgt_pltfrm: ""
11
-
ms.topic: "get-started-article"
12
-
applies_to:
13
-
- "SQL Server 2016"
14
-
ms.assetid: 5c59f723-9707-4407-80ae-f05f483cf65f
15
-
caps.latest.revision: 38
16
-
author: "douglaslMS"
17
-
ms.author: "douglasl"
18
-
manager: "jhubbard"
19
-
---
20
-
# Lesson 1-6 - Adding and Configuring the Lookup Transformations
1
+
---
2
+
title: "Step 6: Adding and Configuring the Lookup Transformations | Microsoft Docs"
3
+
ms.custom: ""
4
+
ms.date: "03/01/2017"
5
+
ms.prod: "sql-server-2016"
6
+
ms.reviewer: ""
7
+
ms.suite: ""
8
+
ms.technology:
9
+
- "integration-services"
10
+
ms.tgt_pltfrm: ""
11
+
ms.topic: "get-started-article"
12
+
applies_to:
13
+
- "SQL Server 2016"
14
+
ms.assetid: 5c59f723-9707-4407-80ae-f05f483cf65f
15
+
caps.latest.revision: 38
16
+
author: "douglaslMS"
17
+
ms.author: "douglasl"
18
+
manager: "jhubbard"
19
+
---
20
+
# Lesson 1-6 - Adding and Configuring the Lookup Transformations
21
21
After you have configured the Flat File source to extract data from the source file, the next task is to define the Lookup transformations needed to obtain the values for the **CurrencyKey** and **DateKey**. A Lookup transformation performs a lookup by joining data in the specified input column to a column in a reference dataset. The reference dataset can be an existing table or view, a new table, or the result of an SQL statement. In this tutorial, the Lookup transformation uses an OLE DB connection manager to connect to the database that contains the data that is the source of the reference dataset.
22
22
23
23
> [!NOTE]
@@ -53,7 +53,7 @@ In both cases, the Lookup transformation will utilize the OLE DB connection mana
53
53
54
54
2. Select **Use results of an SQL query**, and then type or copy the following SQL statement:
55
55
56
-
```
56
+
```sql
57
57
select*from (select*from [dbo].[DimCurrency]) as refTable
Copy file name to clipboardExpand all lines: docs/integration-services/lesson-4-3-adding-error-flow-redirection.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
-
---
2
-
title: "Step 3: Adding Error Flow Redirection | Microsoft Docs"
3
-
ms.custom: ""
4
-
ms.date: "03/14/2017"
5
-
ms.prod: "sql-server-2016"
6
-
ms.reviewer: ""
7
-
ms.suite: ""
8
-
ms.technology:
9
-
- "integration-services"
10
-
ms.tgt_pltfrm: ""
11
-
ms.topic: "get-started-article"
12
-
applies_to:
13
-
- "SQL Server 2016"
14
-
ms.assetid: 5683a45d-9e73-4cd5-83ca-fae8b26b488c
15
-
caps.latest.revision: 39
16
-
author: "douglaslMS"
17
-
ms.author: "douglasl"
18
-
manager: "jhubbard"
19
-
---
20
-
# Lesson 4-3 - Adding Error Flow Redirection
1
+
---
2
+
title: "Step 3: Adding Error Flow Redirection | Microsoft Docs"
3
+
ms.custom: ""
4
+
ms.date: "03/14/2017"
5
+
ms.prod: "sql-server-2016"
6
+
ms.reviewer: ""
7
+
ms.suite: ""
8
+
ms.technology:
9
+
- "integration-services"
10
+
ms.tgt_pltfrm: ""
11
+
ms.topic: "get-started-article"
12
+
applies_to:
13
+
- "SQL Server 2016"
14
+
ms.assetid: 5683a45d-9e73-4cd5-83ca-fae8b26b488c
15
+
caps.latest.revision: 39
16
+
author: "douglaslMS"
17
+
ms.author: "douglasl"
18
+
manager: "jhubbard"
19
+
---
20
+
# Lesson 4-3 - Adding Error Flow Redirection
21
21
As demonstrated in the previous task, the Lookup Currency Key transformation cannot generate a match when the transformation tries to process the corrupted sample flat file, which produced an error. Because the transformation uses the default settings for error output, any error causes the transformation to fail. When the transformation fails, the rest of the package also fails.
22
22
23
23
Instead of permitting the transformation to fail, you can configure the component to redirect the failed row to another processing path by using the error output. Use of a separate error processing path lets you do a number of things. For instance, you might try to clean the data and then reprocess the failed row. Or, you might save the failed row along with additional error information for later verification and reprocessing.
@@ -28,7 +28,7 @@ By default the two extra columns in an [!INCLUDE[ssISnoversion](../includes/ssis
28
28
29
29
To enhance the usefulness of the error output, before the package writes the failed rows to the file, you will use a Script component to access the [!INCLUDE[ssISnoversion](../includes/ssisnoversion-md.md)] API and get a description of the error.
30
30
31
-
###To configure an error output
31
+
## To configure an error output
32
32
33
33
1. In the **SSIS Toolbox**, expand **Common**, and then drag **Script Component** onto the design surface of the **Data Flow** tab. Place **Script** to the right of the **Lookup Currency Key** transformation.
34
34
@@ -56,22 +56,22 @@ To enhance the usefulness of the error output, before the package writes the fai
Copy file name to clipboardExpand all lines: docs/integration-services/service/integration-services-service-ssis-service.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,8 @@ manager: "jhubbard"
64
64
65
65
When you install the [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] component of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], the [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] service is also installed. By default, the [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] service is started and the startup type of the service is set to automatic. However, you must also install [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] to use the service to manage stored and running [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] packages.
66
66
67
-
> **NOTE:** To connect directly to an instance of the legacy Integration Services Service, you have to use the version of SQL Server Management Studio (SSMS) aligned with the version of SQL Server on which the Integration Services Service is running. For example, to connect to the legacy Integration Services Service running on an instance of SQL Server 2016, you have to use the version of SSMS released for SQL Server 2016. [Download SQL Server Management Studio (SSMS)](https://msdn.microsoft.com/library/mt238290.aspx).
67
+
> [!NOTE]
68
+
> To connect directly to an instance of the legacy Integration Services Service, you have to use the version of SQL Server Management Studio (SSMS) aligned with the version of SQL Server on which the Integration Services Service is running. For example, to connect to the legacy Integration Services Service running on an instance of SQL Server 2016, you have to use the version of SSMS released for SQL Server 2016. [Download SQL Server Management Studio (SSMS)](https://msdn.microsoft.com/library/mt238290.aspx).
68
69
>
69
70
> In the SSMS **Connect to Server** dialog box, you cannot enter the name of a server on which an earlier version of the [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] service is running. However, to manage packages that are stored on a remote server, you do not have to connect to the instance of the [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] service on that remote server. Instead, edit the configuration file for the [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] service so that [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] displays the packages that are stored on the remote server.
70
71
@@ -181,7 +182,7 @@ When you install [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)],
Copy file name to clipboardExpand all lines: docs/relational-databases/json/import-json-documents-into-sql-server.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,13 +73,13 @@ You can also use OPENROWSET(BULK) as described above to read JSON files from oth
73
73
74
74
Here is the command syntax:
75
75
76
-
```
76
+
```dos
77
77
net use [drive letter] \\[storage name].file.core.windows.net\[share name] /u:[storage account name] [storage account access key]
78
78
```
79
79
80
80
Here's an example that assigns local drive letter `T:` to the Azure File Storage share:
81
81
82
-
```
82
+
```dos
83
83
net use t: \\mystorage.file.core.windows.net\sharejson /u:myaccount hb5qy6eXLqIdBj0LvGMHdrTiygkjhHDvWjUZg3Gu7bubKLg==
84
84
```
85
85
@@ -135,7 +135,7 @@ SELECT value
135
135
### Example 2
136
136
OPENROWSET reads a single text value from the file, returns it as a BulkColumn, and passes it to the OPENJSON function. OPENJSON iterates through the array of JSON objects in the BulkColumn array and returns one book in each row, formatted as JSON:
0 commit comments