Skip to content

Commit ac18be6

Browse files
authored
Merge pull request #80847 from julieMSFT/20190627_fact_sale
updated fact_sale table name
2 parents b02e205 + bd0508b commit ac18be6

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/sql-data-warehouse/load-data-wideworldimportersdw.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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.
44
services: sql-data-warehouse
55
author: kevinvngo
66
manager: craigg
@@ -33,9 +33,9 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
3333

3434
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).
3535

36-
## Log in to the Azure portal
36+
## Sign in to the Azure portal
3737

38-
Log in to the [Azure portal](https://portal.azure.com/).
38+
Sign in to the [Azure portal](https://portal.azure.com/).
3939

4040
## Create a blank SQL data warehouse
4141

@@ -127,7 +127,7 @@ You can now connect to the SQL server and its data warehouses using this IP addr
127127

128128
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.
129129

130-
1. Log in to the [Azure portal](https://portal.azure.com/).
130+
1. Sign in to the [Azure portal](https://portal.azure.com/).
131131
2. Select **SQL Databases** from the left-hand menu, and click your database on the **SQL databases** page.
132132
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.
133133

@@ -212,7 +212,7 @@ The first step toward loading data is to login as LoaderRC60.
212212

213213
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).
214214

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.
216216

217217
1. In the previous section, you logged into your data warehouse as LoaderRC60. In SSMS, right-click **SampleDW** under your LoaderRC60 connection and select **New Query**. A new query window appears.
218218

@@ -535,21 +535,21 @@ Run the following SQL scripts to specify information about the data you wish to
535535
);
536536
```
537537

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.
539539

540540
![View external tables](media/load-data-wideworldimportersdw/view-external-tables.png)
541541

542542
## Load the data into your data warehouse
543543

544-
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.
545545

546546
> [!NOTE]
547547
> This tutorial loads the data directly into the final table. In a production environment, you will usually use CREATE TABLE AS SELECT 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).
548548
>
549549

550550
The script uses the [CREATE TABLE AS SELECT (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.
551551

552-
This script does not load data into the wwi.dimension_Date and wwi.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_Date and wwi.fact_Sale tables. These tables are generated in a later step in order to make the tables have a sizeable number of rows.
553553

554554
1. Run the following script to load the data into new tables in your data warehouse.
555555

@@ -745,7 +745,7 @@ This script does not load data into the wwi.dimension_Date and wwi.fact_Sales ta
745745

746746
## Create tables and procedures to generate the Date and Sales tables
747747

748-
This section creates the wwi.dimension_Date and wwi.fact_Sales tables. It also creates stored procedures that can generate millions of rows in the wwi.dimension_Date and wwi.fact_Sales tables.
748+
This section creates the wwi.dimension_Date and wwi.fact_Sale tables. It also creates stored procedures that can generate millions of rows in the wwi.dimension_Date and wwi.fact_Sale tables.
749749

750750
1. Create the dimension_Date and fact_Sale tables.
751751

@@ -888,7 +888,7 @@ This section creates the wwi.dimension_Date and wwi.fact_Sales tables. It also c
888888
DROP table #days;
889889
END;
890890
```
891-
4. Create this procedure that populates the wwi.dimension_Date and wwi.fact_Sales tables. It calls [wwi].[PopulateDateDimensionForYear] to populate wwi.dimension_Date.
891+
4. Create this procedure that populates the wwi.dimension_Date and wwi.fact_Sale tables. It calls [wwi].[PopulateDateDimensionForYear] to populate wwi.dimension_Date.
892892

893893
```sql
894894
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
944944
```
945945

946946
## 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.
948948

949949

950950
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
953953
EXEC [wwi].[InitialSalesDataPopulation]
954954
```
955955

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.
957957

958958
```sql
959959
EXEC [wwi].[Configuration_PopulateLargeSaleTable] 100000, 2000
@@ -1089,11 +1089,11 @@ You are being charged for compute resources and data that you loaded into your d
10891089

10901090
Follow these steps to clean up resources as you desire.
10911091

1092-
1. Log in to the [Azure portal](https://portal.azure.com), click on your data warehouse.
1092+
1. Sign in to the [Azure portal](https://portal.azure.com), click on your data warehouse.
10931093

10941094
![Clean up resources](media/load-data-from-azure-blob-storage-using-polybase/clean-up-resources.png)
10951095

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**.
10971097
10981098
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**.
10991099

0 commit comments

Comments
 (0)