Skip to content

Commit 5a75154

Browse files
committed
Refres doc
1 parent 9a9ebb0 commit 5a75154

10 files changed

+28
-22
lines changed
37.3 KB
Loading
43.9 KB
Loading
23.6 KB
Loading
61.5 KB
Loading
-15.4 KB
Loading
56.8 KB
Loading
44 KB
Loading
664 Bytes
Loading
5.5 KB
Loading

articles/data-factory/tutorial-copy-data-tool.md

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Copy data from Azure Blob storage to SQL using Copy Data tool
3-
description: Create an Azure data factory and then use the Copy Data tool to copy data from Azure Blob storage to a SQL database.
3+
description: Create an Azure data factory and then use the Copy Data tool to copy data from Azure Blob storage to a SQL Database.
44
services: data-factory
55
documentationcenter: ''
66
author: linda33wj
@@ -11,16 +11,16 @@ ms.service: data-factory
1111
ms.workload: data-services
1212
ms.topic: tutorial
1313
ms.custom: seo-lt-2019
14-
ms.date: 09/11/2018
14+
ms.date: 03/03/2020
1515
---
1616

17-
# Copy data from Azure Blob storage to a SQL database by using the Copy Data tool
17+
# Copy data from Azure Blob storage to a SQL Database by using the Copy Data tool
1818

1919
> [!div class="op_single_selector" title1="Select the version of the Data Factory service that you're using:"]
2020
> * [Version 1](v1/data-factory-copy-data-from-azure-blob-storage-to-sql-database.md)
2121
> * [Current version](tutorial-copy-data-tool.md)
2222
23-
In this tutorial, you use the Azure portal to create a data factory. Then you use the Copy Data tool to create a pipeline that copies data from Azure Blob storage to a SQL database.
23+
In this tutorial, you use the Azure portal to create a data factory. Then you use the Copy Data tool to create a pipeline that copies data from Azure Blob storage to a SQL Database.
2424

2525
> [!NOTE]
2626
> If you're new to Azure Data Factory, see [Introduction to Azure Data Factory](introduction.md).
@@ -34,27 +34,27 @@ In this tutorial, you perform the following steps:
3434
## Prerequisites
3535

3636
* **Azure subscription**: If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/) before you begin.
37-
* **Azure storage account**: Use Blob storage as the _source_ data store. If you don't have an Azure storage account, see the instructions in [Create a storage account](../storage/common/storage-account-create.md).
38-
* **Azure SQL Database**: Use a SQL database as the _sink_ data store. If you don't have a SQL database, see the instructions in [Create a SQL database](../sql-database/sql-database-get-started-portal.md).
37+
* **Azure Storage account**: Use Blob storage as the _source_ data store. If you don't have an Azure Storage account, see the instructions in [Create a storage account](../storage/common/storage-account-create.md).
38+
* **Azure SQL Database**: Use a SQL Database as the _sink_ data store. If you don't have a SQL Database, see the instructions in [Create a SQL Database](../sql-database/sql-database-get-started-portal.md).
3939

4040
### Create a blob and a SQL table
4141

42-
Prepare your Blob storage and your SQL database for the tutorial by performing these steps.
42+
Prepare your Blob storage and your SQL Database for the tutorial by performing these steps.
4343

4444
#### Create a source blob
4545

4646
1. Launch **Notepad**. Copy the following text and save it in a file named **inputEmp.txt** on your disk:
4747

48-
```
49-
John|Doe
50-
Jane|Doe
51-
```
48+
```
49+
1|John|Doe
50+
2|Jane|Doe
51+
```
5252
5353
1. Create a container named **adfv2tutorial** and upload the inputEmp.txt file to the container. You can use the Azure portal or various tools like [Azure Storage Explorer](https://storageexplorer.com/) to perform these tasks.
5454
5555
#### Create a sink SQL table
5656
57-
1. Use the following SQL script to create a table named **dbo.emp** in your SQL database:
57+
1. Use the following SQL script to create a table named **dbo.emp** in your SQL Database:
5858
5959
```sql
6060
CREATE TABLE dbo.emp
@@ -68,7 +68,7 @@ Prepare your Blob storage and your SQL database for the tutorial by performing t
6868
CREATE CLUSTERED INDEX IX_emp_ID ON dbo.emp (ID);
6969
```
7070
71-
2. Allow Azure services to access SQL Server. Verify that the setting **Allow access to Azure services** is enabled for your server that's running SQL Database. This setting lets Data Factory write data to your database instance. To verify and turn on this setting, go to Azure SQL server > Overview > Set server firewall> set the **Allow access to Azure services** option to **ON**.
71+
2. Allow Azure services to access SQL Server. Verify that the setting **Allow Azure services and resources to access this server** is enabled for your server that's running SQL Database. This setting lets Data Factory write data to your database instance. To verify and turn on this setting, go to Azure SQL server > Security > Firewalls and virtual networks > set the **Allow Azure services and resources to access this server** option to **ON**.
7272
7373
## Create a data factory
7474
@@ -106,14 +106,15 @@ Prepare your Blob storage and your SQL database for the tutorial by performing t
106106
107107
![Copy Data tool tile](./media/doc-common-process/get-started-page.png)
108108
1. On the **Properties** page, under **Task name**, enter **CopyFromBlobToSqlPipeline**. Then select **Next**. The Data Factory UI creates a pipeline with the specified task name.
109+
![Create a pipeline](./media/tutorial-copy-data-tool/create-pipeline.png)
109110
110111
1. On the **Source data store** page, complete the following steps:
111112
112113
a. Click **+ Create new connection** to add a connection
113114
114115
b. Select **Azure Blob Storage** from the gallery, and then select **Continue**.
115116
116-
c. On the **New Linked Service** page, select your storage account from the **Storage account name** list, and then select **Finish**.
117+
c. On the **New Linked Service** page, select your Azure subscription, and select your storage account from the **Storage account name** list. Test connection and then select **Create**.
117118
118119
d. Select the newly created linked service as source, then click **Next**.
119120
@@ -134,36 +135,41 @@ Prepare your Blob storage and your SQL database for the tutorial by performing t
134135
135136
b. Select **Azure SQL Database** from the gallery, and then select **Continue**.
136137
137-
c. On the **New Linked Service** page, select your server name and DB name from the dropdown list, and specify the username and password, then select **Finish**.
138+
c. On the **New Linked Service** page, select your server name and DB name from the dropdown list, and specify the username and password, then select **Create**.
138139
139140
![Configure Azure SQL DB](./media/tutorial-copy-data-tool/config-azure-sql-db.png)
140141
141142
d. Select the newly created linked service as sink, then click **Next**.
142143
143-
![Select sink linked service](./media/tutorial-copy-data-tool/select-sink-linked-service.png)
144-
145144
1. On the **Table mapping** page, select the **[dbo].[emp]** table, and then select **Next**.
146145
147-
1. On the **Schema mapping** page, notice that the first and second columns in the input file are mapped to the **FirstName** and **LastName** columns of the **emp** table. Select **Next**.
146+
1. On the **Schema mapping** page, notice that the second and the third columns in the input file are mapped to the **FirstName** and **LastName** columns of the **emp** table. Select **Next**.
148147
149148
![Schema mapping page](./media/tutorial-copy-data-tool/schema-mapping.png)
149+
150150
1. On the **Settings** page, select **Next**.
151151
1. On the **Summary** page, review the settings, and then select **Next**.
152152
1. On the **Deployment page**, select **Monitor** to monitor the pipeline (task).
153-
1. Notice that the **Monitor** tab on the left is automatically selected. The **Actions** column includes links to view activity run details and to rerun the pipeline. Select **Refresh** to refresh the list.
153+
154+
![Monitor pipeline](./media/tutorial-copy-data-tool/monitor-pipeline.png)
155+
156+
1. On the Pipeline runs page, select **Refresh** to refresh the list. Click the link under **PIPELINE NAME** to view activity run details or rerun the pipeline.
157+
![Pipeline run](./media/tutorial-copy-data-tool/pipeline-run.png)
154158
155-
1. To view the activity runs that are associated with the pipeline run, select the **View Activity Runs** link in the **Actions** column. For details about the copy operation, select the **Details** link (eyeglasses icon) in the **Actions** column. To go back to the Pipeline Runs view, select the **Pipeline Runs** link at the top. To refresh the view, select **Refresh**.
159+
1. On the Activity runs page, select the **Details** link (eyeglasses icon) under the **ACTIVITY NAME** column for more details about copy operation. To go back to the Pipeline Runs view, select the **ALL pipeline runs** link in the breadcrumb menu. To refresh the view, select **Refresh**.
156160
157161
![Monitor activity runs](./media/tutorial-copy-data-tool/activity-monitoring.png)
158162
159163
160-
1. Verify that the data is inserted into the **emp** table in your SQL database.
164+
1. Verify that the data is inserted into the **dbo.emp** table in your SQL Database.
161165
162166
163167
1. Select the **Author** tab on the left to switch to the editor mode. You can update the linked services, datasets, and pipelines that were created via the tool by using the editor. For details on editing these entities in the Data Factory UI, see [the Azure portal version of this tutorial](tutorial-copy-data-portal.md).
164168
169+
![Select Author tab](./media/tutorial-copy-data-tool/author-tab.png)
170+
165171
## Next steps
166-
The pipeline in this sample copies data from Blob storage to a SQL database. You learned how to:
172+
The pipeline in this sample copies data from Blob storage to a SQL Database. You learned how to:
167173
168174
> [!div class="checklist"]
169175
> * Create a data factory.

0 commit comments

Comments
 (0)