Direct Hit!
The simplest and fastest way of copying a large amount of data from different sources to an SQL Server table can be accomplished with the help of Bulk Copy Operation, a new feature in ADO.NET version 2.0.
Here different sources of data are those from which data can be loaded into 'DataTable' instance or read with 'IDataReader' instance.
To accomplish bulk copy one has to use 'SqlBulkCopy' class that is present in 'Sytem.Data.SqlClient' namespace in .NET framework. Now using this 'SqlBulkCopy' class one can perform single bulk copy, multiple bulk copy and bulk copy with a transaction.
Implementation Before implementing bulk copy we should be ready with source and destination of data. In this example we would be using SQL Server as both source and destination. We would copy data from 'Source' table and paste it into 'Destination' residing on same server.
NEXT>>
With Lotus Quickr your everyday business content can be easily shared, enabling operational efficiency. Download the Lotus Quickr demo to learn how.
know more..