Solved

Import data from Excel to SQL Server 2005 using import wizard

Posted on 2008-10-13
4
2,674 Views
Last Modified: 2012-05-05
I need to import Excel sheet to the SQL Server 2005 table. I am using the Import Wizard. Everything is going well but I noticed that not all cells are imported.  For example if I have 100 rows and all cells have data then in some columns not all the cells are inmported. I tried different formats on the cell (General and Text). It does not help.  If I copy the cell that was imported to the cell that was not imported and then retype the right value, then this cell is imported.
There are too many cells to fix them manually. Can I do something like remove format and then apply some format ( i tried it and it does not work) or something else to make sure that all the data is imported
Thank you
0
Comment
Question by:iboutchkine
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 9

Expert Comment

by:Sander Stad
ID: 22703481
You can use the DTS wizard of use linked servers. Look at tis article that probably help you: http://support.microsoft.com/kb/321686
0
 
LVL 28

Author Comment

by:iboutchkine
ID: 22703527
Yes I can use it, but I doubt that it going to change the Excel Behaviour. I found an article sqldts.com/254.aspx that said that Excel deciides on dtaatype after 8 rows.
I need the quick way to import sebveral spreadsheets.
0
 
LVL 9

Expert Comment

by:Sander Stad
ID: 22703706
You're referring to an article that was last updated in 2005. I'd say try it out in a testdatabase and see what happens because I have serious doubts that this wouldn't be fixed in all these years.
0
 
LVL 28

Accepted Solution

by:
iboutchkine earned 0 total points
ID: 22703722
I found a solution. If I insert the column and enter there a formula to copy trimmed values from the original column then it works. Still I want something easier
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

710 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