Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Merge Join transformation failing - Destination Column does not allow NULLS Expand / Collapse
Author
Message
Posted Thursday, October 04, 2012 7:22 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, November 28, 2012 8:05 AM
Points: 1, Visits: 43
Hi,

I am using a MERGE JOIN SSIS transformation to join the results of 2 queries, which already contain joins in the SQL. I am expecting some NULL values from both sides of the full outer join. The destination table has default values assigned to all the columns, so the NULLS should be replaced upon delivery.

When I rin the package, I get an error that the Value violated the integrity contraints of the target column. I DO NOT have the Keep Nulls option checked on the OLE Destination, so my understanding is that any nulls should be replaced by the default values specified in the table design.

Anyone able to help?

S
Post #1368388
Posted Tuesday, October 09, 2012 9:41 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, May 15, 2013 8:46 AM
Points: 240, Visits: 653
steve.burton 78514 (10/4/2012)
Hi,

I am using a MERGE JOIN SSIS transformation to join the results of 2 queries, which already contain joins in the SQL. I am expecting some NULL values from both sides of the full outer join. The destination table has default values assigned to all the columns, so the NULLS should be replaced upon delivery.

When I rin the package, I get an error that the Value violated the integrity contraints of the target column. I DO NOT have the Keep Nulls option checked on the OLE Destination, so my understanding is that any nulls should be replaced by the default values specified in the table design.

Anyone able to help?

S


I don't know anything about the Keep Nulls option, I don't use it. None of my warehouse tables allow nulls so I use Derived Column Transformation to check for nulls and turn them into Unknown Member appropriate to specific table/field.

maybe not quite how you wanted to do it, but, it does work.
Post #1370453
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse