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

Commit 2cbf986

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/sql-docs-pr into 20200902-update=kubernetes-tutorial
2 parents 62c4b4d + 3dcffe0 commit 2cbf986

5 files changed

Lines changed: 96 additions & 29 deletions

File tree

docs/big-data-cluster/deployment-upgrade.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to upgrade SQL Server Big Data Clusters to a new release.
55
author: MikeRayMSFT
66
ms.author: mikeray
77
ms.reviewer: mihaelab
8-
ms.date: 02/13/2020
8+
ms.date: 09/02/2020
99
ms.topic: conceptual
1010
ms.prod: sql
1111
ms.technology: big-data-cluster
@@ -31,8 +31,16 @@ Before you proceed, check the [upgrade release notes for known issues](release-n
3131

3232
This section explains how to upgrade a SQL Server BDC from a supported release (starting with SQL Server 2019 GDR1) to a newer supported release.
3333

34+
1. Verify no active Livy sessions.
35+
36+
Make sure no active Livy sessions or batch jobs are running in Azure Data Studio. An easy way to confirm this is either through `curl` command or a browser to request these URLs:
37+
38+
- `<your-gateway-endpoint>/gateway/default/livy/v1/sessions`
39+
- `<your-gateway-endpoint>/gateway/default/livy/v1/batches`
40+
3441
1. Back up SQL Server master instance.
35-
2. Back up HDFS.
42+
43+
1. Back up HDFS.
3644

3745
```
3846
azdata bdc hdfs cp --from-path <path> --to-path <path>
@@ -44,7 +52,7 @@ This section explains how to upgrade a SQL Server BDC from a supported release (
4452
azdata bdc hdfs cp --from-path hdfs://user/hive/warehouse/%%D --to-path ./%%D
4553
```
4654

47-
3. Update `azdata`.
55+
1. Update `azdata`.
4856

4957
Follow the instructions for installing `azdata`.
5058
- [Windows installer](deploy-install-azdata-installer.md)
@@ -61,10 +69,10 @@ This section explains how to upgrade a SQL Server BDC from a supported release (
6169
azdata bdc upgrade -n <clusterName> -t <imageTag> -r <containerRegistry>/<containerRepository>
6270
```
6371

64-
For example, the following script uses `2019-CU4-ubuntu-16.04` image tag:
72+
For example, the following script uses `2019-CU6-ubuntu-16.04` image tag:
6573

6674
```
67-
azdata bdc upgrade -n bdc -t 2019-CU4-ubuntu-16.04 -r mcr.microsoft.com/mssql/bdc
75+
azdata bdc upgrade -n bdc -t 2019-CU6-ubuntu-16.04 -r mcr.microsoft.com/mssql/bdc
6876
```
6977

7078
>[!NOTE]
@@ -91,7 +99,7 @@ A timeout can occur if certain components are not upgraded in the allocated time
9199
To increase the timeouts for an upgrade, use **--controller-timeout** and **--component-timeout** parameters to specify higher values when you issue the upgrade. This option is only available starting with SQL Server 2019 CU2 release. For example:
92100

93101
```bash
94-
azdata bdc upgrade -t 2019-CU4-ubuntu-16.04 --controller-timeout=40 --component-timeout=40 --stability-threshold=3
102+
azdata bdc upgrade -t 2019-CU6-ubuntu-16.04 --controller-timeout=40 --component-timeout=40 --stability-threshold=3
95103
```
96104
**--controller-timeout** designates the number of minutes to wait for the controller or controller db to finish upgrading.
97105
**--component-timeout** designates the amount of time that each subsequent phase of the upgrade has to complete.
@@ -118,7 +126,7 @@ In-place upgrade from a CTP or release candidate build of SQL Server Big Data Cl
118126

119127
### Backup and delete the old cluster
120128

121-
There is no in place upgrade for big data clusters deployed before SQL Server 2019 GDR1 release. The only way to upgrade to a new release is to manually remove and recreate the cluster. Each release has a unique version of `azdata` that is not compatible with the previous version. Also, if a newer container image is downloaded on cluster deployed with different older version, the latest image might not be compatible with the older images on the cluster. The newer image is pulled if you are using the `latest` image tag for in the deployment configuration file for the container settings. By default, each release has a specific image tag corresponding to the SQl Server release version. To upgrade to the latest release, use the following steps:
129+
There is no in place upgrade for big data clusters deployed before SQL Server 2019 GDR1 release. The only way to upgrade to a new release is to manually remove and recreate the cluster. Each release has a unique version of `azdata` that is not compatible with the previous version. Also, if a newer container image is downloaded on cluster deployed with different older version, the latest image might not be compatible with the older images on the cluster. The newer image is pulled if you are using the `latest` image tag for in the deployment configuration file for the container settings. By default, each release has a specific image tag corresponding to the SQL Server release version. To upgrade to the latest release, use the following steps:
122130

123131
1. Before deleting the old cluster, back up the data on the SQL Server master instance and on HDFS. For the SQL Server master instance, you can use [SQL Server backup and restore](data-ingestion-restore-database.md). For HDFS, you [can copy out the data with `curl`](data-ingestion-curl.md).
124132

docs/big-data-cluster/release-notes-big-data-cluster.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: This article describes the latest updates and known issues for SQL
55
author: MikeRayMSFT
66
ms.author: mikeray
77
ms.reviewer: mihaelab
8-
ms.date: 08/04/2020
8+
ms.date: 09/02/2020
99
ms.topic: conceptual
1010
ms.prod: sql
1111
ms.technology: big-data-cluster
@@ -67,6 +67,9 @@ The following table lists the release history for [!INCLUDE[big-data-clusters-20
6767
| [CU1](#cu1) | 15.0.4003.23 | 15.0.4003 | 2020-01-07 |
6868
| [GDR1](#rtm) | 15.0.2070.34 | 15.0.2070 | 2019-11-04 |
6969

70+
> [!NOTE]
71+
> There are no SQL Server 2019 Big Data Clusters updates for CU7.
72+
7073
## How to install updates
7174

7275
To install updates, see [How to upgrade [!INCLUDE[big-data-clusters-2019](../includes/ssbigdataclusters-ss-nover.md)]](deployment-upgrade.md).
@@ -160,6 +163,20 @@ SQL Server 2019 General Distribution Release 1 (GDR1) - introduces general avail
160163

161164
## Known issues
162165

166+
### Empty Livy jobs before you apply cumulative updates
167+
168+
- **Affected releases**: Through current cumulative update
169+
170+
- **Issue and customer impact**: During an upgrade, sparkhead returns 404 error.
171+
172+
- **Workaround**: Before upgrading BDC, ensure that there are no active Livy sessions or batch jobs. Follow the instructions under [Upgrade from supported release](deployment-upgrade.md#upgrade-from-supported-release) to avoid this.
173+
174+
If Livy returns a 404 error during the upgrade process, restart the Livy server on both sparkhead nodes. For example:
175+
176+
```console
177+
kubectl -n <clustername> exec -it sparkhead-0/sparkhead-1 -c hadoop-livy-sparkhistory -- exec supervisorctl restart livy
178+
```
179+
163180
### Big data cluster generated service accounts passwords expiration
164181

165182
- **Affected releases**: All big data cluster deployments with Active Directory integration, irrespective of the release

docs/database-engine/install-windows/latest-updates-for-microsoft-sql-server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ TOCTitle: Latest updates for Microsoft SQL Server
55
ms:assetid: 0d1835fd-2b44-47cf-8f90-305ca14b7823
66
ms:mtpsurl: https://technet.microsoft.com/library/Ff803383(v=MSDN.10)
77
ms:contentKeyID: 31804705
8-
ms.date: 08/06/2020
8+
ms.date: 09/02/2020
99
ms.prod: sql
1010
ms.technology: install
1111
ms.topic: conceptual
@@ -31,7 +31,7 @@ Each of the following links provides information for all of the applicable produ
3131

3232
|Product Versions | Latest Service Pack | Latest GDR | Latest cumulative update | CU Release Date | General Guidance |
3333
|--|--|--|--|--|--|
34-
|SQL Server 2019|N/A|[KB 4517790](https://support.microsoft.com/help/4517790)|CU 6 [(KB 4563110)](https://support.microsoft.com/help/4563110)|8/4/2020|[SQL Server 2019 Installation](https://docs.microsoft.com/sql/database-engine/install-windows/installation-for-sql-server)|
34+
|SQL Server 2019|N/A|[KB 4517790](https://support.microsoft.com/help/4517790)|CU 7 [(KB 4570012)](https://support.microsoft.com/help/4570012)|9/2/2020|[SQL Server 2019 Installation](https://docs.microsoft.com/sql/database-engine/install-windows/installation-for-sql-server)|
3535
|SQL Server 2017|N/A|[KB 4505224](https://support.microsoft.com/help/4505224)|CU 21 [(KB 4557397)](https://support.microsoft.com/help/4557397)|7/1/2020|[SQL Server 2017 Installation](https://docs.microsoft.com/sql/database-engine/install-windows/installation-for-sql-server)|
3636
|SQL Server 2016|SP2 [(KB 4052908)](https://support.microsoft.com/help/4052908)|[KB 4532097](https://support.microsoft.com/help/4532097)|CU 14 [(KB 4564903)](https://support.microsoft.com/kb/4564903)|8/6/2020|[SQL Server 2016 Installation](https://technet.microsoft.com/library/bb500469.aspx)|
3737
|SQL Server 2016|SP1 [(KB 3182545)](https://support.microsoft.com/help/3182545/sql-server-2016-service-pack-1-release-information)|[KB 4505219](https://support.microsoft.com/help/4505219)|CU 15 + GDR [(KB 4505221)](https://support.microsoft.com/help/4505221)|7/9/2019|[SQL Server 2016 Installation](https://technet.microsoft.com/library/bb500469.aspx)|

docs/linux/sql-server-linux-release-notes-2019.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Release notes for SQL Server 2019 on Linux
33
description: This article contains the release notes and supported features for SQL Server 2019 running on Linux. Release notes are included for the most recent release and several previous releases.
44
author: VanMSFT
55
ms.author: vanto
6-
ms.date: 08/04/2020
6+
ms.date: 09/02/2020
77
ms.topic: conceptual
88
ms.prod: sql
99
ms.technology: linux
@@ -30,6 +30,7 @@ The following table lists the release history for SQL Server 2019 releases.
3030

3131
| Release | Version | Release date |
3232
|---------------------------|---------------|--------------|
33+
| [CU7](#cu7) | 15.0.4063.15 | 2020-09-02 |
3334
| [CU6](#cu6) | 15.0.4053.23 | 2020-08-04 |
3435
| [CU5](#cu5) | 15.0.4043.16 | 2020-06-22 |
3536
| [CU4](#cu4) | 15.0.4033.1 | 2020-03-31 |
@@ -52,9 +53,28 @@ If you are updating existing SQL Server packages, run the appropriate update com
5253
- [Install PolyBase package](../relational-databases/polybase/polybase-linux-setup.md)
5354
- [Enable SQL Server Agent](sql-server-linux-setup-sql-agent.md)
5455

56+
## <a id="cu7"></a> CU7 (August 2020)
57+
58+
This is the Cumulative Update 7 (CU7) release of SQL Server 2019 (15.x). The SQL Server Database Engine version for this release is 15.0.4063.15. For information about the fixes and improvements, see <https://support.microsoft.com/help/4570012>.
59+
60+
### Package details
61+
62+
For manual or offline package installations, you can download the RPM and Debian packages with the information in the following table:
63+
64+
> [!NOTE]
65+
> Starting with CU1, the offline package installation links for Red Hat are pointing to RHEL 8 packages. If you are looking for RHEL 7 packages, refer to the download path <https://packages.microsoft.com/rhel/7/mssql-server-2019/>
66+
>
67+
> **Ubuntu 18.04** is now supported on SQL Server 2019 starting with CU3. The offline package installation links for Ubuntu are pointing to Ubuntu 18.04 packages. If you are looking for Ubuntu 16.04 packages, refer to the download path <https://packages.microsoft.com/ubuntu/16.04/mssql-server-2019/pool/main/m/>
68+
69+
| Package | Package version | Downloads |
70+
|-----|-----|-----|
71+
| Red Hat RPM package | 15.0.4063.15-10 | [Engine RPM package](https://packages.microsoft.com/rhel/8/mssql-server-2019/mssql-server-15.0.4063.15-10.x86_64.rpm)</br>[High Availability RPM package](https://packages.microsoft.com/rhel/8/mssql-server-2019/mssql-server-ha-15.0.4063.15-10.x86_64.rpm)</br>[Full-text Search RPM package](https://packages.microsoft.com/rhel/8/mssql-server-2019/mssql-server-fts-15.0.4063.15-10.x86_64.rpm)</br>[Extensibility RPM package](https://packages.microsoft.com/rhel/8/mssql-server-2019/mssql-server-extensibility-15.0.4063.15-10.x86_64.rpm)</br>[Java Extensibility RPM package](https://packages.microsoft.com/rhel/8/mssql-server-2019/mssql-server-extensibility-java-15.0.4063.15-10.x86_64.rpm)</br>[PolyBase RPM package](https://packages.microsoft.com/rhel/8/mssql-server-2019/mssql-server-polybase-15.0.4063.15-10.x86_64.rpm)|
72+
| SLES RPM package | 15.0.4063.15-10 | [mssql-server Engine RPM package](https://packages.microsoft.com/sles/12/mssql-server-2019/mssql-server-15.0.4063.15-10.x86_64.rpm)</br>[High Availability RPM package](https://packages.microsoft.com/sles/12/mssql-server-2019/mssql-server-ha-15.0.4063.15-10.x86_64.rpm)</br>[Full-text Search RPM package](https://packages.microsoft.com/sles/12/mssql-server-2019/mssql-server-fts-15.0.4063.15-10.x86_64.rpm)</br>[Extensibility RPM package](https://packages.microsoft.com/sles/12/mssql-server-2019/mssql-server-extensibility-15.0.4063.15-10.x86_64.rpm)</br>[Java Extensibility RPM package](https://packages.microsoft.com/sles/12/mssql-server-2019/mssql-server-extensibility-java-15.0.4063.15-10.x86_64.rpm)</br>[PolyBase RPM package](https://packages.microsoft.com/sles/12/mssql-server-2019/mssql-server-polybase-15.0.4063.15-10.x86_64.rpm)|
73+
| Ubuntu 18.04 Debian package | 15.0.4063.15-10 | [Engine Debian package](https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/pool/main/m/mssql-server/mssql-server_15.0.4063.15-10_amd64.deb)</br>[High Availability Debian package](https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/pool/main/m/mssql-server-ha/mssql-server-ha_15.0.4063.15-10_amd64.deb)</br>[Full-text Search Debian package](https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/pool/main/m/mssql-server-fts/mssql-server-fts_15.0.4063.15-10_amd64.deb)</br>[Extensibility Debian package](https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/pool/main/m/mssql-server-extensibility/mssql-server-extensibility_15.0.4063.15-10_amd64.deb)</br>[Java Extensibility Debian package](https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/pool/main/m/mssql-server-extensibility-java/mssql-server-extensibility-java_15.0.4063.15-10_amd64.deb)</br>[PolyBase RPM package](https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019/pool/main/m/mssql-server-polybase/mssql-server-polybase_15.0.4063.15-10_amd64.deb)|
74+
5575
## <a id="cu6"></a> CU6 (July 2020)
5676

57-
This is the Cumulative Update 6 (CU6) release of SQL Server 2019 (15.x). The SQL Server Database Engine version for this release is 15.0.4053.23. For information about the fixes and improvements, see <https://support.microsoft.com/help/4563110>.
77+
This is the Cumulative Update 6 (CU6) release of SQL Server 2019 (15.x). The SQL Server Database Engine version for this release is 15.0.4053.23. For information about the fixes and improvements, see <https://support.microsoft.com/help/4563110>
5878

5979
### Package details
6080

docs/relational-databases/security/row-level-security.md

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Row-Level Security | Microsoft Docs"
33
description: Learn how Row-Level Security uses group membership or execution context to control access to rows in a database table in SQL Server.
44
ms.custom: ""
5-
ms.date: "05/14/2019"
5+
ms.date: "09/01/2020"
66
ms.prod: sql
77
ms.prod_service: "database-engine, sql-database, sql-data-warehouse"
88
ms.reviewer: ""
@@ -251,7 +251,6 @@ GRANT SELECT ON security.fn_securitypredicate TO Sales1;
251251
GRANT SELECT ON security.fn_securitypredicate TO Sales2;
252252
```
253253

254-
255254
Now test the filtering predicate, by selected from the Sales table as each user.
256255

257256
```sql
@@ -267,6 +266,7 @@ EXECUTE AS USER = 'Manager';
267266
SELECT * FROM Sales;
268267
REVERT;
269268
```
269+
270270
The Manager should see all six rows. The Sales1 and Sales2 users should only see their own sales.
271271

272272
Alter the security policy to disable the policy.
@@ -293,18 +293,26 @@ DROP SCHEMA Security;
293293

294294
### <a name="external"></a> B. Scenarios for using Row Level Security on an Azure Synapse external table
295295

296-
This short example creates three users and an external table with six rows. It then creates an inline table-valued function and a security policy for the external table. The example shows how select statements are filtered for the various users.
296+
This short example creates three users and an external table with six rows. It then creates an inline table-valued function and a security policy for the external table. The example shows how select statements are filtered for the various users.
297+
298+
### Prerequisites
297299

298-
Create three user accounts that will demonstrate different access capabilities.
300+
1. You must have a SQL pool. See [Create a Synapse SQL pool](/azure/synapse-analytics/sql-data-warehouse/create-data-warehouse-portal)
301+
1. The server hosting your SQL pool must be registered with AAD and you must have an Azure storage account with Storage Blog Contributor permissions. Follow the steps [here](/azure/azure-sql/database/vnet-service-endpoint-rule-overview#steps).
302+
1. Create a file system for your Azure Storage account. Use Storage Explorer to view your storage account. Right click on containers and select *Create file system*.
303+
304+
Once you have the prerequisites in place, create three user accounts that will demonstrate different access capabilities.
299305

300306
```sql
301-
CREATE LOGIN Manager WITH PASSWORD = 'somepassword'
307+
--run in master
308+
CREATE LOGIN Manager WITH PASSWORD = '<user_password>'
302309
GO
303-
CREATE LOGIN Sales1 WITH PASSWORD = 'somepassword'
310+
CREATE LOGIN Sales1 WITH PASSWORD = '<user_password>'
304311
GO
305-
CREATE LOGIN Sales2 WITH PASSWORD = 'somepassword'
312+
CREATE LOGIN Sales2 WITH PASSWORD = '<user_password>'
306313
GO
307314

315+
--run in master and your SQL pool database
308316
CREATE USER Manager FOR LOGIN Manager; 
309317
CREATE USER Sales1  FOR LOGIN Sales1; 
310318
CREATE USER Sales2  FOR LOGIN Sales2 ;
@@ -325,28 +333,28 @@ CREATE TABLE Sales
325333
Populate the table with six rows of data, showing three orders for each sales representative.
326334

327335
```sql
328-
INSERT INTO Sales VALUES (1, 'Sales1', 'Valve', 5);
329-
INSERT INTO Sales VALUES (2, 'Sales1', 'Wheel', 2);
330-
INSERT INTO Sales VALUES (3, 'Sales1', 'Valve', 4);
331-
INSERT INTO Sales VALUES (4, 'Sales2', 'Bracket', 2);
332-
INSERT INTO Sales VALUES (5, 'Sales2', 'Wheel', 5);
333-
INSERT INTO Sales VALUES (6, 'Sales2', 'Seat', 5);
336+
INSERT INTO Sales VALUES (1, 'Sales1', 'Valve', 5);
337+
INSERT INTO Sales VALUES (2, 'Sales1', 'Wheel', 2);
338+
INSERT INTO Sales VALUES (3, 'Sales1', 'Valve', 4);
339+
INSERT INTO Sales VALUES (4, 'Sales2', 'Bracket', 2);
340+
INSERT INTO Sales VALUES (5, 'Sales2', 'Wheel', 5);
341+
INSERT INTO Sales VALUES (6, 'Sales2', 'Seat', 5);
334342
-- View the 6 rows in the table
335343
SELECT * FROM Sales;
336344
```
337345

338346
Create an Azure Synapse external table from the Sales table created.
339347

340348
```sql
341-
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'somepassword';
349+
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<user_password>';
342350

343351
CREATE DATABASE SCOPED CREDENTIAL msi_cred WITH IDENTITY = 'Managed Service Identity';
344352

345-
CREATE EXTERNAL DATA SOURCE ext_datasource_with_abfss WITH (TYPE = hadoop, LOCATION = 'abfss://myfile@mystorageaccount.dfs.core.windows.net', CREDENTIAL = msi_cred);
353+
CREATE EXTERNAL DATA SOURCE ext_datasource_with_abfss WITH (TYPE = hadoop, LOCATION = 'abfss://<file_system_name@storage_account>.dfs.core.windows.net', CREDENTIAL = msi_cred);
346354

347355
CREATE EXTERNAL FILE FORMAT MSIFormat WITH (FORMAT_TYPE=DELIMITEDTEXT);
348356

349-
CREATE EXTERNAL TABLE Sales_ext WITH (LOCATION='RLSExtTabletest.tbl', DATA_SOURCE=ext_datasource_with_abfss, FILE_FORMAT=MSIFormat, REJECT_TYPE=Percentage, REJECT_SAMPLE_VALUE=100, REJECT_VALUE=100)
357+
CREATE EXTERNAL TABLE Sales_ext WITH (LOCATION='<your_table_name>', DATA_SOURCE=ext_datasource_with_abfss, FILE_FORMAT=MSIFormat, REJECT_TYPE=Percentage, REJECT_SAMPLE_VALUE=100, REJECT_VALUE=100)
350358
AS SELECT * FROM sales;
351359
```
352360

@@ -358,7 +366,21 @@ GRANT SELECT ON Sales_ext TO Sales2;
358366
GRANT SELECT ON Sales_ext TO Manager;
359367
```
360368

361-
Create a security policy on external table using the function in session A as a filter predicate. The state must be set to ON to enable the policy.
369+
Create a new schema, and an inline table-valued function, you may have completed this in example A. The function returns 1 when a row in the SalesRep column is the same as the user executing the query (`@SalesRep = USER_NAME()`) or if the user executing the query is the Manager user (`USER_NAME() = 'Manager'`).
370+
371+
```sql
372+
CREATE SCHEMA Security;
373+
GO
374+
375+
CREATE FUNCTION Security.fn_securitypredicate(@SalesRep AS sysname)
376+
RETURNS TABLE
377+
WITH SCHEMABINDING
378+
AS
379+
RETURN SELECT 1 AS fn_securitypredicate_result
380+
WHERE @SalesRep = USER_NAME() OR USER_NAME() = 'Manager';
381+
```
382+
383+
Create a security policy on your external table using the inline table-valued function as a filter predicate. The state must be set to ON to enable the policy.
362384

363385
```sql
364386
CREATE SECURITY POLICY SalesFilter_ext

0 commit comments

Comments
 (0)