dbTalk Databases Forums  

DDQ task incorrectly replaces empty strings with null

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


Discuss DDQ task incorrectly replaces empty strings with null in the microsoft.public.sqlserver.dts forum.



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

Default DDQ task incorrectly replaces empty strings with null - 02-18-2005 , 02:08 PM






Is there a fix for this??? The same thing happens with updates as well as
inserts.
I found that empty strings are incorrectly replaced with null. For example:

use tempdb
go

create table [dbo].[Test_Source]
(
[Id] int not NULL,
[Field] varchar(255) NULL
)
go

insert into [dbo].[Test_Source] select 1, ''
insert into [dbo].[Test_Source] select 2, NULL
go


create table [dbo].[Test_Destination]
(
[Id] int not NULL,
[Field] varchar(255) NULL
)
go


create procedure [dbo].[Test_Destination_Insert]
@_Id int,
@_Field varchar(255) = NULL
as
insert into [dbo].[Test_Destination]([Id], [Field]) select @_Id, @_Field
go


-- Invoke a DTS package using DDQ Task.


select * from [dbo].[Test_Source]
select * from [dbo].[Test_Destination]
go


And I show Source as having 1/empty string and 2/NULL. My Destination table
has 1/NULL
and 2/NULL.



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.