Does Foxpro support the syntax of something similar to
ISNULL(<col>,0)
i.e. If this col is NULL then substitute a 0.
And to get around the "" then you could do
NULLIF(<col>,"")
Combine them together and you get
ISNULL(NULLIF(<col>,""),0)
The solution offered by Krish I am not sure I understand but you would want
to use an Active Script transform and check for nulls there. If you find
one in the attribute then you could substitute a value instead.
Have a look on page 12 of this article
Building a Package in the DTS Designer
(
http://www.sqldts.com/default.aspx?278)
--
--
Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know
[quoted text, click to view] "Frango" <f_gofa@hotmail.com> wrote in message
news:uCEex0omEHA.2372@TK2MSFTNGP10.phx.gbl...
> Thanks Krish,
> I am going to try that, its just that I can't seem to find the correct
> dialog in the DTS designer to accomplish this. If I create a new package
> using the wizard, I can see where this would occur, but I, so far, have
> not
> figured out where the corresponding dialog is accessed in the designer...
>
> Frango
>
> "Krish" <NOspam@Nospam.org> wrote in message
> news:OQekzhomEHA.748@TK2MSFTNGP15.phx.gbl...
>> why dont you check something like this
>>
>> IF Trim(DTSSource("columnname")) <> "" Then
>> transform data
>> end if
>>
>> "Frango" <f_gofa@hotmail.com> wrote in message
>> news:%23PPNUTomEHA.2616@tk2msftngp13.phx.gbl...
>> > Can anyone help with handling nulls or blank data being imported from
>> foxpro
>> > .dbf files into a normalized sql database? The data insert tasks are
>> failing
>> > because the normalization in sql server requires a value in the
>> > incoming
>> > data, where this data was optional.
>> >
>> > Thanks in advance...
>> > Frango
>> >
>> >
>>
>>
>
>