Import Excel spreadsheet columns into SQL Server database

user47206 picture user47206 · Dec 17, 2008 · Viewed 402.4k times · Source

I have an Excel spreadsheet that I want to import select columns into my SQL Server 2008 database table. The wizard didn't offer that option.

Do any easy code options exist?

Answer

Tejas picture Tejas · Jun 9, 2010

Once connected to Sql Server 2005 Database, From Object Explorer Window, right click on the database which you want to import table into. Select Tasks -> Import Data. This is a simple tool and allows you to 'map' the incoming data into appropriate table. You can save the scripts to run again when needed.