Solved

Copy Excel data to SQL server table

Posted on 2011-02-13
5
507 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 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