dbTalk Databases Forums  

Weird results when importing from Excel, Please Help!!!

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


Discuss Weird results when importing from Excel, Please Help!!! in the microsoft.public.sqlserver.dts forum.



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

Default Weird results when importing from Excel, Please Help!!! - 02-19-2004 , 01:51 PM






I'm importing an excel file with the dts wizard and running into these weird results
1. Whole number columns still go in as float not int, but when I change in transformation get an error
2. columns formatted to 2 decimal places go in with a lot more than 2
3. Text columns that have numbers or dates accept some while others are set to null

I have set Jet to check first 8 rows to determine datatypes, and mixed types to be set to text. What else can I do to get some kind of consistency
Any help on this would be greatly appreciated


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

Default Re: Weird results when importing from Excel, Please Help!!! - 02-20-2004 , 12:53 AM






No doubt Excel's formatting is getting you here

You do not want Excel to only check the first 8 rows (default) Have a look
here

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




--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mike" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I'm importing an excel file with the dts wizard and running into these
weird results:
1. Whole number columns still go in as float not int, but when I change
in transformation get an error?
2. columns formatted to 2 decimal places go in with a lot more than 2?
3. Text columns that have numbers or dates accept some while others are
set to null?

I have set Jet to check first 8 rows to determine datatypes, and mixed
types to be set to text. What else can I do to get some kind of
consistency?
Quote:
Any help on this would be greatly appreciated!




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.