bulkCopy.WriteToServer(dt);
public partial class Form1 : Form { public Form1() { InitializeComponent(); }
Remarks If DestinationTableName has not been set when WriteToServer is called, an ArgumentNullException is thrown. If DestinationTableName is modified while a WriteToServer operation is running, the change does not affect the current operation. The new DestinationTableName value is used the next time a WriteToServer method is called. DestinationTableName is a three-part name (<database>.<owningschema>.<name>). You can qualify the table name with its database and owning schema if you choose. However, if the table name uses an underscore ("_") or any other special characters, you must escape the name using surrounding brackets as in ([<database>.<owningschema>.<name_01>]). For more information, see Database Identifiers. You can bulk-copy data to a temporary table by using a value such as tempdb..#table or tempdb.<owner>.#table for the DestinationTableName property.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)