Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2681
  • Last Modified:

Import data from Excel to SQL Server 2005 using import wizard

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
iboutchkine
Asked:
iboutchkine
  • 2
  • 2
1 Solution
 
Sander StadCommented:
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
 
iboutchkineAuthor Commented:
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
 
Sander StadCommented:
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
 
iboutchkineAuthor Commented:
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now