SQL db server is 2008R2
I have a table that has defaults on all the NOT NULL columns
I can't insert data into this table using SSIS because I get
[OLE DB Destination [47]] Error: There was an error with input column "description" (68) on input "OLE DB Destination Input" (60). The column status returned was: "The value violated the integrity constraints for the column.".
I have KEEP NULLS turned OFF
What gives? If my source column is NULL then the default should be used.
how to replicate:
create target table
Create table dbo.tst (Value int not null, description varchar(20) not null default(''))
create data flow
add ole db src as sql command "SELECT 1 and value, cast(null as varchar(20)) as description
add ole db dest. point it at the dbo.tst table
make sure KEEP NULLS is unchecked
If i change the description column to allow nulls then the default will fire, but i dont want to let nulls in at all
I tried adding the KEEPDEFAULTS keyword to the oledb dest fast row options section but I reckon the KEEP NULLS does the same thing under the hood
Adelaide, Australia