Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 3de232d

Browse files
authored
Merge pull request #18005 from MikeRayMSFT/polybase-export-files
Update number of files exported.
2 parents 6644341 + ec6b92a commit 3de232d

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

docs/relational-databases/polybase/polybase-configure-azure-blob-storage.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Access external data: Azure Blob Storage - PolyBase"
33
description: The article uses PolyBase on a SQL Server instance with Azure Blob Storage. PolyBase is suited for ad-hoc queries of external tables and data import/export.
4-
ms.date: 12/13/2019
4+
ms.date: 12/02/2020
55
ms.prod: sql
66
ms.technology: polybase
77
ms.topic: conceptual
@@ -39,7 +39,7 @@ First, configure SQL Server PolyBase to use Azure blob storage.
3939
GO
4040
```
4141

42-
2. You must restart SQL Server using **services.msc**. Restarting SQL Server restarts these services:
42+
2. Restart SQL Server using **services.msc**. Restarting SQL Server restarts these services:
4343

4444
- SQL Server PolyBase Data Movement Service
4545
- SQL Server PolyBase Engine
@@ -50,7 +50,7 @@ First, configure SQL Server PolyBase to use Azure blob storage.
5050

5151
To query the data in your Hadoop data source, you must define an external table to use in Transact-SQL queries. The following steps describe how to configure the external table.
5252

53-
1. Create a master key on the database. This is required to encrypt the credential secret.
53+
1. Create a master key on the database. The master key is required to encrypt the credential secret.
5454

5555
```sql
5656
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'S0me!nfo';
@@ -114,15 +114,15 @@ To query the data in your Hadoop data source, you must define an external table
114114

115115
There are three functions that PolyBase is suited for:
116116

117-
- Ad-hoc queries against external tables.
117+
- Ad hoc queries against external tables.
118118
- Importing data.
119119
- Exporting data.
120120

121121
The following queries provide example with fictional car sensor data.
122122

123-
### Ad-hoc queries
123+
### Ad hoc queries
124124

125-
The following ad-hoc query joins relational with Hadoop data. It selects customers who drive faster than 35 mph,joining structured customer data stored in SQL Server with car sensor data stored in Hadoop.
125+
The following ad hoc query joins relational with Hadoop data. It selects customers who drive faster than 35 mph, and joins to structured customer data stored in SQL Server with car sensor data stored in Hadoop.
126126

127127
```sql
128128
SELECT DISTINCT Insured_Customers.FirstName,Insured_Customers.LastName,
@@ -153,7 +153,7 @@ CREATE CLUSTERED COLUMNSTORE INDEX CCI_FastCustomers ON Fast_Customers;
153153

154154
### Exporting data
155155

156-
The following query exports data from SQL Server to Azure Blob Storage. To do this, you first have to enable PolyBase export. The create an external table for the destination before exporting data to it.
156+
The following query exports data from SQL Server to Azure Blob Storage. First enable PolyBase export. Then, create an external table for the destination before exporting data to it.
157157

158158
```sql
159159
-- Enable INSERT into external table
@@ -182,6 +182,8 @@ ON (T1.CustomerKey = T2.CustomerKey)
182182
WHERE T2.YearMeasured = 2009 and T2.Speed > 40;
183183
```
184184

185+
PolyBase export with this method may create multiple files.
186+
185187
## View PolyBase objects in SSMS
186188

187189
In SSMS, external tables are displayed in a separate folder **External Tables**. External data sources and external file formats are in subfolders under **External Resources**.

0 commit comments

Comments
 (0)