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: articles/sql-data-warehouse/load-data-wideworldimportersdw.md
+14-14Lines changed: 14 additions & 14 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: 'Tutorial: Load data to Azure SQL Data Warehouse | Microsoft Docs'
3
-
description: Tutorial uses Azure portal and SQL Server Management Studio to load the WideWorldImportersDW data warehouse from a public Azure blob to Azure SQL Data Warehouse.
3
+
description: Tutorial uses Azure portal and SQL Server Management Studio to load the WideWorldImportersDW data warehouse from a global Azure blob to Azure SQL Data Warehouse.
4
4
services: sql-data-warehouse
5
5
author: kevinvngo
6
6
manager: craigg
@@ -33,9 +33,9 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
33
33
34
34
Before you begin this tutorial, download and install the newest version of [SQL Server Management Studio](/sql/ssms/download-sql-server-management-studio-ssms) (SSMS).
35
35
36
-
## Log in to the Azure portal
36
+
## Sign in to the Azure portal
37
37
38
-
Log in to the [Azure portal](https://portal.azure.com/).
38
+
Sign in to the [Azure portal](https://portal.azure.com/).
39
39
40
40
## Create a blank SQL data warehouse
41
41
@@ -127,7 +127,7 @@ You can now connect to the SQL server and its data warehouses using this IP addr
127
127
128
128
Get the fully qualified server name for your SQL server in the Azure portal. Later you will use the fully qualified name when connecting to the server.
129
129
130
-
1.Log in to the [Azure portal](https://portal.azure.com/).
130
+
1.Sign in to the [Azure portal](https://portal.azure.com/).
131
131
2. Select **SQL Databases** from the left-hand menu, and click your database on the **SQL databases** page.
132
132
3. In the **Essentials** pane in the Azure portal page for your database, locate and then copy the **Server name**. In this example, the fully qualified name is mynewserver-20171113.database.windows.net.
133
133
@@ -212,7 +212,7 @@ The first step toward loading data is to login as LoaderRC60.
212
212
213
213
You are ready to begin the process of loading data into your new data warehouse. For future reference, to learn how to get your data to Azure Blob storage or to load it directly from your source into SQL Data Warehouse, see the [loading overview](sql-data-warehouse-overview-load.md).
214
214
215
-
Run the following SQL scripts to specify information about the data you wish to load. This information includes where the data is located, the format of the contents of the data, and the table definition for the data. The data is located in a public Azure Blob.
215
+
Run the following SQL scripts to specify information about the data you wish to load. This information includes where the data is located, the format of the contents of the data, and the table definition for the data. The data is located in a global Azure Blob.
216
216
217
217
1. In the previous section, you logged into your data warehouse as LoaderRC60. In SSMS, right-click **SampleDW** under your LoaderRC60 connection andselect**New Query**. A new query window appears.
218
218
@@ -535,21 +535,21 @@ Run the following SQL scripts to specify information about the data you wish to
535
535
);
536
536
```
537
537
538
-
8. In Object Explorer, expand SampleDW to see the list of external tables you just created.
538
+
8. In Object Explorer, expand SampleDW to see the list of external tables you created.
This section uses the external tables you just defined to load the sample data from Azure Blob to SQL Data Warehouse.
544
+
This section uses the external tables you defined to load the sample data from Azure Blob to SQL Data Warehouse.
545
545
546
546
> [!NOTE]
547
547
> This tutorial loads the data directly into the final table. In a production environment, you will usually use CREATE TABLE ASSELECT to load into a staging table. While data is in the staging table you can perform any necessary transformations. To append the data in the staging table to a production table, you can use the INSERT...SELECT statement. For more information, see [Inserting data into a production table](guidance-for-loading-data.md#inserting-data-into-a-production-table).
548
548
>
549
549
550
550
The script uses the [CREATE TABLE ASSELECT (CTAS)](/sql/t-sql/statements/create-table-as-select-azure-sql-data-warehouse) T-SQL statement to load the data from Azure Storage Blob into new tables in your data warehouse. CTAS creates a new table based on the results of a select statement. The new table has the same columns and data types as the results of the select statement. When the select statement selects from an external table, SQL Data Warehouse imports the data into a relational table in the data warehouse.
551
551
552
-
This script does not load data into the wwi.dimension_Dateandwwi.fact_Sales tables. These tables are generated in a later step in order to make the tables have a sizeable number of rows.
552
+
This script does not load data into the wwi.dimension_Dateandwwi.fact_Sale tables. These tables are generated in a later step in order to make the tables have a sizeable number of rows.
553
553
554
554
1. Run the following script to load the data into new tables in your data warehouse.
555
555
@@ -745,7 +745,7 @@ This script does not load data into the wwi.dimension_Date and wwi.fact_Sales ta
745
745
746
746
## Create tables and procedures to generate the Date and Sales tables
747
747
748
-
This section creates the wwi.dimension_Dateandwwi.fact_Sales tables. It also creates stored procedures that can generate millions of rows in the wwi.dimension_Dateandwwi.fact_Sales tables.
748
+
This section creates the wwi.dimension_Dateandwwi.fact_Sale tables. It also creates stored procedures that can generate millions of rows in the wwi.dimension_Dateandwwi.fact_Sale tables.
749
749
750
750
1. Create the dimension_Date and fact_Sale tables.
751
751
@@ -888,7 +888,7 @@ This section creates the wwi.dimension_Date and wwi.fact_Sales tables. It also c
888
888
DROP table #days;
889
889
END;
890
890
```
891
-
4. Create this procedure that populates the wwi.dimension_Dateandwwi.fact_Sales tables. It calls [wwi].[PopulateDateDimensionForYear] to populate wwi.dimension_Date.
891
+
4. Create this procedure that populates the wwi.dimension_Dateandwwi.fact_Sale tables. It calls [wwi].[PopulateDateDimensionForYear] to populate wwi.dimension_Date.
892
892
893
893
```sql
894
894
CREATE PROCEDURE [wwi].[Configuration_PopulateLargeSaleTable] @EstimatedRowsPerDay [bigint],@Year [int] AS
@@ -944,7 +944,7 @@ This section creates the wwi.dimension_Date and wwi.fact_Sales tables. It also c
944
944
```
945
945
946
946
## Generate millions of rows
947
-
Use the stored procedures you created to generate millions of rows in the wwi.fact_Sales table, and corresponding data in the wwi.dimension_Date table.
947
+
Use the stored procedures you created to generate millions of rows in the wwi.fact_Sale table, and corresponding data in the wwi.dimension_Date table.
948
948
949
949
950
950
1. Run this procedure to seed the [wwi].[seed_Sale] with more rows.
@@ -953,7 +953,7 @@ Use the stored procedures you created to generate millions of rows in the wwi.fa
953
953
EXEC [wwi].[InitialSalesDataPopulation]
954
954
```
955
955
956
-
2. Run this procedure to populate wwi.fact_Sales with 100,000 rows per day for each day in the year 2000.
956
+
2. Run this procedure to populate wwi.fact_Sale with 100,000 rows per day for each day in the year 2000.
@@ -1089,11 +1089,11 @@ You are being charged for compute resources and data that you loaded into your d
1089
1089
1090
1090
Follow these steps to clean up resources as you desire.
1091
1091
1092
-
1. Login to the [Azure portal](https://portal.azure.com), click on your data warehouse.
1092
+
1. Signin to the [Azure portal](https://portal.azure.com), click on your data warehouse.
1093
1093
1094
1094

1095
1095
1096
-
2. If you want to keep the data in storage, you can pause compute when you aren't using the data warehouse. By pausing compute you will only be charge for data storage and you can resume the compute whenever you are ready to work with the data. To pause compute, click the **Pause** button. When the data warehouse is paused, you will see a **Start** button. To resume compute, click **Start**.
1096
+
2. If you want to keep the data in storage, you can pause compute when you aren't using the data warehouse. By pausing compute, you will only be charge for data storage and you can resume the compute whenever you are ready to work with the data. To pause compute, click the **Pause** button. When the data warehouse is paused, you will see a **Start** button. To resume compute, click **Start**.
1097
1097
1098
1098
3. If you want to remove future charges, you can delete the data warehouse. To remove the data warehouse so you won't be charged for compute or storage, click **Delete**.
0 commit comments