Solved

Copy Excel data to SQL server table

Posted on 2011-02-13
5
490 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
5 Comments
 
LVL 3

Expert Comment

by:deepri_154
Comment Utility
0
 
LVL 3

Assisted Solution

by:jasonbird
jasonbird earned 166 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now