Solved

Import from excel

Posted on 2010-09-03
2
213 Views
Last Modified: 2012-05-10
I am trying to import into SQL server using the wizard an excel file.  both columns have mixed numbers and letters.  The first column imports correctly but the second column imports only cells with only numbers.  What am I doing wrong?
0
Comment
Question by:mak3366
2 Comments
 
LVL 6

Accepted Solution

by:
dan_mason earned 500 total points
ID: 33596910
If there is a way you can sort the Excel file so that the top value in both columns is not a number, I believe that should fix the problem - more of a workaround than a solution.

The better way is probably to use a script in SQL that uses the 'BULK INSERT' method ; that should ensure that all data is carried across, though it will often need some additional manipulation afterwards to get it the way you want.
0
 

Author Closing Comment

by:mak3366
ID: 33597166
I used your idea and built on it.  If I did what you said to do it still would skip one once in a while with letters in it.  So I just did two imports one with only the cells that had numbers only and the other with cells that had both. And it worked find...

Thanks
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
format nvarchar field as mm/dd/yyyy 4 61
Pivot Query Problem 9 37
Set the max value for a column 7 37
SQL Restore Script - Syntax Error 8 90
There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

17 Experts available now in Live!

Get 1:1 Help Now