Solved

Copy Excel data to SQL server table

Posted on 2011-02-13
5
527 Views
Last Modified: 2012-05-11
Hi

What is the easiest way to get data from an Excel spreadsheet into SQL server 2008?
Can you cut and paste like you do into Access?
0
Comment
Question by:murbro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 3

Expert Comment

by:deepri_154
ID: 34883190
0
 
LVL 3

Assisted Solution

by:jasonbird
jasonbird earned 166 total points
ID: 34883212
You can create a link between your SQL database and Excel. If you go into Windows control panel, Admin tools and then ODBC sources.

Add an ODBC connection to the User DSN tab, or Machine DSN if you want it to be available to all users who may use the workstation.

You can now open the tables from External using the External Sources import feature (under the Excel Data tab) and then import "From Other Sources" and select SQL Database. Select the tables you want to be able to access. You can now open them directly from with Excel in an Excel sheet format and you can past data directly into the table.

Good luck
0
 

Accepted Solution

by:
hari779 earned 167 total points
ID: 34883638
Using the SQL Server Import and Export Wizard we can copy excel data into SQL Server 2008
0
 
LVL 13

Assisted Solution

by:geek_vj
geek_vj earned 167 total points
ID: 34885652
The best way is to use Import and Export wizard. Here is an excellent article on how to use this step by step: (works for sql 2008 too)

http://www.databasejournal.com/features/mssql/article.php/3580216/SQL-Server-2005-Import--Export-Wizard.htm
0
 

Author Closing Comment

by:murbro
ID: 34917308
Thanks
0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question