Solved

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

Posted on 2014-12-11
3
106 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LTrim & Double Space Correction 5 42
Need return values from a stored procedure 8 23
MS SQL query to show nearest date 6 44
Getting invalid Syntax SQL. 3 21
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

820 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