dbTalk Databases Forums  

Do Not Keep NULLS using SSIS Bulk Insert - Insert Empty String Ins

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


Discuss Do Not Keep NULLS using SSIS Bulk Insert - Insert Empty String Ins in the microsoft.public.sqlserver.dts forum.



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

Default Do Not Keep NULLS using SSIS Bulk Insert - Insert Empty String Ins - 05-13-2008 , 03:51 PM






I have two SSIS packages that import from the same flat file into the same
SQL 2005 table. Both packages use the same Connection Managers. The SQL
table allows NULL values for all fields. The flat file has "empty values"
for certain columns.

The first package uses the Data Flow Task with the "Keep nulls" property of
the OLE DB Destination Editor unchecked. When this task is executed no null
values are inserted into the SQL table for the "empty values" from the flat
file. Empty string values are inserted instead of NULL.

The second package uses the Bulk Insert Task with the "KeepNulls" property
for the task set to "False". When the task is executed NULL values are
inserted into the SQL table for the "empty values" from the flat file.

I want to have the exact same behavior on my data in the Bulk Insert Task as
I do with the Data Flow Task. Using the Bulk Insert Task, what must I do to
have the Empty String values inserted into the SQL table where there is an
"empty value" in the flat file? Why & how does this occur automatically in
the Data Flow Task?

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.