Groups | Blog | Home
all groups > sql server dts > december 2004 >

sql server dts : DST with Excel and NULLS instead of Numbers


srussell705
12/6/2004 7:30:06 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
srussell705
12/6/2004 11:48:51 AM
Thanks!!!!

That was the issue. And yes DTS and not an old employer DST of mine :)
__Stephen
Allan Mitchell
12/6/2004 6:41:08 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


[quoted text, click to view]

tahoo
12/14/2004 12:15:03 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

Stephen Russell
12/14/2004 5:39:54 AM




*** Sent via Developersdex http://www.developersdex.com ***
tahoo
12/14/2004 7:03:02 AM
Thanks for the invitation.

[quoted text, click to view]
Stephen Russell
12/14/2004 8:10:08 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 ***
oriki9999
12/15/2004 7:24:51 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 ***
AddThis Social Bookmark Button