Skip to content

Commit 0093a06

Browse files
committed
Merge branch 'bulkCopyOrderHints' of https://github.com/johnnypham/SqlClient into bulkCopyOrderHints
2 parents 9cde0c4 + d5fe90d commit 0093a06

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

doc/samples/SqlBulkCopy_ColumnOrderHintCollectionClear.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
// <Snippet1>
12
using System;
23
using System.Data;
3-
// <Snippet1>
44
using Microsoft.Data.SqlClient;
55

66
class Program

doc/snippets/Microsoft.Data.SqlClient/SqlBulkCopyColumnOrderHint.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ Transact-SQL `INSERT … SELECT` statement to copy the data.
8383
8484
An <xref:System.ArgumentException> will be thrown if a null or empty string is given.
8585
86-
The last value set takes precedence.
87-
8886
## Examples
8987
The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
9088
A SqlBulkCopyColumnOrderHint object is used to define the sort order for the ProductNumber destination column.
@@ -114,8 +112,6 @@ Transact-SQL `INSERT … SELECT` statement to copy the data.
114112
## Remarks
115113
An <xref:System.ArgumentException> will be thrown if a <xref:Microsoft.Data.SqlClient.SortOrder> of Unspecified is given.
116114
117-
The last value set takes precedence.
118-
119115
## Examples
120116
The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
121117
A SqlBulkCopyColumnOrderHint object is used to define the sort order for the ProductNumber destination column.

doc/snippets/Microsoft.Data.SqlClient/SqlBulkCopyColumnOrderHintCollection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to c
7474
7575
## Examples
7676
The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
77-
A SqlBulkCopyColumnOrderHint object is added to the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnOrderHints> by providing the destination column name and its sort order.
77+
A SqlBulkCopyColumnOrderHint object is added to the <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnOrderHintCollection> by providing the destination column name and its sort order.
7878
7979
> [!IMPORTANT]
8080
> This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).

0 commit comments

Comments
 (0)