?
Solved

how to copy excel spreadsheet data from an excel spreadsheet into a sql server database

Posted on 2014-12-11
3
Medium Priority
?
109 Views
Last Modified: 2014-12-13
I have an excel spreadsheet and I want to copy that data into a sql server table. Either a new table created upon import, or a table I create prior to the import. Whichever is the best technique.

So how do I copy the data from the Excel Spreadsheet to a sql server database? I am using sql server 2008?
0
Comment
Question by:brgdotnet
[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
3 Comments
 
LVL 12

Accepted Solution

by:
James Elliott earned 1000 total points
ID: 40495550
Right click on the database on the left hand side of your SSMS window, then select Tasks => Import Data.

From here you can select either MS Excel as the source, or connect via other more specific methods.
0
 
LVL 11

Assisted Solution

by:SThaya
SThaya earned 1000 total points
ID: 40495584
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 40496119
A valid question here is 'Do you have any control over the source data being in Excel?'.

Excel is great in that users can do anything.  Excel is terrible as a source of normalized data in that users can do anything to mess up the formatting so it can't be consumed, causing applications like SSIS and SSRS that require a 'contract' mapping of Source and Destination in order to pump data.

The above SSIS link looks pretty comprehensive.  Would be worth spelling out some of that content in this question.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

719 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