Solved

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

Posted on 2014-12-11
3
102 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
3 Comments
 
LVL 12

Accepted Solution

by:
James Elliott earned 250 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 250 total points
ID: 40495584
0
 
LVL 65

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

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

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

757 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

23 Experts available now in Live!

Get 1:1 Help Now