SSIS and 'Cannot insert the value NULL into column 'myField''

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



*simple problem and newbie has no clue..* ;-)

I have to copy data from one sql server table into another sql server
table. I'm using SSIS for the first time...

I'm using a simple data type conversion to move the data from one table
into another and this works fine for some tables. In another table, I
get the error:

"Cannot insert the value NULL into column 'myField', table
'ISCTest.dbo.tblmyTableXY'; column does not allow nulls. INSERT fails."

This sounds really reasonable to me, because there is a field 'myField'
in the destination table which really does not allow NULLs and there is
no such field in the source table. I would just like to give a static
value (='1') into this field, but I really can't figure out how. I
tried to set a variable, but I don't know how to assign the value of
the variable to this field...

Any hints are greatly appreciated!

.



Relevant Pages

  • Re: SSIS and Cannot insert the value NULL into column myField
    ... Allan Mitchell ... I have to copy data from one sql server table into another sql server ... column does not allow nulls. ... 'myField' in the destination table which really does not allow NULLs ...
    (microsoft.public.sqlserver.dts)
  • RE: Tool for migrating from one db schema to another?
    ... even schedule it to run using SQL Server Agent on regular basis (SQL Server ... Sommarskog has mentioned SSIS does not come with the Express edition. ... database would be the key. ... a few hundred tickets to migrate to the new system. ...
    (microsoft.public.sqlserver.tools)
  • Re: Problem altering table and adding a default
    ... SQL Server does not allow that - you can only add nullable ... > After you add a new column in Enterprise Manager, uncheck Allow Nulls, ... the ALTER TABLE statement above will pass to the SQL Server ... > 4) Start Profiler and perform a new trace. ...
    (microsoft.public.sqlserver.server)
  • TS6019: Urgent Need for C# DOTNET Developer with Exp in SSIS
    ... Urgent Need for C# DOTNET Developer with Exp in SSIS ... Current technologies in play are: MS Access, MS Access VBA, Citrix, MS ... SQL Server, Oracle, .Net framework, Business Objects & Crystal ...
    (sci.med.laboratory)
  • TS6019: Urgent Need for C# DOTNET Developer with Exp in SSIS
    ... Urgent Need for C# DOTNET Developer with Exp in SSIS ... Current technologies in play are: MS Access, MS Access VBA, Citrix, MS ... SQL Server, Oracle, .Net framework, Business Objects & Crystal ...
    (sci.med.laboratory)