Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 Sequence generation

Author  Topic 

varalakshmi
Yak Posting Veteran

98 Posts

Posted - 2013-11-15 : 05:12:53
Hi,
I'm creating SQL sequence in my table for generating sequence numbers.
The column associated with the sequence number is a not null column.
In my SSIS package,when mapping with the destination the OLE DB Destination shows error since i'm not mapping the column which is a not null column.
How should I handle this in the package?

Thanks in advance.

- Varalakshmi

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-11-15 : 05:55:48
in package you need to either add the code to generate next sequence value in Source query itself. Or make it a NULable column and do the sequence value population as an update after data flow task using execute sql task.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -