Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import CSV (flat file) using SQL Server Management Studio in existing table

May someone please let me know if there is a way to import CSV files in an existing table using SQL Server Management Studio GUI

I tried the below but this method always creates a new table and will not allow importing in an existing table:

Right click the database and select Tasks -> Flat File...
Click the Next > button.
For Data Source, select Flat File Source. Then use the Browse button to select the CSV file. Spend some time configuring the data import before clicking the Next > button.

like image 720
M-A Charlotte Avatar asked Jul 06 '26 07:07

M-A Charlotte


1 Answers

For Microsoft SQL Server Management Studio (SSMS) 19.1

  • Connect to server
  • Select database (not table)
  • Right click on database
  • Select Tasks -> Import Data...*
  • Select Flat File Source

*Do not select Import Flat File... directly. This launches new verion of Import Wizard which does not allow import into already existing table.

like image 124
herdek550 Avatar answered Jul 09 '26 20:07

herdek550



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!