Importing csv file into SQL Server - best approach

Copper Contributor

Hi All,

I want to import csv file into sql server, If I use SQL Server importing wizard then how can I deploy the same into production as it requires manual steps.


So please suggest the best possible way to import csv file into SQL Server.





1 Reply

The Import/Export wizard creates a SSIS package in background and execute it.

You can save that package at the end of the wizard instead of executing it immediately, that you can reuse the package, also on prod.


Or you create manually a package, that's more flexible:


A SSIS package can also be executed from an Agent job, if you want to automize the process.