- Step 1 : Right click on SSIS Packages , select ” New SSIS Package ” .

- Step 2 : Drag “Data Flow Task” into Control Flow .

- Step 3 : Drag ” Flat File Source ” into ” Data Flow ” and click Edit .

- Step 4 : click on ” New ” Button to Browse the File .

- Step 5 : click Browse button to select file from laptop .

- Step 6 : Select the CSV File and click Open button .

- Step 7 : Select ” Columns ” , You can check the preview rows .

Step 8 : Go to ” Advance ” , Select any column and you can edit , “Name ” , ” ColumnDelimeter ” , ” DataType ” . in my case , i edit DEPTNO DataType string to Numeric .

- Step 9 : Inside DataFlow Designer , establish link between “Flat File Source ” and ” OLE DB Destination ” .

- Step 10 : click on ” New ” Button and select Sql server connection , Data access mode should be ” Table or view ” , Select any Table after clicking DropdownBox .

- Step 11 : Select “Mappings” From connection Manager . Drag suitable link between each and every columns.

- Step 12 : After establishing link between source and destination .

- Step 13 : click Start button to execute your mapping .

- Step 14 : Mapping executed successfully, 4 rows loaded into sql server table .

so, this is the way , we can load CSV file data into sql server Database table .
Happy Coding , thanks…
1 thought on “Import CSV File into Sql Server Table Using SSIS”
Shanna Modisette
(11/17/2019 - 6:40 pm)Exceptional post however , I was wondering if you could write a litte more on this subject? I’d be very grateful if you could elaborate a little bit further. Thanks!|
Comments are closed.