You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-tools/troubleshooting-service-references.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -23,25 +23,25 @@ ms.workload:
23
23
24
24
This topic lists common issues that may occur when you are working with Windows Communication Foundation (WCF) or WCF Data Services references in Visual Studio.
25
25
26
-
## Error Returning Data from a Service
26
+
## Error returning data from a service
27
27
28
28
When you return a `DataSet` or `DataTable` from a service, you may receive a "The maximum size quota for incoming messages has been exceeded" exception. By default, the `MaxReceivedMessageSize` property for some bindings is set to a relatively small value to limit exposure to denial-of-service attacks. You can increase this value to prevent the exception. For more information, see <xref:System.ServiceModel.HttpBindingBase.MaxReceivedMessageSize%2A>.
29
29
30
30
To fix this error:
31
31
32
-
1. In **Solution Explorer**, double-click the app.config file to open it.
32
+
1. In **Solution Explorer**, double-click the *app.config* file to open it.
33
33
34
34
2. Locate the `MaxReceivedMessageSize` property and change it to a larger value.
35
35
36
-
## Cannot Find a Service in My Solution
36
+
## Cannot find a service in my solution
37
37
38
38
When you click the **Discover** button in the **Add Service References** dialog box, one or more WCF Service Library projects in the solution do not appear in the services list. This can occur if a Service Library has been added to the solution but has not yet been compiled.
39
39
40
40
To fix this error:
41
41
42
42
- In **Solution Explorer**, right-click the WCF Service Library project and click **Build**.
43
43
44
-
## Error Accessing a Service over a Remote Desktop
44
+
## Error accessing a service over a remote desktop
45
45
46
46
When a user accesses a Web-hosted WCF service over a remote desktop connection and the user does not have administrative permissions, NTLM authentication is used. If the user does not have administrative permissions, the user may receive the following error message: "The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM'."
47
47
@@ -52,15 +52,15 @@ To fix this error:
52
52
2. On the **Start Options** tab, clear the **NTLM Authentication** check box.
53
53
54
54
> [!NOTE]
55
-
> You should turn off NTLM authentication only for Web sites that exclusively contain WCF services. Security for WCF services is managed through the configuration in the web.config file. This makes NTLM authentication unnecessary.
55
+
> You should turn off NTLM authentication only for Web sites that exclusively contain WCF services. Security for WCF services is managed through the configuration in the *web.config* file. This makes NTLM authentication unnecessary.
56
56
57
-
## Access Level for Generated Classes Setting Has No Effect
57
+
## Access level for generated classes setting has no effect
58
58
59
59
Setting the **Access level for generated classes** option in the **Configure Service References** dialog box to **Internal** or **Friend** may not always work. Even though the option appears to be set in the dialog box, the resulting support classes are generated with an access level of `Public`.
60
60
61
61
This is a known limitation of certain types, such as those serialized using the <xref:System.Xml.Serialization.XmlSerializer>.
62
62
63
-
## Error Debugging Service Code
63
+
## Error debugging service code
64
64
65
65
When you step into the code for a WCF service from client code, you may receive an error related to missing symbols. This can occur when a service that was part of your solution was moved or removed from the solution.
66
66
@@ -78,13 +78,13 @@ To fix this error, you have to manually rebuild the service project:
78
78
79
79
4. Load the WCF service project.
80
80
81
-
5. In the **Configuration Manager** dialog box, set the **Active solution configuration** to **Debug**. For more information, see [How to: Create and Edit Configurations](../ide/how-to-create-and-edit-configurations.md).
81
+
5. In the **Configuration Manager** dialog box, set the **Active solution configuration** to **Debug**. For more information, see [How to: Create and edit configurations](../ide/how-to-create-and-edit-configurations.md).
82
82
83
83
6. In **Solution Explorer**, select the WCF service project.
84
84
85
85
7. On the **Build** menu, click **Rebuild** to rebuild the WCF service project.
86
86
87
-
## WCF Data Services Do Not Display in the Browser
87
+
## WCF Data Services do not display in the browser
88
88
89
89
When it attempts to view an XML representation of data in a [!INCLUDE[ss_data_service](../data-tools/includes/ss_data_service_md.md)], Internet Explorer may misinterpret the data as an RSS feed. Make sure that the option to display RSS feeds is disabled.
90
90
@@ -98,6 +98,6 @@ To fix this error, disable RSS feeds:
98
98
99
99
4. Click **OK** to close the **Internet Options** dialog box.
100
100
101
-
## See Also
101
+
## See also
102
102
103
103
-[Windows Communication Foundation Services and WCF Data Services in Visual Studio](../data-tools/windows-communication-foundation-services-and-wcf-data-services-in-visual-studio.md)
Copy file name to clipboardExpand all lines: docs/data-tools/turn-off-constraints-while-filling-a-dataset.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ If a dataset contains constraints (such as foreign-key constraints), they can ra
30
30
If there were no mechanism to allow temporary constraint suspension, an error would be raised every time you tried to load a record into the child table. Another way to suspend all constraints in a dataset is with the <xref:System.Data.DataRow.BeginEdit%2A>, and <xref:System.Data.DataRow.EndEdit%2A> properties.
31
31
32
32
> [!NOTE]
33
-
> Validation events (for example, <xref:System.Data.DataTable.ColumnChanging> and<xref:System.Data.DataTable.RowChanging>) will not be raised when constraints are turned off.
33
+
> Validation events (for example, <xref:System.Data.DataTable.ColumnChanging> and<xref:System.Data.DataTable.RowChanging>) will not be raised when constraints are turned off.
34
34
35
35
## To suspend update constraints programmatically
36
36
@@ -41,11 +41,11 @@ If there were no mechanism to allow temporary constraint suspension, an error wo
41
41
42
42
## To suspend update constraints using the Dataset Designer
43
43
44
-
1. Open your dataset in the **Dataset Designer**. For more information, see [Walkthrough: Creating a Dataset in the Dataset Designer](walkthrough-creating-a-dataset-with-the-dataset-designer.md).
44
+
1. Open your dataset in the **Dataset Designer**. For more information, see [Walkthrough: Creating a dataset in the Dataset Designer](walkthrough-creating-a-dataset-with-the-dataset-designer.md).
45
45
46
46
2. In the **Properties** window, set the <xref:System.Data.DataSet.EnforceConstraints%2A> property to `false`.
47
47
48
-
## See Also
48
+
## See also
49
49
50
50
-[Fill datasets by using TableAdapters](../data-tools/fill-datasets-by-using-tableadapters.md)
51
51
-[Relationships in datasets](../data-tools/relationships-in-datasets.md)
Copy file name to clipboardExpand all lines: docs/data-tools/typed-vs-untyped-datasets.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ A typed dataset is a dataset that is first derived from the base <xref:System.Da
19
19
20
20
An untyped dataset, in contrast, has no corresponding built-in schema. As in a typed dataset, an untyped dataset contains tables, columns, and so on—but those are exposed only as collections. (However, after you manually create the tables and other data elements in an untyped dataset, you can export the dataset's structure as a schema by using the dataset's <xref:System.Data.DataSet.WriteXmlSchema%2A> method.)
21
21
22
-
## Contrasting data access in typed and untyped datasets
22
+
## Contrast data access in typed and untyped datasets
23
23
The class for a typed dataset has an object model in which its properties take on the actual names of the tables and columns. For example, if you are working with a typed dataset, you can reference a column by using code such as the following:
Copy file name to clipboardExpand all lines: docs/data-tools/update-data-by-using-a-tableadapter.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ ms.workload:
26
26
After the data in your dataset has been modified and validated, you can send the updated data back to a database by calling the `Update` method of a [TableAdapter](../data-tools/create-and-configure-tableadapters.md). The `Update` method updates a single data table and runs the correct command (INSERT, UPDATE, or DELETE) based on the <xref:System.Data.DataRow.RowState%2A> of each data row in the table. When a dataset has related tables, Visual Studio generates a TableAdapterManager class that you use to do the updates. The TableAdapterManager class ensures that updates are made in the correct order based on the foreign-key constraints that are defined in the database. When you use data-bound controls, the databinding architecture creates a member variable of the TableAdapterManager class called tableAdapterManager.
27
27
28
28
> [!NOTE]
29
-
> When you try to update a data source with the contents of a dataset, you can get errors.To avoid errors, we recommend that you put the code that calls the adapter's `Update` method inside a `try`/`catch` block.
29
+
> When you try to update a data source with the contents of a dataset, you can get errors.To avoid errors, we recommend that you put the code that calls the adapter's `Update` method inside a `try`/`catch` block.
30
30
31
31
The exact procedure for updating a data source can vary depending on business needs, but includes the following steps:
Copy file name to clipboardExpand all lines: docs/data-tools/upgrade-dot-mdf-files.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ ms.workload:
19
19
---
20
20
# Upgrade .mdf files
21
21
22
-
This topic describes the options for upgrading a database file (.mdf) after you install a newer version of Visual Studio. It includes instructions for the following tasks:
22
+
This topic describes the options for upgrading a database file (*.mdf*) after you install a newer version of Visual Studio. It includes instructions for the following tasks:
23
23
24
24
- Upgrade a database file to use a newer version of SQL Server Express LocalDB
25
25
@@ -29,15 +29,15 @@ This topic describes the options for upgrading a database file (.mdf) after you
29
29
30
30
- Make SQL Server Express the default database engine
31
31
32
-
You can use Visual Studio to open a project that contains a database file (.mdf) that was created by using an older version of SQL Server Express or LocalDB. However, to continue to develop your project in Visual Studio, you must have that version of SQL Server Express or LocalDB installed on the same machine as Visual Studio, or you must upgrade the database file. If you upgrade the database file, you won't be able to access it by using older versions of SQL Server Express or LocalDB.
32
+
You can use Visual Studio to open a project that contains a database file (*.mdf*) that was created by using an older version of SQL Server Express or LocalDB. However, to continue to develop your project in Visual Studio, you must have that version of SQL Server Express or LocalDB installed on the same machine as Visual Studio, or you must upgrade the database file. If you upgrade the database file, you won't be able to access it by using older versions of SQL Server Express or LocalDB.
33
33
34
34
You may also be prompted to upgrade a database file that was created through an earlier version of SQL Server Express or LocalDB if the version of the file isn't compatible with the instance of SQL Server Express or LocalDB that's currently installed. To resolve the issue, Visual Studio will prompt you to upgrade the file.
35
35
36
36
> [!IMPORTANT]
37
37
> We recommend that you back up the database file before you upgrade it.
38
38
39
39
> [!WARNING]
40
-
> If you upgrade an .mdf file that was created in LocalDB 2014 (V12) 32 bit to LocalDB 2016 (V13) or later, you will not be able to open the file again in the 32-bit version of LocalDB.
40
+
> If you upgrade an *.mdf* file that was created in LocalDB 2014 (V12) 32 bit to LocalDB 2016 (V13) or later, you will not be able to open the file again in the 32-bit version of LocalDB.
41
41
42
42
Before you upgrade a database, consider the following criteria:
43
43
@@ -65,7 +65,7 @@ Before you upgrade a database, consider the following criteria:
65
65
66
66
- To use a specific version: `(localdb)\ProjectsV12` or `(localdb)\ProjectsV13`, where V12 is LocalDB 2014 and V13 is LocalDB 2016.
67
67
68
-
-**Attach a database file**: The physical path of the primary .mdf file.
68
+
-**Attach a database file**: The physical path of the primary *.mdf* file.
69
69
70
70
-**Logical Name**: The name that you want to use with the file.
71
71
@@ -93,11 +93,11 @@ You can also modify a SQL Server Express connection to use LocalDB by opening th
93
93
94
94
- To run the project, select the **F5** key.
95
95
96
-
- To edit the database, open the .mdf file in **Solution Explorer**, and expand the node in **Server Explorer** to work with your database.
96
+
- To edit the database, open the *.mdf* file in **Solution Explorer**, and expand the node in **Server Explorer** to work with your database.
97
97
98
98
### To make SQL Server Express the default database engine
99
99
100
-
1. On the menu bar, select **Tools**,**Options**.
100
+
1. On the menu bar, select **Tools** >**Options**.
101
101
102
102
2. In the **Options** dialog box, expand the **Database Tools** options, and then select **Data Connections**.
Copy file name to clipboardExpand all lines: docs/data-tools/visual-studio-data-tools-for-cpp.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -27,42 +27,42 @@ To take advantage of custom functionality in SQL Server 2005 and later, use the
27
27
28
28
2. If you need a sample SQL database to connect to, download the Northwind database and unzip it to a new location.
29
29
30
-
3. Use SQL Server Management Studio to attach the unzipped Northwind.mdf file to localDB. When SQL Server Management Studio starts, connect to (localdb)\MSSQLLocalDB.
30
+
3. Use SQL Server Management Studio to attach the unzipped *Northwind.mdf* file to localDB. When SQL Server Management Studio starts, connect to (localdb)\MSSQLLocalDB.
4. Download the ODBC Windows SDK Sample, and unzip it to a new location. This sample shows the basic ODBC commands that are used to connect to a database and issue queries and commands. You can learn more about those functions in the [Microsoft Open Database Connectivity (ODBC)](/sql/odbc/microsoft-open-database-connectivity-odbc). When you first load the solution (it's in the C++ folder), Visual Studio will offer to upgrade the solution to the current version of Visual Studio. Click **Yes**.
39
39
40
-
5. To use the native client, you need its header file and lib file. These files contain functions and definitions specific to SQL Server, beyond the ODBC functions defined in sql.h. In **Project** > **Properties** > **VC++ Directories**, add the following include directory:
40
+
5. To use the native client, you need its *header* file and *lib* file. These files contain functions and definitions specific to SQL Server, beyond the ODBC functions defined in sql.h. In **Project** > **Properties** > **VC++ Directories**, add the following include directory:
6. Add these lines in odbcsql.cpp. The #define prevents irrelevant OLE DB definitions from being compiled.
48
+
6. Add these lines in *odbcsql.cpp*. The #define prevents irrelevant OLE DB definitions from being compiled.
49
49
50
50
```cpp
51
51
#define_SQLNCLI_ODBC_
52
52
#include<sqlncli.h>
53
53
```
54
54
55
-
Note that the sample does not actually use any of the native client functionality, so the preceding steps are not necessary for it to compile and run. But the project is now configured for you to use this functionality. For more information, see [SQL Server Native Client Programming](/sql/relational-databases/native-client/sql-server-native-client).
55
+
Note that the sample does not actually use any of the native client functionality, so the preceding steps are not necessary for it to compile and run. But the project is now configured for you to use this functionality. For more information, see [SQL Server Native Client programming](/sql/relational-databases/native-client/sql-server-native-client).
56
56
57
57
7. Specify which driver to use in the ODBC subsystem. The sample passes the DRIVER connection string attribute in as a command line argument. In **Project** > **Properties** > **Debugging**, add this command argument:
58
58
59
59
```cpp
60
60
DRIVER="SQL Server Native Client 11.0"
61
61
```
62
62
63
-
8. Press F5 to build and run the application. You should see a dialog box from the driver that prompts you to enter a database. Enter `(localdb)\MSSQLLocalDB`, and check **Use Trusted Connection**. Press **OK**. You should see a console with messages that indicate a successful connection. You should also see a command prompt where you can type in a SQL statement. The following screen shows an example query and the results:
63
+
8. Press **F5** to build and run the application. You should see a dialog box from the driver that prompts you to enter a database. Enter `(localdb)\MSSQLLocalDB`, and check **Use Trusted Connection**. Press **OK**. You should see a console with messages that indicate a successful connection. You should also see a command prompt where you can type in a SQL statement. The following screen shows an example query and the results:
Copy file name to clipboardExpand all lines: docs/data-tools/work-with-datasets-in-n-tier-applications.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ ms.workload:
24
24
---
25
25
# Work with datasets in n-tier applications
26
26
27
-
*N-tier data applications* are data-centric applications that are separated into multiple logical layers (or *tiers*). In other words, an n-tier data application is an application that is separated into multiple projects, with the data access tier, the business logic tier, and the presentation tier each in its own project. For more information, see [N-Tier Data Applications Overview](../data-tools/n-tier-data-applications-overview.md).
27
+
*N-tier data applications* are data-centric applications that are separated into multiple logical layers (or *tiers*). In other words, an n-tier data application is an application that is separated into multiple projects, with the data access tier, the business logic tier, and the presentation tier each in its own project. For more information, see [N-Tier data applications overview](../data-tools/n-tier-data-applications-overview.md).
28
28
29
29
Typed datasets have been enhanced so that the TableAdapters and dataset classes can be generated into discrete projects. This provides the ability to quickly separate application layers and generate n-tier data applications.
30
30
@@ -37,14 +37,14 @@ N-tier support in typed datasets enables iterative development of the applicatio
37
37
38
38
## See also
39
39
40
-
-[N-Tier Data Applications Overview](../data-tools/n-tier-data-applications-overview.md)
41
-
-[Walkthrough: Creating an N-Tier Data Application](../data-tools/walkthrough-creating-an-n-tier-data-application.md)
40
+
-[N-Tier data applications overview](../data-tools/n-tier-data-applications-overview.md)
41
+
-[Walkthrough: Creating an n-tier Data Application](../data-tools/walkthrough-creating-an-n-tier-data-application.md)
42
42
-[Add code to TableAdapters in n-tier applications](../data-tools/add-code-to-tableadapters-in-n-tier-applications.md)
43
43
-[Add code to datasets in n-tier applications](../data-tools/add-code-to-datasets-in-n-tier-applications.md)
44
44
-[Add validation to an n-tier dataset](../data-tools/add-validation-to-an-n-tier-dataset.md)
45
45
-[Separate datasets and TableAdapters into different projects](../data-tools/separate-datasets-and-tableadapters-into-different-projects.md)
0 commit comments