dbTalk Databases Forums  

DTS package missing values

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


Discuss DTS package missing values in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
point99 via SQLMonster.com
 
Posts: n/a

Default DTS package missing values - 03-24-2005 , 02:11 PM






I am trying to import some data from excel to SQL server table. In excel
file there is a column which is mostly empty [around 99 % rows] so when I
am importing the file. the DTS package is putting null in all rows even if
there is a value in that row for that column. is there any bug in it? do I
need to change some setting ?

Please let me know.

thanks,
H.

--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #2  
Old   
Axel Dahmen
 
Posts: n/a

Default Re: DTS package missing values - 03-26-2005 , 09:56 PM






This is a flaw in the Excel ISAM driver. It only searches the first 8 rows
to determine the data type of each column in the Excel sheet. If it only
finds empty cells it assigns some undefined datatype to it.

Workaround: Just enter some dummy value into the first row of the column and
everything will work fine.

HTH,
Axel Dahmen
www.sportbootcharter.com




-------------------------
"point99 via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> schrieb im Newsbeitrag
news:9f3ae51a2ad046cfac4c2ab01efb5b3e (AT) SQLMonster (DOT) com...
Quote:
I am trying to import some data from excel to SQL server table. In excel
file there is a column which is mostly empty [around 99 % rows] so when I
am importing the file. the DTS package is putting null in all rows even if
there is a value in that row for that column. is there any bug in it? do I
need to change some setting ?

Please let me know.

thanks,
H.

--
Message posted via http://www.sqlmonster.com



Reply With Quote
  #3  
Old   
TACIR
 
Posts: n/a

Default Re: DTS package missing values - 03-29-2005 , 10:39 AM



I just spent over 3 hours resolving this same issue with the same
conclusion!! Where can I find the detailed informationabout the Excel ISAM
driver?

"Axel Dahmen" wrote:

Quote:
This is a flaw in the Excel ISAM driver. It only searches the first 8 rows
to determine the data type of each column in the Excel sheet. If it only
finds empty cells it assigns some undefined datatype to it.

Workaround: Just enter some dummy value into the first row of the column and
everything will work fine.

HTH,
Axel Dahmen
www.sportbootcharter.com




-------------------------
"point99 via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> schrieb im Newsbeitrag
news:9f3ae51a2ad046cfac4c2ab01efb5b3e (AT) SQLMonster (DOT) com...
I am trying to import some data from excel to SQL server table. In excel
file there is a column which is mostly empty [around 99 % rows] so when I
am importing the file. the DTS package is putting null in all rows even if
there is a value in that row for that column. is there any bug in it? do I
need to change some setting ?

Please let me know.

thanks,
H.

--
Message posted via http://www.sqlmonster.com




Reply With Quote
  #4  
Old   
Axel Dahmen
 
Posts: n/a

Default Re: DTS package missing values - 03-31-2005 , 11:32 AM



Can't tell. Found the solution myself by try-and-error. And someone in some
discussion forum shared the same thoughts later.

Regards,
Axel Dahmen


--------------
"TACIR" <TACIR (AT) discussions (DOT) microsoft.com> schrieb im Newsbeitrag
news:B82825E0-731A-448D-990E-1F67564071AD (AT) microsoft (DOT) com...
Quote:
I just spent over 3 hours resolving this same issue with the same
conclusion!! Where can I find the detailed informationabout the Excel ISAM
driver?

"Axel Dahmen" wrote:

This is a flaw in the Excel ISAM driver. It only searches the first 8
rows
to determine the data type of each column in the Excel sheet. If it only
finds empty cells it assigns some undefined datatype to it.

Workaround: Just enter some dummy value into the first row of the column
and
everything will work fine.

HTH,
Axel Dahmen
www.sportbootcharter.com




-------------------------
"point99 via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> schrieb im
Newsbeitrag
news:9f3ae51a2ad046cfac4c2ab01efb5b3e (AT) SQLMonster (DOT) com...
I am trying to import some data from excel to SQL server table. In
excel
file there is a column which is mostly empty [around 99 % rows] so
when I
am importing the file. the DTS package is putting null in all rows
even if
there is a value in that row for that column. is there any bug in it?
do I
need to change some setting ?

Please let me know.

thanks,
H.

--
Message posted via http://www.sqlmonster.com






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

Default Re: DTS package missing values - 03-31-2005 , 12:50 PM



We have a couple of articles here and one that details the old NULL
problem.

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


Excel treats First Row of Data as Headers
(http://www.sqldts.com/default.aspx?255)




"Axel Dahmen" <NO_SPAM (AT) NoOneKnows (DOT) invalid> wrote


Quote:
Can't tell. Found the solution myself by try-and-error. And someone in some
discussion forum shared the same thoughts later.

Regards,
Axel Dahmen


--------------
"TACIR" <TACIR (AT) discussions (DOT) microsoft.com> schrieb im Newsbeitrag
news:B82825E0-731A-448D-990E-1F67564071AD (AT) microsoft (DOT) com...
I just spent over 3 hours resolving this same issue with the same
conclusion!! Where can I find the detailed informationabout the Excel ISAM
driver?

"Axel Dahmen" wrote:

This is a flaw in the Excel ISAM driver. It only searches the first 8
rows
to determine the data type of each column in the Excel sheet. If it only
finds empty cells it assigns some undefined datatype to it.

Workaround: Just enter some dummy value into the first row of the column
and
everything will work fine.

HTH,
Axel Dahmen
www.sportbootcharter.com




-------------------------
"point99 via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> schrieb im
Newsbeitrag
news:9f3ae51a2ad046cfac4c2ab01efb5b3e (AT) SQLMonster (DOT) com...
I am trying to import some data from excel to SQL server table. In
excel
file there is a column which is mostly empty [around 99 % rows] so
when I
am importing the file. the DTS package is putting null in all rows
even if
there is a value in that row for that column. is there any bug in it?
do I
need to change some setting ?

Please let me know.

thanks,
H.

--
Message posted via http://www.sqlmonster.com





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.