dbTalk Databases Forums  

Importing Numeric/Text columns from Excel

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Importing Numeric/Text columns from Excel in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Amir
 
Posts: n/a

Default Importing Numeric/Text columns from Excel - 11-20-2003 , 11:37 AM






Hi all,

When I try to import an excel file that has a column with
numeric AND text data in it, I get lots of NULLs imported.
Mu column contains values like
"101, 102, 105, 343, 101-34, 304-44, Rosemary, Other text"

sometimes, the numeric values are null and at other times
the text values are imported as NULLs. I have tried making
the format of the column in Excel as "Text". But that
does'nt help either. Is there a way to import the data the
way it and treat it completely as a text column. My
destination (SQL Server table) has the corresponding
column as Varchar(100).

Thanks,
Amir


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Importing Numeric/Text columns from Excel - 11-20-2003 , 02:26 PM






You are probably encountering this

Excel Inserts Null Values
(http://www.sqldts.com/default.aspx?254)

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Amir" <acharania (AT) trimontrea (DOT) com> wrote

Quote:
Hi all,

When I try to import an excel file that has a column with
numeric AND text data in it, I get lots of NULLs imported.
Mu column contains values like
"101, 102, 105, 343, 101-34, 304-44, Rosemary, Other text"

sometimes, the numeric values are null and at other times
the text values are imported as NULLs. I have tried making
the format of the column in Excel as "Text". But that
does'nt help either. Is there a way to import the data the
way it and treat it completely as a text column. My
destination (SQL Server table) has the corresponding
column as Varchar(100).

Thanks,
Amir




Reply With Quote
  #3  
Old   
Rand Boyd [MS]
 
Posts: n/a

Default RE: Importing Numeric/Text columns from Excel - 11-21-2003 , 10:54 AM



This is also documented in:

http://support.microsoft.com/?id=236605

Rand
This posting is provided "as is" with no warranties and confers no rights.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.