|
1 | | ---- |
2 | | -title: "Creating a Source with the Script Component | Microsoft Docs" |
3 | | -ms.custom: "" |
4 | | -ms.date: "03/17/2017" |
5 | | -ms.prod: "sql-server-2016" |
6 | | -ms.reviewer: "" |
7 | | -ms.suite: "" |
8 | | -ms.technology: |
9 | | - - "docset-sql-devref" |
10 | | -ms.tgt_pltfrm: "" |
11 | | -ms.topic: "reference" |
12 | | -applies_to: |
13 | | - - "SQL Server 2016 Preview" |
14 | | -dev_langs: |
15 | | - - "VB" |
16 | | -helpviewer_keywords: |
17 | | - - "Script component [Integration Services], source components" |
18 | | - - "output columns [Integration Services]" |
19 | | - - "sources [Integration Services], components" |
20 | | -ms.assetid: 547c4179-ea82-4265-8c6f-04a2aa77a3c0 |
21 | | -caps.latest.revision: 59 |
22 | | -author: "douglaslMS" |
23 | | -ms.author: "douglasl" |
24 | | -manager: "jhubbard" |
25 | | ---- |
26 | | -# Creating a Source with the Script Component |
| 1 | +--- |
| 2 | +title: "Creating a Source with the Script Component | Microsoft Docs" |
| 3 | +ms.custom: "" |
| 4 | +ms.date: "03/17/2017" |
| 5 | +ms.prod: "sql-server-2016" |
| 6 | +ms.reviewer: "" |
| 7 | +ms.suite: "" |
| 8 | +ms.technology: |
| 9 | + - "docset-sql-devref" |
| 10 | +ms.tgt_pltfrm: "" |
| 11 | +ms.topic: "reference" |
| 12 | +applies_to: |
| 13 | + - "SQL Server 2016 Preview" |
| 14 | +dev_langs: |
| 15 | + - "VB" |
| 16 | +helpviewer_keywords: |
| 17 | + - "Script component [Integration Services], source components" |
| 18 | + - "output columns [Integration Services]" |
| 19 | + - "sources [Integration Services], components" |
| 20 | +ms.assetid: 547c4179-ea82-4265-8c6f-04a2aa77a3c0 |
| 21 | +caps.latest.revision: 59 |
| 22 | +author: "douglaslMS" |
| 23 | +ms.author: "douglasl" |
| 24 | +manager: "jhubbard" |
| 25 | +--- |
| 26 | +# Creating a Source with the Script Component |
27 | 27 | You use a source component in the data flow of an [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] package to load data from a data source to pass on to downstream transformations and destinations. Ordinarily you connect to the data source through an existing connection manager. |
28 | 28 |
|
29 | 29 | For an overview of the Script component, see [Extending the Data Flow with the Script Component](../../integration-services/extending-packages-scripting/data-flow-script-component/extending-the-data-flow-with-the-script-component.md). |
@@ -136,7 +136,7 @@ manager: "jhubbard" |
136 | 136 |
|
137 | 137 | 6. Create and configure a destination component, such as a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] destination, or the sample destination component demonstrated in [Creating a Destination with the Script Component](../../integration-services/extending-packages-scripting-data-flow-script-component-types/creating-a-destination-with-the-script-component.md), that expects the **AddressID** and **City** columns. Then connect the source component to the destination. (You can connect a source directly to a destination without any transformations.) You can create a destination table by running the following [!INCLUDE[tsql](../../includes/tsql-md.md)] command in the **AdventureWorks** database: |
138 | 138 |
|
139 | | - ``` |
| 139 | + ```sql |
140 | 140 | CREATE TABLE [Person].[Address2]([AddressID] [int] NOT NULL, |
141 | 141 | [City] [nvarchar](30) NOT NULL) |
142 | 142 | ``` |
@@ -269,7 +269,7 @@ manager: "jhubbard" |
269 | 269 |
|
270 | 270 | 7. Create and configure a destination component, such as a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] destination, or the sample destination component demonstrated in [Creating a Destination with the Script Component](../../integration-services/extending-packages-scripting-data-flow-script-component-types/creating-a-destination-with-the-script-component.md). Then connect the source component to the destination. (You can connect a source directly to a destination without any transformations.) You can create a destination table by running the following [!INCLUDE[tsql](../../includes/tsql-md.md)] command in the **AdventureWorks** database: |
271 | 271 |
|
272 | | - ``` |
| 272 | + ```sql |
273 | 273 | CREATE TABLE [Person].[Address2]([AddressID] [int] NOT NULL, |
274 | 274 | [City] [nvarchar](30) NOT NULL) |
275 | 275 | ``` |
@@ -390,4 +390,4 @@ manager: "jhubbard" |
390 | 390 | [Creating a Destination with the Script Component](../../integration-services/extending-packages-scripting-data-flow-script-component-types/creating-a-destination-with-the-script-component.md) |
391 | 391 | [Developing a Custom Source Component](../../integration-services/extending-packages-custom-objects-data-flow-types/developing-a-custom-source-component.md) |
392 | 392 |
|
393 | | - |
| 393 | + |
0 commit comments