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/SqlBulkCopy.xml
+64-54Lines changed: 64 additions & 54 deletions
Original file line number
Diff line number
Diff line change
@@ -391,7 +391,7 @@ If the data is sorted in an order that differs from the order of a clustered ind
391
391
<formattype="text/markdown"><![CDATA[
392
392
## Remarks
393
393
If <xref:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName> has not been set when <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> is called, an <xref:System.ArgumentNullException>
394
-
is thrown. If <xref:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName> is modified while a <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> operation is running,
394
+
is thrown. If <xref:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName> is modified while a <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> operation is running,
395
395
the change does not affect the current operation. The new <xref:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName> value is used the next time a <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> method is called.
396
396
397
397
<xref:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName> is a three-part name (`<database>.<owningschema>.<name>`). You can qualify the table name with its database and owning schema if you choose.
@@ -632,7 +632,7 @@ The following Console application demonstrates how to bulk load data from a <xre
632
632
In this example, a <xref:System.Data.DataTable> is created at run time and is the source of the `SqlBulkCopy` operation.
633
633
634
634
> [!IMPORTANT]
635
-
> This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](/dotnet/framework/data/adonet/sql/bulk-copy-example-setup).
635
+
> This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](/dotnet/framework/data/adonet/sql/bulk-copy-example-setup).
636
636
This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
@@ -720,7 +720,7 @@ The following console application demonstrates how to bulk load data from a <xre
720
720
In this example, a <xref:System.Data.DataTable> is created at run time. A single row is selected from the <xref:System.Data.DataTable> to copy to the destination table.
721
721
722
722
> [!IMPORTANT]
723
-
> This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](/dotnet/framework/data/adonet/sql/bulk-copy-example-setup). This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
723
+
> This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](/dotnet/framework/data/adonet/sql/bulk-copy-example-setup). This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
817
+
The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
820
818
</summary>
821
819
<returns>
822
820
A task representing the asynchronous operation.
@@ -830,20 +828,31 @@ For more information about asynchronous programming in the .NET Framework Data P
The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
941
959
</summary>
942
960
<returns>
943
-
Returns
944
-
<seecref="T:System.Threading.Tasks.Task" />
945
-
.
961
+
A task representing the asynchronous operation.
946
962
</returns>
947
963
<remarks>
948
964
To be added.
@@ -956,8 +972,8 @@ For more information about asynchronous programming in the .NET Framework Data P
The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
1062
+
1063
+
The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
1049
1064
</summary>
1050
1065
<returns>
1051
1066
A task representing the asynchronous operation.
@@ -1088,8 +1103,7 @@ For more information about asynchronous programming in the .NET Framework Data P
1088
1103
returned.
1089
1104
1090
1105
The
1091
-
<seecref="T:System.Data.IDataReader" />
1092
-
's associated connection was closed before the completed
1106
+
<seecref="T:System.Data.IDataReader" />'s associated connection was closed before the completed
1093
1107
<seecref="T:System.Threading.Tasks.Task" />
1094
1108
returned.
1095
1109
<seelangword="Context Connection=true" />
@@ -1111,8 +1125,8 @@ For more information about asynchronous programming in the .NET Framework Data P
The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
1204
+
The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
1192
1205
</summary>
1193
1206
<returns>
1194
1207
A task representing the asynchronous operation.
@@ -1247,8 +1260,7 @@ For more information about asynchronous programming in the .NET Framework Data P
which copies only rows that match the supplied row state in the supplied
1253
1265
<seecref="T:System.Data.DataTable" /> to a destination table specified by the <seecref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
1254
1266
property of the <seecref="T:Microsoft.Data.SqlClient.SqlBulkCopy" /> object.
@@ -1312,13 +1324,11 @@ For more information about asynchronous programming in the .NET Framework Data P
The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.\
1340
+
The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
0 commit comments