Every once in a while I find myself typing a one-off script to import some CSV data into a database, doing some column logic (e.g. turn column3 into uppercase) and/or field mapping (column2 in the csv goes to column 3 in de database, etc).
Is there a nice tool which can do this easier?
The least amount of features I'd need is:
- choosing delimiter
- Being able to map column X to column Y in the DB
- setting defaults for columns not in the csv file
SQL server management studio can almost do it, except one can not specify any defaults for values which are not listed in the csv file. So I'd then have to create extra columns in excel first.