Solved

Import from excel

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

772 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