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
{{ message }}
Repository navigation
Commit 2f383ce
Browse filesBrowse the repository at this point in the historyBrowse files
For more information about setting these properties, see the documentation for [SqlConnection.ConnectionString Property](https://docs.microsoft.com/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring).
68
+
For more information about setting these properties, see the documentation for [SqlConnection.ConnectionString Property](/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring).
69
69
70
70
## Enable a minimum timeout during login
71
71
@@ -89,4 +89,4 @@ AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.MakeReadAsyncBlocking", fa
[Event Tracing for Windows (ETW)](https://docs.microsoft.com/windows/win32/etw/event-tracing-portal) is an efficient kernel-level tracing facility that lets you log driver-defined events for debugging and testing purposes. SqlClient supports capturing ETW events at different informational levels. To begin capturing event traces, client applications should listen for events from SqlClient's EventSource implementation:
21
+
[Event Tracing for Windows (ETW)](/windows/win32/etw/event-tracing-portal) is an efficient kernel-level tracing facility that lets you log driver-defined events for debugging and testing purposes. SqlClient supports capturing ETW events at different informational levels. To begin capturing event traces, client applications should listen for events from SqlClient's EventSource implementation:
22
22
23
23
```
24
24
Microsoft.Data.SqlClient.EventSource
@@ -53,5 +53,5 @@ For more information, see the following resources.
53
53
54
54
|Resource|Description|
55
55
|--------------|-----------------|
56
-
|[EventSource Class](https://docs.microsoft.com/dotnet/api/system.diagnostics.tracing.eventsource)|Provides the ability to create ETW events.|
57
-
|[EventListener Class](https://docs.microsoft.com/dotnet/api/system.diagnostics.tracing.eventlistener)|Provides methods for enabling and disabling events from event sources.|
56
+
|[EventSource Class](/dotnet/api/system.diagnostics.tracing.eventsource)|Provides the ability to create ETW events.|
57
+
|[EventListener Class](/dotnet/api/system.diagnostics.tracing.eventlistener)|Provides methods for enabling and disabling events from event sources.|
Copy file name to clipboardExpand all lines: docs/connect/ado-net/find-additional-sqlclient-driver-information.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ For more information about the Microsoft SqlClient Data Provider for SQL Server
26
26
|--------------|-----------------|
27
27
|[.NET Runtime GitHub Repository](https://github.com/dotnet/runtime)|This repo contains the library implementation for .NET Core.|
28
28
|[Microsoft SqlClient Data Provider for SQL Server GitHub Repository](https://github.com/dotnet/SqlClient)|This repo contains the source code for the SqlClient driver.|
29
-
|[.NET API Browser](https://docs.microsoft.com/dotnet/api/)|This site contains .NET API information for the driver.|
29
+
|[.NET API Browser](/dotnet/api/)|This site contains .NET API information for the driver.|
30
30
31
31
## Next steps
32
-
[Overview of the SqlClient driver](overview-sqlclient-driver.md)
32
+
[Overview of the SqlClient driver](overview-sqlclient-driver.md)
New synonyms have been added for the following existing connection string properties to avoid spacing confusion around properties with more than one word. Old property names will continue to be supported for backwards compatibility but the new connection string properties will now be included when fetching connection string from [SqlConnectionStringBuilder](https://docs.microsoft.com/dotnet/api/microsoft.data.sqlclient.sqlconnectionstringbuilder).
74
+
New synonyms have been added for the following existing connection string properties to avoid spacing confusion around properties with more than one word. Old property names will continue to be supported for backwards compatibility but the new connection string properties will now be included when fetching connection string from [SqlConnectionStringBuilder](/dotnet/api/microsoft.data.sqlclient.sqlconnectionstringbuilder).
75
75
76
76
|Existing connection string property|New Synonym|
77
77
|-----------------------------------|-----------|
@@ -208,12 +208,12 @@ In general, existing documentation that uses System.Data.SqlClient on .NET Frame
Copy file name to clipboardExpand all lines: docs/connect/ado-net/sql/asynchronous-operations.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Some database operations, such as command executions, can take significant time
20
20
The .NET provides several standard asynchronous design patterns that developers can use to take advantage of background threads and free the user interface or high-priority threads to complete other operations in its <xref:Microsoft.Data.SqlClient.SqlCommand> class. Specifically, the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery%2A>, <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A>, and <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> methods, paired with the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A>, <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A>, and <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> methods, provide the asynchronous support.
21
21
22
22
> [!NOTE]
23
-
> Asynchronous programming is a core feature of the .NET. For more information about the different asynchronous techniques available to developers, see [Calling Synchronous Methods Asynchronously](https://docs.microsoft.com/dotnet/standard/asynchronous-programming-patterns/calling-synchronous-methods-asynchronously).
23
+
> Asynchronous programming is a core feature of the .NET. For more information about the different asynchronous techniques available to developers, see [Calling Synchronous Methods Asynchronously](/dotnet/standard/asynchronous-programming-patterns/calling-synchronous-methods-asynchronously).
24
24
25
25
Although using asynchronous techniques with ADO.NET features does not add any special considerations, it is important to be aware of the benefits and pitfalls of creating multithreaded applications. The examples that follow in this section point out several important issues that developers will need to take into account when building applications that incorporate multithreaded functionality.
26
26
@@ -36,4 +36,4 @@ Provides an example demonstrating the use of polling to wait for the completion
Copy file name to clipboardExpand all lines: docs/connect/ado-net/sql/context-connection.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,4 +17,4 @@ ms.reviewer: v-kaywon
17
17
18
18
The problem of internal data access is a fairly common scenario. That is, you wish to access the same server on which your common language runtime (CLR) stored procedure or function is executing. One option is to create a connection using <xref:Microsoft.Data.SqlClient.SqlConnection>, specify a connection string that points to the local server, and open the connection. This requires specifying credentials for logging in. The connection is in a different database session than the stored procedure or function, it may have different `SET` options, it is in a separate transaction, it does not see your temporary tables, and so on. If your managed stored procedure or function code is executing in the SQL Server process, it is because someone connected to that server and executed a SQL statement to invoke it. You probably want the stored procedure or function to execute in the context of that connection, along with its transaction, `SET` options, and so on. This is called the context connection.
19
19
20
-
The context connection lets you execute Transact-SQL statements in the same context that your code was invoked in the first place. For more detailed information, see [The context connection](https://go.microsoft.com/fwlink/?LinkId=115395) from SQL Server Books Online.
20
+
The context connection lets you execute Transact-SQL statements in the same context that your code was invoked in the first place. For more detailed information, see [The context connection](/previous-versions/sql/sql-server-2008/ms131053(v=sql.100)) from SQL Server Books Online.
[Data Discovery & Classification](https://docs.microsoft.com/sql/relational-databases/security/sql-data-discovery-and-classification?view=sql-server-2017) is a set of advanced services for discovering, classifying, labeling & reporting the sensitive data in your databases. SqlClient provides an API exposing read-only Data Discovery and Classification information when the underlying source supports the feature. This information is accessed through SqlDataReader.
21
+
[Data Discovery & Classification](../../../relational-databases/security/sql-data-discovery-and-classification.md?view=sql-server-2017) is a set of advanced services for discovering, classifying, labeling & reporting the sensitive data in your databases. SqlClient provides an API exposing read-only Data Discovery and Classification information when the underlying source supports the feature. This information is accessed through SqlDataReader.
22
22
23
23
This sample application demonstrates how to access the Data Classification properties of SqlDataReader.
Copy file name to clipboardExpand all lines: docs/connect/ado-net/sql/date-time-data.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ SQL Server 2008 introduces new data types for handling date and time information
21
21
22
22
Versions of SQL Server earlier than SQL Server 2008 only had two data types for working with date and time values: `datetime` and `smalldatetime`. Both of these data types contain both the date value and a time value, which makes it difficult to work with only date or only time values. Also, these data types only support dates that occur after the introduction of the Gregorian calendar in England in 1753. Another limitation is that these older data types are not time-zone aware, which makes it difficult to work with data that originates from multiple time zones.
23
23
24
-
Complete documentation for SQL Server data types is available in SQL Server Books Online. See [Using Date and Time Data](https://go.microsoft.com/fwlink/?LinkID=98361) for entry-level topics on date and time data.
24
+
Complete documentation for SQL Server data types is available in SQL Server Books Online. See [Using Date and Time Data](/previous-versions/sql/sql-server-2008/ms180878(v=sql.100)) for entry-level topics on date and time data.
25
25
26
26
## Date/Time data types introduced in SQL Server 2008
27
27
The following table describes the new date and time data types.
@@ -41,12 +41,12 @@ How SQL Server parses date and time values depends not only on the type system v
41
41
42
42
The Transact-SQL SET LANGUAGE statement implicitly sets the DATEFORMAT that determines the order of the date parts. You can use the SET DATEFORMAT Transact-SQL statement on a connection to disambiguate date values by ordering the date parts in MDY, DMY, YMD, YDM, MYD, or DYM order.
43
43
44
-
If you do not specify any DATEFORMAT for the connection, SQL Server uses the default language associated with the connection. For example, a date string of '01/02/03' would be interpreted as MDY (January 2, 2003) on a server with a language setting of United States English, and as DMY (February 1, 2003) on a server with a language setting of British English. The year is determined by using SQL Server's cutoff year rule, which defines the cutoff date for assigning the century value. For more information, see [two digit year cutoff Option](https://go.microsoft.com/fwlink/?LinkId=120473) in SQL Server Books Online.
44
+
If you do not specify any DATEFORMAT for the connection, SQL Server uses the default language associated with the connection. For example, a date string of '01/02/03' would be interpreted as MDY (January 2, 2003) on a server with a language setting of United States English, and as DMY (February 1, 2003) on a server with a language setting of British English. The year is determined by using SQL Server's cutoff year rule, which defines the cutoff date for assigning the century value. For more information, see [two digit year cutoff Option](/previous-versions/sql/sql-server-2008-r2/ms189577(v=sql.105)) in SQL Server Books Online.
45
45
46
46
> [!NOTE]
47
47
> The YDM date format is not supported when converting from a string format to `date`, `time`, `datetime2`, or `datetimeoffset`.
48
48
49
-
For more information about how SQL Server interprets date and time data, see [Using Date and Time Data](https://go.microsoft.com/fwlink/?LinkID=98361) in SQL Server 2008 Books Online.
49
+
For more information about how SQL Server interprets date and time data, see [Using Date and Time Data](/previous-versions/sql/sql-server-2008/ms180878(v=sql.100)) in SQL Server 2008 Books Online.
50
50
51
51
## Date/Time data types and parameters
52
52
The following enumerations have been added to <xref:System.Data.SqlDbType> to support the new date and time data types.
@@ -202,9 +202,9 @@ For more information about working with date and time values in SQL Server 2008,
202
202
203
203
|Topic|Description|
204
204
|-----------|-----------------|
205
-
|[Date and Time Data Types and Functions (Transact-SQL)](https://go.microsoft.com/fwlink/?LinkId=98360)|Provides an overview of all Transact-SQL date and time data types and functions.|
206
-
|[Using Date and Time Data](https://go.microsoft.com/fwlink/?LinkId=98361)|Provides information about the date and time data types and functions, and examples of using them.|
207
-
|[Data Types (Transact-SQL)](https://go.microsoft.com/fwlink/?LinkId=98362)|Describes system data types in SQL Server 2008.|
205
+
|[Date and Time Data Types and Functions (Transact-SQL)](/previous-versions/sql/sql-server-2008/ms186724(v=sql.100))|Provides an overview of all Transact-SQL date and time data types and functions.|
206
+
|[Using Date and Time Data](/previous-versions/sql/sql-server-2008/ms180878(v=sql.100))|Provides information about the date and time data types and functions, and examples of using them.|
207
+
|[Data Types (Transact-SQL)](/previous-versions/sql/sql-server-2008/ms187752(v=sql.100))|Describes system data types in SQL Server 2008.|
208
208
209
209
## Next steps
210
-
-[SQL Server data types and ADO.NET](sql-server-data-types.md)
210
+
-[SQL Server data types and ADO.NET](sql-server-data-types.md)
0 commit comments