Skip to content

Commit 6bcad54

Browse files
Merge branch 'master' of https://github.com/MicrosoftDocs/sql-docs-pr into 20201208_3part_name_performance_caveat
2 parents d9b5df7 + 8b7d588 commit 6bcad54

341 files changed

Lines changed: 5090 additions & 1630 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Default .gitignore for a new provisioned repository in MicrosoftDocs org
2+
3+
log/
4+
xhtml/
5+
packages/
6+
obj/
7+
_site/
8+
Tools/NuGet/
9+
.optemp/
10+
11+
.openpublishing.build.mdproj
12+
.openpublishing.buildcore.ps1
13+
packages.config

docs/azure-data-studio/download-azure-data-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ See one of the following quickstarts to get started:
237237
- [Azure Data Studio release notes](release-notes-azure-data-studio.md)
238238
- [Connect & Query SQL Server](quickstart-sql-server.md)
239239
- [Connect & Query Azure SQL Database](quickstart-sql-database.md)
240-
- [Connect & Query Azure Data Warehouse](quickstart-sql-dw.md)
240+
- [Connect & Query Azure Synapse Analytics](quickstart-sql-dw.md)
241241

242242
[!INCLUDE[get-help-sql-tools](../includes/paragraph-content/get-help-sql-tools.md)]
243243

docs/azure-data-studio/extensibility.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Some of the key extensibility points are:
2828

2929
Because the core Azure Data Studio platform is built upon Visual Studio Code, details about the Visual Studio Code extensibility APIs are found in the [Extension Authoring](https://code.visualstudio.com/docs/extensions/overview) and [Extension API](https://code.visualstudio.com/docs/extensionAPI/overview) documentation on the Visual Studio Code website.
3030

31+
> [!NOTE]
32+
> Azure Data Studio releases are aligned with a recent version of VS Code, however the included VS Code engine may not be the current VS Code release. For example, in November 2020 the VS Code engine in Azure Data Studio is 1.48 and the current VS Code version is 1.51. The error message "Unable to install extension '<name>' as it is not compatible with VS Code <version>" when installing an extension is caused by an extension that has a later VS Code engine version defined in the package manifest (`package.json`). You can verify the VS Code engine version in your Azure Data Studio through the **Help** menu under **About**.
33+
3134
## Manage Dashboard tab panel contributions
3235

3336
For details, see [Contribution Points](#contribution-points) and [Context Variables](#context-variables).

docs/azure-data-studio/release-notes-azure-data-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ November 12, 2020 &nbsp; / &nbsp; version: 1.24.0
3434
| New Item | Details | Workaround |
3535
|----------|---------|------------|
3636
| Azure Arc extension | [Known Issue:](https://github.com/microsoft/azuredatastudio/issues/13319) The "Script to Notebook" button for Arc MIAA & PG deployments does not do field validation before scripting the notebook. This means that if users enter the password wrong in the password confirm inputs then they may end up with a notebook that has the wrong value for the password.| The "Deploy" button works as expected though so users should use that instead. |
37-
| Object Explorer | Releases of ADS before 1.24.0 have a breaking change in object explorer due to the engine's changes related to [Azure Synapse Analytics SQL on-demand](https://docs.microsoft.com/azure/synapse-analytics/sql/on-demand-workspace-overview). | To continue utilizing object explorer in Azure Data Studio with Azure Synapse Analytics SQL on-demand, you need to use Azure Data Studio 1.24.0 or later. |
37+
| Object Explorer | Releases of ADS before 1.24.0 have a breaking change in object explorer due to the engine's changes related to [Azure Synapse Analytics serverless SQL pool](https://docs.microsoft.com/azure/synapse-analytics/sql/on-demand-workspace-overview). | To continue utilizing object explorer in Azure Data Studio with Azure Synapse Analytics serverless SQL pool, you need to use Azure Data Studio 1.24.0 or later. |
3838

3939
You can reference [Azure Data Studio feedback](https://github.com/microsoft/azuredatastudio) for other known issues and to provide feedback to the product team.
4040

docs/azure-data-studio/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@
156156
items:
157157
- name: FAQ
158158
href: faq.md
159+
- name: Troubleshooting
160+
href: troubleshooting.md
159161
- name: Azure Data Studio GitHub repo >
160162
href: https://www.github.com/Microsoft/azuredatastudio
161163
- name: Report issues & make suggestions >
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: Azure Data Studio Troubleshooting
3+
description: 'Learn how to get logs and troubleshoot Azure Data Studio, which is helpful in reporting bug reports.'
4+
ms.prod: azure-data-studio
5+
ms.technology: azure-data-studio
6+
ms.topic: conceptual
7+
author: dzsquared
8+
ms.author: drskwier
9+
ms.reviewer: hanqin, maghan
10+
ms.custom: seodec18
11+
ms.date: 11/24/2020
12+
---
13+
14+
# Azure Data Studio Troubleshooting
15+
Azure Data Studio tracks issues and feature requests using on a [GitHub repository issue tracker](https://github.com/Microsoft/azuredatastudio/issues) for the `azuredatastudio` repository.
16+
17+
## If you've experienced any issue
18+
19+
Report issues to [GitHub Issue Tracker](https://github.com/Microsoft/azuredatastudio/issues) and let us know any details that will help reproduce the error. Include any [log information](#how-to-set-the-logging-level) from the log file.
20+
21+
## Writing good bug reports and feature requests
22+
23+
File a single issue per problem and feature request.
24+
25+
* Don't enumerate multiple bugs or feature requests in the same issue.
26+
* Don't add your issue as a comment to an existing issue unless it's for the identical input. Many issues look similar, but have different causes.
27+
28+
The more information you can provide, the more likely someone will be successful reproducing the issue and finding a fix.
29+
30+
Include the following information with each issue:
31+
32+
* Version of Azure Data Studio
33+
* Reproducible steps (1... 2... 3...) and what you expected versus what you actually saw.
34+
* Images, animations, or a link to a video. Images and animations illustrate repro-steps but don't replace them.
35+
* A code snippet that demonstrates the issue or a link to a code repository we can easily pull down onto our machine to recreate the issue.
36+
37+
> [!NOTE]
38+
> Because we need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.
39+
40+
* Errors in the Dev Tools Console (Help | Toggle Developer Tools)
41+
42+
Please remember to do the following:
43+
44+
* Search the issue repository to see if there exists a duplicate.
45+
* Simplify your code around the issue so we can better isolate the problem.
46+
47+
Don't feel bad if we can't reproduce the issue and ask for more information!
48+
49+
## How to set the logging level
50+
51+
### Azure Data Studio
52+
Run the `Developer: Set Log Level...` command to select the log level for the current session. This value is NOT persisted over multiple sessions - so if you restart Azure Data Studio it will revert back to the default `Info` level.
53+
54+
If you want to enable debug logging for startup then set the log level to `Debug` and run the `Developer: Reload Window` command
55+
56+
### MSSQL (Built-In Extension)
57+
58+
If the `Mssql: Log Debug Info` user setting is set to true, then debug log info will be sent to the `MSSQL` output channel.
59+
60+
The `Mssql: Tracing Level` user setting is used to control the verbosity of the logging.
61+
62+
## Debug log location
63+
From Azure Data Studio, run the `Developer: Open Logs Folder` command to open the path to the logs. There's many different types of log files that write there, a few of the commonly used ones are:
64+
65+
1. `renderer#.log` (for example, renderer1.log) - this file is the log file for the main process.
66+
1. `telemetry.log` - When the log level is set to `Trace` this file will contain the telemetry events sent by Azure Data Studio
67+
1. `exthost#/exthost.log` - Log file for the extension host process (this is only the process itself, not the extensions running inside it)
68+
1. `exthost#/Microsoft.mssql` - Logs for the mssql extension, which contains much of the core logic for MSSQL-related features
69+
* sqltools.log is the log for SQL Tools Service
70+
1. `exthost#/output_logging_#######` - these folders contain the messages displayed in the `Output` panel in Azure Data Studio. Each file is named `#-<Channel Name>` so for example the `Notebooks` output channel may output to a file named `3-Notebooks.log`.
71+
72+
If you are asked to provide logs, zip up the entire folder to ensure that the correct logs are included.
73+
74+
## Next Steps
75+
- [Report an issue](https://github.com/Microsoft/azuredatastudio/issues)
76+
- [What is Azure Data Studio](what-is-azure-data-studio.md)

docs/big-data-cluster/deploy-openshift.md

Lines changed: 18 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Deploy on OpenShift
33
titleSuffix: SQL Server Big Data Cluster
4-
description: Learn how to upgrade SQL Server Big Data Clusters on OpenShift .
4+
description: Learn how to upgrade SQL Server Big Data Clusters on OpenShift.
55
author: mihaelablendea
66
ms.author: mihaelab
77
ms.reviewer: mikeray
@@ -32,7 +32,7 @@ This article outlines deployment steps that are specific to the OpenShift platfo
3232
> [!IMPORTANT]
3333
> Below pre-requisites must be performed by a OpenShift cluster admin (cluster-admin cluster role) that has sufficient permissions to create these cluster level objects. For more information on cluster roles in OpenShift see [Using RBAC to define and apply permissions](https://docs.openshift.com/container-platform/4.4/authentication/using-rbac.html).
3434
35-
1. Ensure the `pidsLimit` setting on the OpenShift is updated to accommodate SQL Server workloads. The default value in OpenShift is too low for production like workloads. We recommend a value of at least `4096`, but the optimal value will depend of the `max worker threads` setting in SQL Server and the number of CPU processors on the OpenShift host node.
35+
1. Ensure the `pidsLimit` setting on the OpenShift is updated to accommodate SQL Server workloads. The default value in OpenShift is too low for production like workloads. Start with at least `4096`, but the optimal value depends the `max worker threads` setting in SQL Server and the number of CPU processors on the OpenShift host node.
3636
- To find out how to update `pidsLimit` for your OpenShift cluster use [these instructions]( https://github.com/openshift/machine-config-operator/blob/master/docs/ContainerRuntimeConfigDesign.md). Note that OpenShift versions before `4.3.5` had a defect causing the updated value to not take effect. Make sure you upgrade OpenShift to the latest version.
3737
- To help you compute the optimal value depending on your environment and planned SQL Server workloads, you can use the estimation and examples below:
3838

@@ -44,7 +44,13 @@ This article outlines deployment steps that are specific to the OpenShift platfo
4444
> [!NOTE]
4545
> Other processes (e.g. backups, CLR, Fulltext, SQLAgent) also add some overhead, so add a buffer to the estimated value.
4646
47-
2. Create a custom security context constraint (SCC) using the attached [`bdc-scc.yaml`](#bdc-sccyaml-file).
47+
1. Download the custom security context constraint (SCC) [`bdc-scc.yaml`](#bdc-sccyaml-file):
48+
49+
```console
50+
curl https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/sql-big-data-cluster/deployment/openshift/bdc-scc.yaml -o bdc-scc.yaml
51+
```
52+
53+
1. Apply the SCC to the cluster.
4854

4955
```console
5056
oc apply -f bdc-scc.yaml
@@ -99,7 +105,7 @@ This article outlines deployment steps that are specific to the OpenShift platfo
99105
azdata bdc config init --source openshift-dev-test --target custom-openshift
100106
```
101107

102-
For a deployment on ARO, we recommend to start with one of the `aro-` profiles, that includes default values for `serviceType` and `storageClass` appropriate for this environment. For example:
108+
For a deployment on ARO, start with one of the `aro-` profiles, that includes default values for `serviceType` and `storageClass` appropriate for this environment. For example:
103109

104110
```console
105111
azdata bdc config init --source aro-dev-test --target custom-openshift
@@ -124,10 +130,10 @@ This article outlines deployment steps that are specific to the OpenShift platfo
124130

125131
1. Upon successful deployment, you can log in and list the external cluster endpoints:
126132

127-
```console
128-
azdata login -n mssql-cluster
129-
azdata bdc endpoint list
130-
```
133+
```console
134+
azdata login -n mssql-cluster
135+
azdata bdc endpoint list
136+
```
131137

132138
## OpenShift specific settings in the deployment configuration files
133139

@@ -159,48 +165,10 @@ The name of the default storage class in ARO is managed-premium (as opposed to A
159165

160166
## `bdc-scc.yaml` file
161167

162-
```yaml
163-
apiVersion: security.openshift.io/v1
164-
kind: SecurityContextConstraints
165-
metadata:
166-
  annotations:
167-
    kubernetes.io/description: SQL Server BDC custom scc is based on 'nonroot' scc plus additional capabilities.
168-
  generation: 2
169-
  name: bdc-scc
170-
allowHostDirVolumePlugin: false
171-
allowHostIPC: false
172-
allowHostNetwork: false
173-
allowHostPID: false
174-
allowHostPorts: false
175-
allowPrivilegeEscalation: true
176-
allowPrivilegedContainer: false
177-
allowedCapabilities:
178-
- SETUID
179-
- SETGID
180-
- CHOWN
181-
- SYS_PTRACE
182-
defaultAddCapabilities: null
183-
fsGroup:
184-
  type: RunAsAny
185-
readOnlyRootFilesystem: false
186-
requiredDropCapabilities:
187-
- KILL
188-
- MKNOD
189-
runAsUser:
190-
  type: MustRunAsNonRoot
191-
seLinuxContext:
192-
  type: MustRunAs
193-
supplementalGroups:
194-
  type: RunAsAny
195-
volumes:
196-
- configMap
197-
- downwardAPI
198-
- emptyDir
199-
- persistentVolumeClaim
200-
- projected
201-
- secret
202-
```
168+
The SCC file for this deployment is:
169+
170+
:::code language="yaml" source="../../sql-server-samples/samples/features/sql-big-data-cluster/deployment/openshift/bdc-scc.yaml":::
203171

204172
## Next steps
205173

206-
[Tutorial: Load sample data into a SQL Server big data cluster](tutorial-load-sample-data.md)
174+
[Tutorial: Load sample data into a SQL Server big data cluster](tutorial-load-sample-data.md)

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ This release includes minor fixes and enhancements. The following articles inclu
108108
- [Manage big data cluster access in Active Directory mode](manage-user-access.md)
109109
- [Deploy [!INCLUDE[big-data-clusters-2019](../includes/ssbigdataclusters-ss-nover.md)] in Active Directory mode](active-directory-deploy.md)
110110
- [Deploy [!INCLUDE[big-data-clusters-2019](../includes/ssbigdataclusters-ss-nover.md)] on AKS in Active Directory mode](active-directory-deployment-aks.md)
111-
- [Deploy [!INCLUDE[big-data-clusters-2019](../includes/ssbigdataclusters-ss-nover.md)] with high availability](deployment-high-availability.md)
112-
- [Configure [!INCLUDE[big-data-clusters-2019](../includes/ssbigdataclusters-ss-nover.md)]](configure-cluster.md)
111+
- [Deploy big data clusters with Azure Kubernetes Service (AKS) Private Cluster](private-deploy.md)
112+
- [Restrict egress traffic of Big Data Clusters (BDC) clusters in Azure Kubernetes Service (AKS) private cluster](private-restrict-egress-traffic.md)
113+
- [Deploy SQL Server Big Data Cluster with high availability](deployment-high-availability.md)
114+
- [Configure a SQL Server Big Data Cluster](configure-cluster.md)
113115
- [Configure Apache Spark and Apache Hadoop in Big Data Clusters](configure-spark-hdfs.md)
114116
- [SQL Server master instance configuration properties](reference-config-master-instance.md)
115117
- [Apache Spark & Apache Hadoop (HDFS) configuration properties](reference-config-spark-hadoop.md)
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: "Add existing constraints to a DataSet"
3+
description: Describes how to add existing constraints to a DataSet.
4+
ms.date: "11/30/2020"
5+
dev_langs:
6+
- "csharp"
7+
ms.assetid: 307d2809-208b-4cf8-b6a9-5d16f15fc16c
8+
ms.prod: sql
9+
ms.prod_service: connectivity
10+
ms.technology: connectivity
11+
ms.topic: conceptual
12+
author: David-Engel
13+
ms.author: v-daenge
14+
ms.reviewer: v-chmalh
15+
---
16+
# Add existing constraints to a DataSet
17+
18+
[!INCLUDE[appliesto-netfx-netcore-netst-md](../../includes/appliesto-netfx-netcore-netst-md.md)]
19+
20+
[!INCLUDE[Driver_ADONET_Download](../../includes/driver_adonet_download.md)]
21+
22+
The <xref:System.Data.Common.DbDataAdapter.Fill%2A> method of the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> fills a <xref:System.Data.DataSet> only with table columns and rows from a data source; though constraints are commonly set by the data source, the **Fill** method does not add this schema information to the **DataSet** by default.
23+
24+
To populate a **DataSet** with existing primary key constraint information from a data source, you can either call the <xref:System.Data.Common.DbDataAdapter.FillSchema%2A> method of the **DataAdapter**, or set the <xref:System.Data.Common.DataAdapter.MissingSchemaAction%2A> property of the **DataAdapter** to **AddWithKey** before calling **Fill**. This will ensure that primary key constraints in the **DataSet** reflect those at the data source.
25+
26+
> [!NOTE]
27+
> Foreign key constraint information is not included and must be created explicitly.
28+
29+
Adding schema information to a **DataSet** before filling it with data ensures that primary key constraints are included with the <xref:System.Data.DataTable> objects in the **DataSet**. As a result, when additional calls to fill the **DataSet** are made, the primary key column information is used to match new rows from the data source with current rows in each **DataTable**, and current data in the tables is overwritten with data from the data source. Without the schema information, the new rows from the data source are appended to the **DataSet**, resulting in duplicate rows.
30+
31+
> [!NOTE]
32+
> If a column in a data source is identified as auto-incrementing, the <xref:System.Data.Common.DbDataAdapter.FillSchema%2A> method, or the <xref:System.Data.Common.DbDataAdapter.Fill%2A> method with a <xref:System.Data.Common.DataAdapter.MissingSchemaAction%2A> of **AddWithKey**, creates a **DataColumn** with an **AutoIncrement** property set to `true`. However, you will need to set the **AutoIncrementStep** and **AutoIncrementSeed** values yourself.
33+
34+
> [!NOTE]
35+
> Using **FillSchema** or setting the **MissingSchemaAction** to **AddWithKey** requires extra processing at the data source to determine primary key column information. This additional processing can hinder performance. If you know the primary key information at design time, we recommend that you explicitly specify the primary key column or columns in order to achieve optimal performance.
36+
37+
The following code example shows how to add schema information to a **DataSet** using <xref:System.Data.Common.DbDataAdapter.FillSchema%2A>:
38+
39+
[!code-csharp[SqlDataAdapter_FillDataSet#1](~/../sqlclient/doc/samples/SqlDataAdapter_FillDataSet.cs#1)]
40+
41+
The following code example shows how to add schema information to a **DataSet** using the <xref:System.Data.Common.DataAdapter.MissingSchemaAction%2A> property and the <xref:System.Data.Common.DbDataAdapter.Fill%2A> method:
42+
43+
[!code-csharp[SqlDataAdapter_FillDataSet#2](~/../sqlclient/doc/samples/SqlDataAdapter_FillDataSet.cs#2)]
44+
45+
## Handling multiple result sets
46+
47+
If the **DataAdapter** meets multiple result sets returned from the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A>, it will create multiple tables in the **DataSet**. The tables will be given a zero-based incremental default name of **Table** *N*, starting with **Table** instead of "Table0". The tables will be given a zero-based incremental name of **TableName** *N*, starting with **TableName** instead of "TableName0" if a table name is passed as an argument to the <xref:System.Data.Common.DbDataAdapter.FillSchema%2A> method.
48+
49+
## See also
50+
51+
- [DataAdapters and DataReaders](dataadapters-datareaders.md)
52+
- [Retrieving and modifying data in ADO.NET](retrieving-modifying-data.md)
53+
- [Microsoft ADO.NET for SQL Server](microsoft-ado-net-sql-server.md)

0 commit comments

Comments
 (0)