|
| 1 | +# Load World Wide Importers data into a data warehouse using Polybase and blob storage |
| 2 | + |
| 3 | +This script shows how to load data from Azure Blob storage to Azure SQL Data Warehouse using Polybase. It loads the Wide World Importers dataset into an existing empty SQL Data Warehouse. To follow the script step-by-step in tutorial format, see [Tutorial: Load data to Azure SQL Data Warehouse](https://docs.microsoft.com/azure/sql-data-warehouse/load-data-wideworldimportersdw) |
| 4 | + |
| 5 | +### Contents |
| 6 | + |
| 7 | +[About this sample](#about-this-sample)<br/> |
| 8 | +[Before you begin](#before-you-begin)<br/> |
| 9 | +[Running the sample](#run-this-sample)<br/> |
| 10 | +[Sample details](#sample-details)<br/> |
| 11 | +[Disclaimers](#disclaimers)<br/> |
| 12 | +[Related links](#related-links)<br/> |
| 13 | + |
| 14 | + |
| 15 | +<a name=about-this-sample></a> |
| 16 | + |
| 17 | +## About this sample |
| 18 | + |
| 19 | +<!-- Delete the ones that don't apply --> |
| 20 | +1. **Applies to:** Azure SQL Data Warehouse |
| 21 | +2. **Key features:** Polybase, data loading |
| 22 | +3. **Programming Language:** T-SQL |
| 23 | +4. **Authors:** Casey Karst, Barbara Kress, Ayo Olubeko |
| 24 | +5. **Update history:** 6 April 2018 - initial revision |
| 25 | + |
| 26 | +<a name=before-you-begin></a> |
| 27 | + |
| 28 | +## Before you begin |
| 29 | + |
| 30 | +To run this sample, you need the following prerequisites. |
| 31 | + |
| 32 | +**Software prerequisites:** |
| 33 | + |
| 34 | +* SQL Server Management Studio (SSMS), or Visual Studio 2015 (or higher) with the latest SSDT installed. |
| 35 | + |
| 36 | +**Azure prerequisites:** |
| 37 | + |
| 38 | +* An existing empty Azure SQL data warehouse |
| 39 | + |
| 40 | +**Data warehouse prerequisites:** |
| 41 | + |
| 42 | +* Login and user that is dedicated for loading data. For more details on how to do this, see [Create a user for loading data](https://docs.microsoft.com/azure/sql-data-warehouse/load-data-wideworldimportersdw#create-a-user-for-loading-data) |
| 43 | + |
| 44 | +<a name=run-this-sample></a> |
| 45 | + |
| 46 | +## Running the sample |
| 47 | + |
| 48 | +1. Open Visual Studio or SSMS and connect to your data warehouse using the login dedicated for loading data. |
| 49 | +2. Execute the T-SQL script |
| 50 | +3. Run analytics queries on your data warehouse |
| 51 | + |
| 52 | +## Sample details |
| 53 | + |
| 54 | +The script does the following tasks to load the World Wide Importers sample dataset into your data warehouse: |
| 55 | + |
| 56 | +* Creates external tables that use Azure blob as the data source |
| 57 | +* Uses the CTAS T-SQL statement to load data into the data warehouse |
| 58 | +* Creates a stored procedure to generate a year of data in the date dimension and sales fact tables |
| 59 | +* Creates statistics on the newly loaded data |
| 60 | + |
| 61 | +<a name=disclaimers></a> |
| 62 | + |
| 63 | +## Disclaimers |
| 64 | +The code included in this sample is not intended to be used for production purposes. |
| 65 | + |
| 66 | +<a name=related-links></a> |
| 67 | + |
| 68 | +## Related Links |
| 69 | +<!-- Links to more articles. Remember to delete "en-us" from the link path. --> |
| 70 | +For more information, see these articles: |
| 71 | +- [Tutorial: Load data into Azure SQL DataWarehouse](https://docs.microsoft.com/azure/sql-data-warehouse/load-data-wideworldimportersdw) |
| 72 | +- [ELT Data Loading Overview](https://docs.microsoft.com/azure/sql-data-warehouse/design-elt-data-loading) |
| 73 | +- [Best practices for loading data into Azure SQL DataWarehouse](https://docs.microsoft.com/azure/sql-data-warehouse/guidance-for-loading-data) |
0 commit comments