Solved

Import from excel

Posted on 2010-09-03
2
212 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 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

12 Experts available now in Live!

Get 1:1 Help Now