dbTalk Databases Forums  

DST with Excel and NULLS instead of Numbers

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


Discuss DST with Excel and NULLS instead of Numbers in the microsoft.public.sqlserver.dts forum.



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

Default DST with Excel and NULLS instead of Numbers - 12-06-2004 , 09:30 AM






I did a quick DST using an excel price sheet and found allot of nulls
when I have a column general in the sheet having ONLY a numeric value.


If the column has 442**TDF it's fine.
But the same column in the same pull with 2 gives a NULL.

This is a pricing file that is going to send to a print shop for other
use, so I can't really expect any rule I want to be applied by the
marketing department.

TIA

__Stephen


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

Default Re: DST with Excel and NULLS instead of Numbers - 12-06-2004 , 12:41 PM






DST? Is that DTS?

Are you seeing this?

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


"srussell705" <srussell (AT) lotmate (DOT) com> wrote

Quote:
I did a quick DST using an excel price sheet and found allot of nulls
when I have a column general in the sheet having ONLY a numeric value.


If the column has 442**TDF it's fine.
But the same column in the same pull with 2 gives a NULL.

This is a pricing file that is going to send to a print shop for other
use, so I can't really expect any rule I want to be applied by the
marketing department.

TIA

__Stephen




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

Default Re: DST with Excel and NULLS instead of Numbers - 12-06-2004 , 01:48 PM



Thanks!!!!

That was the issue. And yes DTS and not an old employer DST of mine
__Stephen


Reply With Quote
  #4  
Old   
tahoo
 
Posts: n/a

Default Re: DST with Excel and NULLS instead of Numbers - 12-14-2004 , 02:15 AM



I have currently trying to import an excel spreadsheet with named cells to
SQL thr DTS..

My problem is that how to I skip those cell that are empty in the
spreadsheet using DTS activeX?

This is what I tried? (I have tried checking for isNull)

Function Main()
'Check for not Null
If trim(DTSSource("Field A"))=NULL Then
Main = DTSTransformStat_SkipRow
Else
DTSDestination("FIELD_A") = DTSSource("Field A")
end if
Main = DTSTransformStat_OK

End Function

Thanks.

Reply With Quote
  #5  
Old   
Stephen Russell
 
Posts: n/a

Default Re: DST with Excel and NULLS instead of Numbers - 12-14-2004 , 07:39 AM







*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #6  
Old   
tahoo
 
Posts: n/a

Default Re: DST with Excel and NULLS instead of Numbers - 12-14-2004 , 09:03 AM



Thanks for the invitation.

"Stephen Russell" wrote:

Quote:



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Reply With Quote
  #7  
Old   
Stephen Russell
 
Posts: n/a

Default Re: DST with Excel and NULLS instead of Numbers - 12-14-2004 , 10:10 AM




Sorry about that. I thought that my message went through??

Go to this page for the registry fix.

<http://www.sqldts.com/default.aspx?6,222,254,0,1>

Seems that the data engine only looksa at the first 8 rows of the sheet.
This will fix that for you.

__Stephen




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #8  
Old   
oriki9999
 
Posts: n/a

Default Re: DST with Excel and NULLS instead of Numbers - 12-15-2004 , 09:24 AM



I have tried the methods suggested in the article. But it does not help.

As I do not know how many rows does the spreadsheet has, hence is there
a way to check if the cell is empty?

I noticed that as long as the cell has a border it is not consider
empty. Any where to overcome that? I hope to provide an excel
spreadsheet, with formulas and formatting to my user to perform data
entry.

thanks.

~ oriki9999 ~


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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.