Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Copy Excel data to SQL server table

Posted on 2011-02-13
5
Medium Priority
?
561 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:Murray Brown
5 Comments
 
LVL 3

Expert Comment

by:deepri_154
ID: 34883190
0
 
LVL 3

Assisted Solution

by:jasonbird
jasonbird earned 664 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 668 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 668 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:Murray Brown
ID: 34917308
Thanks
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Screencast - Getting to Know the Pipeline

916 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