Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 problems with import
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 04/28/2004 :  14:11:58  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
tbrown writes "Am importing from Excel to SQL table. Field has mostly numbers but some rows have the word "FLEX". The import is importing the numbers fine but is changing the word "FLEX" to nulls. The field (region) is defined as [Region] nvarchar (10) NULL on the import. The field is defined as general in Excel. Here is an example of the data in Excel:


The "flex" above is imported as a null value. I don't get it. Please help.


Pointy Haired Yak DBA

4184 Posts

Posted - 04/28/2004 :  17:31:11  Show Profile  Visit derrickleggett's Homepage  Send derrickleggett an AOL message  Send derrickleggett a Yahoo! Message  Reply with Quote
When you import the data, you have the option to define your columns by clickingon transformation. You will notice that because the first so many rows are numeric it's trying to import this field that way. You need to change it to a varchar field and your data will come across fine.


When life gives you a lemon, fire the DBA.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000