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: doc/snippets/Microsoft.Data.SqlClient/SqlCommand.xml
+2-99Lines changed: 2 additions & 99 deletions
Original file line number
Diff line number
Diff line change
@@ -2682,7 +2682,7 @@ If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:
2682
2682
## Examples
2683
2683
The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand>, and then executes it by passing a string that is a Transact-SQL SELECT statement, and a string to use to connect to the data source.
@@ -2750,45 +2750,9 @@ If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:
2750
2750
## Examples
2751
2751
The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand>, and then executes it by passing a string that is a Transact-SQL SELECT statement, and a string to use to connect to the data source. <xref:System.Data.CommandBehavior> is set to <xref:System.Data.CommandBehavior.CloseConnection>.
The following example creates a <seecref="T:Microsoft.Data.SqlClient.SqlCommand" />, and then executes it by passing a string that is a Transact-SQL SELECT statement, and a string to use to connect to the data source. <seecref="T:System.Data.CommandBehavior" /> is set to <seecref="F:System.Data.CommandBehavior.CloseConnection" />.
The following example demonstrates how to create a <seecref="T:Microsoft.Data.SqlClient.SqlCommand" /> and add parameters to the <seecref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.
0 commit comments