Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Vack
Aged Yak Warrior
530 Posts |
Posted - 2011-01-04 : 09:07:51
|
| I'm trying to import an excel spread sheet into a new table. I have one column with Alpha numeric values and numeric values. When I import the table the fields that have just numbers come in as NULL. I am just taking the defaults on the import wizard. I have tried changing the formats in excel as well. I've used General and Text. Any ideas on why NULL values keep being pulled in? |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2011-01-04 : 09:20:38
|
| Make sure your destination column is varchar or char and that your excel is all text (not general). Everything in your Excel column should be on the left without aligning - else excel still says it's a number.JimEveryday I learn something that somebody else already knew |
 |
|
|
Vack
Aged Yak Warrior
530 Posts |
Posted - 2011-01-04 : 09:26:42
|
| I did that and still no good. |
 |
|
|
Vack
Aged Yak Warrior
530 Posts |
Posted - 2011-01-04 : 09:41:05
|
| Turned out to be the spread sheet was Excel 2007. I had to do a save AS and save it as an Excel 2000 sheet. Then I formated the field and it imported with no issues. |
 |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2011-01-04 : 09:54:44
|
| I love Excel except when I hate it!JimEveryday I learn something that somebody else already knew |
 |
|
|
|
|
|