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

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

AskSQLTeam
Ask SQLTeam Question

USA
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:

12
12
12
12
FLEX
12
12

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

tbrown"

derrickleggett
Pointy Haired Yak DBA

USA
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.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.11 seconds. Powered By: Snitz Forums 2000