Solved

Import data from Excel to SQL Server 2005 using import wizard

Posted on 2008-10-13
4
2,667 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
  • 2
  • 2
4 Comments
 
LVL 9

Expert Comment

by:Sander Stad
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

762 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

6 Experts available now in Live!

Get 1:1 Help Now