Skip to content

Commit

Permalink
Merge branch 'bulkCopyOrderHints' of https://github.com/johnnypham/Sq…
Browse files Browse the repository at this point in the history
…lClient into bulkCopyOrderHints
  • Loading branch information
johnnypham committed May 29, 2020
2 parents 9cde0c4 + d5fe90d commit 0093a06
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/samples/SqlBulkCopy_ColumnOrderHintCollectionClear.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// <Snippet1>
using System;
using System.Data;
// <Snippet1>
using Microsoft.Data.SqlClient;

class Program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ Transact-SQL `INSERT … SELECT` statement to copy the data.
An <xref:System.ArgumentException> will be thrown if a null or empty string is given.
The last value set takes precedence.
## Examples
The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
A SqlBulkCopyColumnOrderHint object is used to define the sort order for the ProductNumber destination column.
Expand Down Expand Up @@ -114,8 +112,6 @@ Transact-SQL `INSERT … SELECT` statement to copy the data.
## Remarks
An <xref:System.ArgumentException> will be thrown if a <xref:Microsoft.Data.SqlClient.SortOrder> of Unspecified is given.
The last value set takes precedence.
## Examples
The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
A SqlBulkCopyColumnOrderHint object is used to define the sort order for the ProductNumber destination column.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to c
## Examples
The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
A SqlBulkCopyColumnOrderHint object is added to the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnOrderHints> by providing the destination column name and its sort order.
A SqlBulkCopyColumnOrderHint object is added to the <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnOrderHintCollection> by providing the destination column name and its sort order.
> [!IMPORTANT]
> 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).
Expand Down

0 comments on commit 0093a06

Please sign in to comment.