Skip to content

Commit 60e4e67

Browse files
committed
Merge branch 'master' of https://github.com/microsoft/visualstudio-docs-pr into v-elicas062518
2 parents 641b877 + 0387196 commit 60e4e67

19 files changed

+253
-471
lines changed

.openpublishing.redirection.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@
330330
"redirect_url": "https://github.com/microsoft/sql-server-samples/releases/tag/wide-world-importers-v1.0",
331331
"redirect_document_id": false
332332
},
333+
{
334+
"source_path": "docs/data-tools/saving-data.md",
335+
"redirect_url": "/visualstudio/data-tools/save-data-back-to-the-database",
336+
"redirect_document_id": false
337+
},
333338
{
334339
"source_path": "docs/debugger/0x-2x-4x-msaa-variants.md",
335340
"redirect_url": "/visualstudio/debugger/graphics/0x-2x-4x-msaa-variants",
@@ -1254,6 +1259,21 @@
12541259
"redirect_url": "/visualstudio/ide/class-designer/working-with-visual-cpp-code",
12551260
"redirect_document_id": false
12561261
},
1262+
{
1263+
"source_path": "docs/ide/how-to-disable-the-hosting-process.md",
1264+
"redirect_url": "/visualstudio/debugger/debugger-settings-and-preparation",
1265+
"redirect_document_id": false
1266+
},
1267+
{
1268+
"source_path": "docs/ide/hosting-process-vshost-exe.md",
1269+
"redirect_url": "/visualstudio/debugger/debugger-settings-and-preparation",
1270+
"redirect_document_id": false
1271+
},
1272+
{
1273+
"source_path": "docs/ide/reference/project-and-solution-file-types.md",
1274+
"redirect_url": "/visualstudio/ide/solutions-and-projects-in-visual-studio",
1275+
"redirect_document_id": false
1276+
},
12571277
{
12581278
"source_path": "docs/install/index.md",
12591279
"redirect_url": "/visualstudio/install/install-visual-studio",
@@ -5399,7 +5419,7 @@
53995419
"source_path": "scripting-docs/javascript/reference/at-set-statement-javascript.md",
54005420
"redirect_url": "https://developer.mozilla.org/docs/Web/JavaScript/Microsoft_JavaScript_extensions/at-set",
54015421
"redirect_document_id": false
5402-
},
5422+
},
54035423
{
54045424
"source_path": "docs/cross-platform/visual-studio-tools-for-unity-azure-configure.md",
54055425
"redirect_url": "/sandbox/gamedev/unity/samples/azure-mobile-apps-unity-racer",

docs/data-tools/additional-resources-for-troubleshooting-data-access-errors.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Additional resources for troubleshooting data access errors
3-
ms.date: 11/04/2016
2+
title: Data access forums
3+
ms.date: 06/27/2018
44
ms.topic: troubleshooting
55
f1_keywords:
66
- "DSD_ImportXmlSchemaSameFileWrnHelpId"
@@ -222,38 +222,30 @@ ms.assetid: 357c9f0a-9d59-4db4-9b7c-b96cad839961
222222
author: gewarren
223223
ms.author: gewarren
224224
manager: douge
225-
robots: noindex,nofollow
226225
ms.prod: visual-studio-dev15
227226
ms.technology: vs-data-tools
228227
ms.workload:
229228
- "data-storage"
230229
---
231-
# Additional resources for troubleshooting data access errors
230+
# Troubleshoot data access errors on the forums
232231

233-
You can find assistance with troubleshooting errors and warnings in the Microsoft Developer Network (MSDN) public forums. The following table lists the data-related forums available on MSDN.
232+
You can find assistance with troubleshooting errors and warnings in the Microsoft Developer Network (MSDN) public forums. Here are some data-related forums available on MSDN:
234233

235-
[Windows forms data controls and databinding](http://go.microsoft.com/fwlink/?LinkId=160179)
236-
Provides a forum for questions about and general discussions of data access in Windows Forms.
234+
- [Windows Forms data controls and databinding](https://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winformsdatacontrols)
237235

238-
[ADO.NET DataSet forum](http://go.microsoft.com/fwlink/?LinkId=160180)
239-
Provides a forum for questions about and general discussions of Datasets.
236+
- [ADO.NET DataSet forum](https://social.msdn.microsoft.com/Forums/en-US/home?forum=adodotnetdataset)
240237

241-
[ADO.NET entity framework and LINQ to entities](http://go.microsoft.com/fwlink/?LinkId=191520)
242-
Provides a forum for questions about and general discussions of Entity Framework applications and the LINQ to Entities language.
238+
- [ADO.NET Entity Framework and LINQ to Entities](https://social.msdn.microsoft.com/Forums/en-US/home?forum=adodotnetentityframework)
243239

244-
[WCF data services forum](http://go.microsoft.com/fwlink/?LinkId=160181)
245-
Provides a forum for questions about and general discussions of data services.
240+
- [WCF data services forum](https://social.msdn.microsoft.com/Forums/en-US/home?forum=adodotnetdataservices)
246241

247-
[SQL Server data access forum](http://go.microsoft.com/fwlink/?LinkID=160184)
248-
Provides a forum for questions about and general discussions of accessing data in Microsoft SQL Server.
242+
- [SQL Server data access forum](https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqldataaccess)
249243

250-
[LINQ to SQL forum](http://go.microsoft.com/fwlink/?LinkId=160183)
251-
Provides a forum for questions about and general discussions of LINQ to SQL.
244+
- [LINQ to SQL forum](https://social.msdn.microsoft.com/Forums/en-US/home?forum=linqtosql)
252245

253-
[ADO.NET data providers forum](http://go.microsoft.com/fwlink/?LinkId=160182)
254-
Provides a forum for questions about and general discussions of the different .NET Framework Data Providers.
246+
- [ADO.NET data providers forum](https://social.msdn.microsoft.com/Forums/en-US/home?forum=adodotnetdataproviders)
255247

256-
For information about how to troubleshoot connectivity to SQL Server, see [How to troubleshoot connecting to the SQL Server database engine](http://go.microsoft.com/fwlink/?LinkID=246151).
248+
For information about how to troubleshoot connectivity to SQL Server, see [Troubleshoot connecting to the SQL Server database engine](https://social.technet.microsoft.com/wiki/contents/articles/2102.how-to-troubleshoot-connecting-to-the-sql-server-database-engine.aspx).
257249

258250
## See also
259251

docs/data-tools/read-xml-data-into-a-dataset.md

Lines changed: 24 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -24,50 +24,37 @@ ms.workload:
2424
- "data-storage"
2525
---
2626
# Read XML data into a dataset
27-
ADO.NET provides simple methods for working with XML data. In this walkthrough, you create a Windows application that loads XML data into a dataset. The dataset is then displayed in a <xref:System.Windows.Forms.DataGridView> control. Finally, an XML schema based on the contents of the XML file is displayed in a text box.
2827

29-
This walkthrough consists of five main steps:
30-
31-
1. Creating a new project
32-
33-
2. Creating an XML file to be read into the dataset
34-
35-
3. Creating the user interface
36-
37-
4. Creating the dataset, reading the XML file, and displaying it in a <xref:System.Windows.Forms.DataGridView> control
38-
39-
5. Adding code to display the XML schema based on the XML file in a <xref:System.Windows.Forms.TextBox> control
28+
ADO.NET provides simple methods for working with XML data. In this walkthrough, you create a Windows application that loads XML data into a dataset. The dataset is then displayed in a <xref:System.Windows.Forms.DataGridView> control. Finally, an XML schema based on the contents of the XML file is displayed in a text box.
4029

4130
> [!NOTE]
42-
> The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or the edition you're using. To change your settings, on the **Tools** menu, select **Import and Export Settings**. For more information, see [Personalize the Visual Studio IDE](../ide/personalizing-the-visual-studio-ide.md).
31+
> The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or the edition you're using. To change your settings, on the **Tools** menu, select **Import and Export Settings**. For more information, see [Personalize the Visual Studio IDE](../ide/personalizing-the-visual-studio-ide.md).
4332
4433
## Create a new project
45-
In this step, you create a Visual Basic or Visual C# project that contains this walkthrough.
4634

47-
#### To create the new Windows project
35+
In this step, you create a Visual Basic or Visual C# project.
4836

49-
1. In Visual Studio, on the **File** menu, select **New**, **Project...**.
37+
1. In Visual Studio, on the **File** menu, select **New** > **Project**.
5038

5139
2. Expand either **Visual C#** or **Visual Basic** in the left-hand pane, then select **Windows Desktop**.
5240

5341
3. In the middle pane, select the **Windows Forms App** project type.
5442

5543
4. Name the project **ReadingXML**, and then choose **OK**.
5644

57-
The **ReadingXML** project is created and added to **Solution Explorer**.
45+
The **ReadingXML** project is created and added to **Solution Explorer**.
5846

5947
## Generate the XML file to be read into the dataset
60-
Because this walkthrough focuses on reading XML data into a dataset, the contents of an XML file is provided.
6148

62-
#### To create the XML file that will be read into the dataset
49+
Because this walkthrough focuses on reading XML data into a dataset, the contents of an XML file is provided.
6350

6451
1. On the **Project** menu, select **Add New Item**.
6552

66-
2. Select **XML File**, name the file `authors.xml`, and then select **Add**.
53+
2. Select **XML File**, name the file **authors.xml**, and then select **Add**.
6754

68-
The XML file loads into the designer and is ready for edit.
55+
The XML file loads into the designer and is ready for edit.
6956

70-
3. Paste the following code into the editor below the XML declaration:
57+
3. Paste the following XML data into the editor below the XML declaration:
7158

7259
```xml
7360
<Authors_Table>
@@ -132,7 +119,8 @@ ADO.NET provides simple methods for working with XML data. In this walkthrough,
132119
4. On the **File** menu, select **Save authors.xml**.
133120

134121
## Create the user interface
135-
The user interface for this application consists of the following:
122+
123+
The user interface for this application consists of the following:
136124

137125
- A <xref:System.Windows.Forms.DataGridView> control that displays the contents of the XML file as data.
138126

@@ -144,7 +132,7 @@ ADO.NET provides simple methods for working with XML data. In this walkthrough,
144132

145133
- A second button extracts the schema from the dataset, and through a <xref:System.IO.StringWriter> displays it in the <xref:System.Windows.Forms.TextBox> control.
146134

147-
#### To add controls to the form
135+
### To add controls to the form
148136

149137
1. Open `Form1` in design view.
150138

@@ -168,9 +156,8 @@ ADO.NET provides simple methods for working with XML data. In this walkthrough,
168156
||**Text**|`Show Schema`|
169157

170158
## Create the dataset that receives the XML data
171-
In this step, you create a new dataset named `authors`. For more information about datasets, see [Dataset tools in Visual Studio](../data-tools/dataset-tools-in-visual-studio.md).
172159

173-
#### To create a new dataset that receives the XML data
160+
In this step, you create a new dataset named `authors`. For more information about datasets, see [Dataset tools in Visual Studio](../data-tools/dataset-tools-in-visual-studio.md).
174161

175162
1. In **Solution Explorer**, select the source file for **Form1**, and then select the **View Designer** button on the **Solution Explorer** toolbar.
176163

@@ -183,11 +170,10 @@ ADO.NET provides simple methods for working with XML data. In this walkthrough,
183170
4. In the **Properties** window, set the **Name** and <xref:System.Data.DataSet.DataSetName%2A> properties for`AuthorsDataSet`.
184171

185172
## Create the event handler to read the XML file into the dataset
186-
The **Read XML** button reads the XML file into the dataset. It then sets properties on the <xref:System.Windows.Forms.DataGridView> control that bind it to the dataset.
187173

188-
#### To add code to the ReadXmlButton_Click event handler
174+
The **Read XML** button reads the XML file into the dataset. It then sets properties on the <xref:System.Windows.Forms.DataGridView> control that bind it to the dataset.
189175

190-
1. In **Solution Explorer**, select **Form1**, and then select the **View Designer** button on the **Solution Explorer** toolbar.
176+
1. In **Solution Explorer**, select **Form1**, and then select the **View Designer** button on the **Solution Explorer** toolbar.
191177

192178
2. Select the **Read XML** button.
193179

@@ -201,25 +187,23 @@ ADO.NET provides simple methods for working with XML data. In this walkthrough,
201187
4. In the `ReadXMLButton_Click` event handler code, change the `filepath =` entry to the correct path.
202188

203189
## Create the event handler to display the schema in the textbox
204-
The **Show Schema** button creates a <xref:System.IO.StringWriter> object that's filled with the schema and is displayed in the <xref:System.Windows.Forms.TextBox>control.
205190

206-
#### To add code to the ShowSchemaButton_Click event handler
191+
The **Show Schema** button creates a <xref:System.IO.StringWriter> object that's filled with the schema and is displayed in the <xref:System.Windows.Forms.TextBox>control.
207192

208193
1. In **Solution Explorer**, select **Form1**, and then select the **View Designer** button.
209194

210195
2. Select the **Show Schema** button.
211196

212197
The **Code Editor** opens at the `ShowSchemaButton_Click` event handler.
213198

214-
3. Type the following code into the `ShowSchemaButton_Click` event handler.
199+
3. Paste the following code into the `ShowSchemaButton_Click` event handler.
215200

216201
[!code-csharp[VbRaddataFillingAndExecuting#3](../data-tools/codesnippet/CSharp/read-xml-data-into-a-dataset_2.cs)]
217202
[!code-vb[VbRaddataFillingAndExecuting#3](../data-tools/codesnippet/VisualBasic/read-xml-data-into-a-dataset_2.vb)]
218203

219204
## Test the form
220-
You can now test the form to make sure it behaves as expected.
221205

222-
#### To test the form
206+
You can now test the form to make sure it behaves as expected.
223207

224208
1. Select **F5** to run the application.
225209

@@ -231,14 +215,15 @@ ADO.NET provides simple methods for working with XML data. In this walkthrough,
231215

232216
The text box displays the XML schema for the XML file.
233217

234-
## Next Steps
235-
This walkthrough teaches you the basics of reading an XML file into a dataset, as well as creating a schema based on the contents of the XML file. Here are some tasks that you might do next:
218+
## Next steps
219+
220+
This walkthrough teaches you the basics of reading an XML file into a dataset, as well as creating a schema based on the contents of the XML file. Here are some tasks that you might do next:
236221

237222
- Edit the data in the dataset and write it back out as XML. For more information, see <xref:System.Data.DataSet.WriteXml%2A>.
238223

239-
- Edit the data in the dataset and write it out to a database. For more information, see [Saving Data](../data-tools/saving-data.md).
224+
- Edit the data in the dataset and write it out to a database.
240225

241226
## See also
242227

243-
- [Accessing data in Visual Studio](../data-tools/accessing-data-in-visual-studio.md)
244-
- [XML Tools in Visual Studio](../xml-tools/xml-tools-in-visual-studio.md)
228+
- [Access data in Visual Studio](../data-tools/accessing-data-in-visual-studio.md)
229+
- [XML tools in Visual Studio](../xml-tools/xml-tools-in-visual-studio.md)

0 commit comments

Comments
 (0)