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

Commit e044efc

Browse files
committed
Merge branch 'release-ignite-arc-data' of https://github.com/MicrosoftDocs/sql-docs-pr into release-ignite-arc-data
2 parents 7388454 + 8ab304a commit e044efc

7 files changed

Lines changed: 228 additions & 198 deletions

File tree

docs/azdata/reference/reference-azdata-notebook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.technology: big-data-cluster
1515

1616
[!INCLUDE[SQL Server 2019](../../includes/applies-to-version/sqlserver2019.md)]
1717

18-
The following article provides reference for the `sql` commands in the `azdata` tool. For more information about other `azdata` commands, see [azdata reference](reference-azdata.md).
18+
The following article provides reference for the `notebook` commands in the `azdata` tool. For more information about other `azdata` commands, see [azdata reference](reference-azdata.md).
1919

2020
## Commands
2121
| Command | Description |

docs/connect/toc.yml

Lines changed: 133 additions & 125 deletions
Large diffs are not rendered by default.

docs/includes/sssdw-md.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SQL Data Warehouse
1+
Azure Synapse Analytics (SQL Data Warehouse)

docs/integration-services/data-flow/odata-source.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ For the **Decimal** data type, the precision and scale are determined by the sou
4949
> [!IMPORTANT]
5050
> The OData Source component does not support complex types, such as multiple-choice items, in SharePoint lists.
5151
52+
> [!Note]
53+
> If the source only allows TLS 1.2 connection, you need to enforce TLS 1.2 on your machine through registry settings. In an elevated command prompt run the following commands:
54+
>
55+
> reg add HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319 /v SchUseStrongCrypto /t REG_DWORD /d 1 /reg:64
56+
>
57+
> reg add HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319 /v SchUseStrongCrypto /t REG_DWORD /d 1 /reg:32
58+
5259
## OData Format and Performance
5360
Most OData services can return results in multiple formats. You can specify the format of the result set by using the `$format` query option. Formats such as JSON and JSON Light are more efficient than ATOM or XML, and may give you better performance when transferring large amounts of data. The following table provides results from sample tests. As you can see, there was a 30-53% performance gain when switching from ATOM to JSON and a 67% performance gain when switching from ATOM to the new JSON light format (available in WCF Data Services 5.1).
5461

docs/linux/tutorial-sql-server-containers-kubernetes.md

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.custom: seo-lt-2019
55
author: MikeRayMSFT
66
ms.author: mikeray
77
ms.reviewer: vanto
8-
ms.date: 01/10/2018
8+
ms.date: 09/01/2020
99
ms.topic: tutorial
1010
ms.prod: sql
1111
ms.technology: linux
@@ -29,17 +29,17 @@ This tutorial demonstrates how to configure a highly available SQL Server instan
2929

3030
Kubernetes 1.6 and later has support for [storage classes](https://kubernetes.io/docs/concepts/storage/storage-classes/), [persistent volume claims](https://kubernetes.io/docs/concepts/storage/storage-classes/#persistentvolumeclaims), and the [Azure disk volume type](https://github.com/kubernetes/examples/tree/master/staging/volumes/azure_disk). You can create and manage your SQL Server instances natively in Kubernetes. The example in this article shows how to create a [deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/) to achieve a high availability configuration similar to a shared disk failover cluster instance. In this configuration, Kubernetes plays the role of the cluster orchestrator. When a SQL Server instance in a container fails, the orchestrator bootstraps another instance of the container that attaches to the same persistent storage.
3131

32-
![Diagram of Kubernetes SQL Server cluster](media/tutorial-sql-server-containers-kubernetes/kubernetes-sql.png)
32+
![SQL Server container on Kubernetes cluster](media/tutorial-sql-server-containers-kubernetes/kubernetes-sql.png)
3333

3434
In the preceding diagram, `mssql-server` is a container in a [pod](https://kubernetes.io/docs/concepts/workloads/pods/pod/). Kubernetes orchestrates the resources in the cluster. A [replica set](https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/) ensures that the pod is automatically recovered after a node failure. Applications connect to the service. In this case, the service represents a load balancer that hosts an IP address that stays the same after failure of the `mssql-server`.
3535

3636
In the following diagram, the `mssql-server` container has failed. As the orchestrator, Kubernetes guarantees the correct count of healthy instances in the replica set, and starts a new container according to the configuration. The orchestrator starts a new pod on the same node, and `mssql-server` reconnects to the same persistent storage. The service connects to the re-created `mssql-server`.
3737

38-
![Diagram of Kubernetes SQL Server cluster](media/tutorial-sql-server-containers-kubernetes/kubernetes-sql-after-pod-fail.png)
38+
![SQL Server pod fail on Kubernetes cluster](media/tutorial-sql-server-containers-kubernetes/kubernetes-sql-after-pod-fail.png)
3939

4040
In the following diagram, the node hosting the `mssql-server` container has failed. The orchestrator starts the new pod on a different node, and `mssql-server` reconnects to the same persistent storage. The service connects to the re-created `mssql-server`.
4141

42-
![Diagram of Kubernetes SQL Server cluster](media/tutorial-sql-server-containers-kubernetes/kubernetes-sql-after-node-fail.png)
42+
![SQL Server pod recover on Kubernetes cluster](media/tutorial-sql-server-containers-kubernetes/kubernetes-sql-after-node-fail.png)
4343

4444
## Prerequisites
4545

@@ -168,10 +168,12 @@ In this step, create a manifest to describe the container based on the SQL Serve
168168
labels:
169169
app: mssql
170170
spec:
171-
terminationGracePeriodSeconds: 10
171+
terminationGracePeriodSeconds: 30
172+
securityContext:
173+
fsGroup: 10001
172174
containers:
173175
- name: mssql
174-
image: mcr.microsoft.com/mssql/server:2017-latest
176+
image: mcr.microsoft.com/mssql/server:2019-latest
175177
ports:
176178
- containerPort: 1433
177179
env:
@@ -221,10 +223,12 @@ In this step, create a manifest to describe the container based on the SQL Serve
221223
valueFrom:
222224
secretKeyRef:
223225
name: mssql
224-
key: SA_PASSWORD
226+
key: SA_PASSWORD
225227
```
226228

227-
When Kubernetes deploys the container, it refers to the secret named `mssql` to get the value for the password.
229+
When Kubernetes deploys the container, it refers to the secret named `mssql` to get the value for the password.
230+
231+
* `securityContext` : A securityContext defines privilege and access control settings for a Pod or Container, in this case it is specified at the pod level, so all containers ( in this case only one) adhere to that security context. In the security context we define the fsGroup with the value 10001 ( which is the GID for mssql group) means, all processes of the container are also part of the supplementary group ID 10001(mssql). The owner for volume /var/opt/mssql and any files created in that volume will be Group ID 10001(mssql group).
228232

229233
>[!NOTE]
230234
>By using the `LoadBalancer` service type, the SQL Server instance is accessible remotely (via the internet) at port 1433.
@@ -266,7 +270,19 @@ In this step, create a manifest to describe the container based on the SQL Serve
266270

267271
```azurecli
268272
az aks browse --resource-group <MyResourceGroup> --name <MyKubernetesClustername>
269-
```
273+
```
274+
275+
1. You can also verify the container is running as non-root by running the following command:
276+
277+
```azurecli
278+
kubectl.exe exec <name of SQL POD> -it -- /bin/bash
279+
```
280+
281+
and then run 'whoami' you should see the username as mssql. Which is a non-root user.
282+
283+
```azurecli
284+
whoami
285+
```
270286

271287
## Connect to the SQL Server instance
272288

@@ -279,17 +295,17 @@ You can use the following applications to connect to the SQL Server instance.
279295
* [SSDT](https://docs.microsoft.com/sql/linux/sql-server-linux-develop-use-ssdt)
280296

281297
* sqlcmd
282-
298+
283299
To connect with `sqlcmd`, run the following command:
284300

285301
```cmd
286302
sqlcmd -S <External IP Address> -U sa -P "MyC0m9l&xP@ssw0rd"
287303
```
288304

289305
Replace the following values:
290-
291-
- `<External IP Address>` with the IP address for the `mssql-deployment` service
292-
- `MyC0m9l&xP@ssw0rd` with your password
306+
307+
* `<External IP Address>` with the IP address for the `mssql-deployment` service
308+
* `MyC0m9l&xP@ssw0rd` with your password
293309

294310
## Verify failure and recovery
295311

@@ -308,6 +324,7 @@ To verify failure and recovery, you can delete the pod. Do the following steps:
308324
```azurecli
309325
kubectl delete pod mssql-deployment-0
310326
```
327+
311328
`mssql-deployment-0` is the value returned from the previous step for pod name.
312329

313330
Kubernetes automatically re-creates the pod to recover a SQL Server instance, and connect to the persistent storage. Use `kubectl get pods` to verify that a new pod is deployed. Use `kubectl get services` to verify that the IP address for the new container is the same.
@@ -326,6 +343,4 @@ In this tutorial, you learned how to deploy SQL Server containers to a Kubernete
326343
## Next steps
327344

328345
> [!div class="nextstepaction"]
329-
>[Introduction to Kubernetes](https://docs.microsoft.com/azure/aks/intro-kubernetes)
330-
331-
346+
>[Introduction to Kubernetes](https://docs.microsoft.com/azure/aks/intro-kubernetes)

docs/relational-databases/system-catalog-views/sys-database-connection-stats-azure-sql-database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ start_time end_time
9191
```sql
9292
SELECT *
9393
FROM sys.database_connection_stats
94-
WHERE start_time>='2011-09-25:12:00:00' and end_time<='2011-09-28 12:00:00';
94+
WHERE start_time>='2011-09-25 12:00:00' and end_time<='2011-09-28 12:00:00';
9595
```
9696

9797
## See Also

0 commit comments

Comments
 (0)