How to: Bulk Load Data by Using the SQL Server Destination
To add and configure a SQL Server destination, the package must already include at least one Data Flow task and a data source.
To load data using a SQL Server destination
In Business Intelligence Development Studio, open the Integration Services project that contains the package you want.
In Solution Explorer, double-click the package to open it.
Click the Data Flow tab, and then, from the Toolbox, drag the SQL Server destination to the design surface.
Connect the destination to a source or a previous transformation in the data flow by dragging a connector—the green or red arrow—to the destination.
Double-click the destination.
In the SQL Server Destination Editor, on the Connection Manager page, select an existing OLE DB connection manager or click New to create a new connection manager. For more information, see OLE DB Connection Manager.
To specify the table or view into which to load the data, do one of the following:
Select an existing table or view.
Click New, and in the Create Table dialog boxwrite an SQL statement that creates a table or view.
Integration Services generates a default CREATE TABLE statement based on the connected data source. This default CREATE TABLE statement will not include the FILESTREAM attribute even if the source table includes a column with the FILESTREAM attribute declared. To run an Integration Services component with the FILESTREAM attribute, first implement FILESTREAM storage on the destination database. Then, add the FILESTREAM attribute to the CREATE TABLE statement in the Create Table dialog box. For more information, see Designing and Implementing FILESTREAM Storage.
Click Mappings and map columns from the Available Input Columns list to columns in the Available Destination Columns list by dragging columns from one list to another.
The destination automatically maps same-named columns.
Click Advanced and set the bulk load options: Keep identity, Keep nulls, Table lock, Check constraints, and Fire triggers.
Optionally, specify the first and last input rows to insert, the maximum number of errors that can occur before the insert operation stops, and the columns on which the insert is sorted.
The sort order is determined by the order in which the columns are listed.
To save the updated package, click Save Selected Items on the File menu.