Answered by:
Import Excel into SQL Server

Question
-
In Access, I was able to easily import Excel spreadsheets into a table. But, I haven't yet found a way to do this in SQL Server. I've seen some posts on writing some sort of code involving Excel as an ADO object, but this seems to be way too cumbersome for something that was so easily done in an inferior product.
Is there no way to simply import the sheet without having to write code?
Thanx in advance!
- Moved by BalmukundMicrosoft employee Thursday, January 26, 2012 6:34 AM (From:Database Design)
Wednesday, January 25, 2012 8:02 PM
Answers
-
Hi Adam,
Open management studio and select database where you want to import the data. Open context menu (right mouse click) and select Tasks/Import Data. This would open Import Data wizard where you would be able to select excel file as the source.
Thank you!
My blog: http://aboutsqlserver.com
- Proposed as answer by Naomi N Thursday, January 26, 2012 4:12 AM
- Marked as answer by Adam Quark Friday, January 27, 2012 4:36 PM
Wednesday, January 25, 2012 10:28 PM
All replies
-
Hi,
how about trying a Integration Services Connection Project in SQL Server Business Intelligence Development Studio as you can choose Excel as a data provider.
Sean Massey | Consultant, iUNITE
Feel free to contact me through My Blog, Twitter or Hire Me.
Please click the Mark as Answer button if a post solves your problem!Wednesday, January 25, 2012 8:58 PM -
Hi Adam,
Open management studio and select database where you want to import the data. Open context menu (right mouse click) and select Tasks/Import Data. This would open Import Data wizard where you would be able to select excel file as the source.
Thank you!
My blog: http://aboutsqlserver.com
- Proposed as answer by Naomi N Thursday, January 26, 2012 4:12 AM
- Marked as answer by Adam Quark Friday, January 27, 2012 4:36 PM
Wednesday, January 25, 2012 10:28 PM -
Hi Adam,
Open management studio and select database where you want to import the data. Open context menu (right mouse click) and select Tasks/Import Data. This would open Import Data wizard where you would be able to select excel file as the source.
Thank you!
My blog: http://aboutsqlserver.com
Excellent!I knew there had to be a way to do it cleanly without jumping through a bunch of hoops.
Friday, January 27, 2012 4:37 PM -
There are several ways to do this!
Click method:
http://msdn.microsoft.com/en-us/library/ms140052.aspx
Code method:
http://support.microsoft.com/kb/321686
Tuesday, January 31, 2012 1:39 PM