Load data in Microsoft SQL server in just a few clicks. Plus there is no need to create any scripts or learn command line tools just point and click.
There several ways to load data into Microsoft SQL Server Database
- Via ODBC
- Via OLE DB
- Using BCP interface
This article describes loading data via BCP.
BCP is the fastest way of loading data into SQL Server
MS SQL Server specific parameters
Ensure that any constraints on the destination table are checked during the bulk copy operation. By default, constraints are ignored.
Specify that there are values in the data file for an identity column.
Specify that any columns containing a null value should be retained as null values, even if a default value was specified for that column in the destination table.
Specify the number of rows in a batch. The default is the entire data file.
The following values for the Batch size property have these effects:
If you set Batch size to zero, the data is loaded in a single batch. The first row that fails will cause the entire load to be cancelled, and the step fails.
If you set Batch size to one, the data is loaded one row at a time. Each row that fails is counted as a one-row failure. Previously loaded rows are committed.
If you set Batch size to a value greater than one, the data is loaded one batch at a time. Any row that fails in a batch fails that entire batch; loading stops and the step fails. Rows in previously loaded batches are either committed or if the step has joined the package transaction, provisionally retained in the transaction, subject to later commitment or roll-back.