Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving data from Excel to SQL Server table

I have a very Simple excel sheet:

enter image description here

I am wanting to put this data into a table in SQL Server. I also wanted to add a field that contains a date.

what is the best way to do this?

like image 788
jth41 Avatar asked Apr 17 '13 13:04

jth41


People also ask

Can I connect Excel to SQL Server?

To connect Excel to a database in SQL Database, open Excel and then create a new workbook or open an existing Excel workbook. In the menu bar at the top of the page, select the Data tab, select Get Data, select From Azure, and then select From Azure SQL Database.


1 Answers

My solution was to convert .xlsx to .csv and then use this site to convert .csv to .sql. I then ran the sql file in sql server and generated my tables.

like image 169
Mike Avatar answered Sep 18 '22 13:09

Mike