dbTalk Databases Forums  

SQL table only accepts 1 Excel data format

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


Discuss SQL table only accepts 1 Excel data format in the microsoft.public.sqlserver.dts forum.



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

Default SQL table only accepts 1 Excel data format - 01-28-2005 , 06:15 PM






I'll be the first to admit, the title for the post isn't the greatest but
didn't know what else to write. Anyways...

Im importing data from Excel into SQL. My StoreNbr coulmn can be in General,
Text, Number, etc... take your pick, the problem still persists.

Sheet1:

StoreNbr

1234
96AB
5678

Only rows 1 and 3 will make it into the DB. Row 2 will show up as a NULL. As
will all other columns with letters in them


Sheet2:

StoreNbr

1234567891
1234
5678

Only rows 2, and 3 will make it into the DB. Row 1 will show up as a NULL.
As will other columns with 10 digits in them.


So, Excel/ SQL/ DTS is determining what my data SHOULD look like, and only
accepting what it feels worthy. Any ideas are appreciated.

--
SQL2K SP3

TIA, ChrisR



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

Default Re: SQL table only accepts 1 Excel data format - 01-29-2005 , 12:50 AM






The driver is doing it correct

Problem is detailed here

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

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"ChrisR" <bla (AT) noemail (DOT) com> wrote

Quote:
I'll be the first to admit, the title for the post isn't the greatest but
didn't know what else to write. Anyways...

Im importing data from Excel into SQL. My StoreNbr coulmn can be in
General,
Text, Number, etc... take your pick, the problem still persists.

Sheet1:

StoreNbr

1234
96AB
5678

Only rows 1 and 3 will make it into the DB. Row 2 will show up as a NULL.
As
will all other columns with letters in them


Sheet2:

StoreNbr

1234567891
1234
5678

Only rows 2, and 3 will make it into the DB. Row 1 will show up as a NULL.
As will other columns with 10 digits in them.


So, Excel/ SQL/ DTS is determining what my data SHOULD look like, and only
accepting what it feels worthy. Any ideas are appreciated.

--
SQL2K SP3

TIA, ChrisR





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.