![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi I have a data pump , I have a Active X Script to populate the destintation Table I want to insert rows based on a condition for eg Only If the salary >100000 I want to insert a row other wise I want to fetch the next row and do the same check and so on The problem is the destination has NOT NULL Columns So when I run the package it is saying cannot insert nulls apparently its trying to insert a dummy row and since Not null columns exist its throwing a exception Any one knows how to debug this ? PS: I cannot handle this in query need to do it in activex Script Thanks Sunny |
#3
| |||
| |||
|
|
-----Original Message----- Can you specify the condition in the SourceSQLStatement of the datapump i.e. SELECT <col list FROM TABLE WHERE salary > 100000 That way you only have rows the qualify to begin with. -- ---------------------------- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Sunny" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:f46101c3f17e$02f09380$a401280a (AT) phx (DOT) gbl... Hi I have a data pump , I have a Active X Script to populate the destintation Table I want to insert rows based on a condition for eg Only If the salary >100000 I want to insert a row other wise I want to fetch the next row and do the same check and so on The problem is the destination has NOT NULL Columns So when I run the package it is saying cannot insert nulls apparently its trying to insert a dummy row and since Not null columns exist its throwing a exception Any one knows how to debug this ? PS: I cannot handle this in query need to do it in activex Script Thanks Sunny . |
#4
| |||
| |||
|
|
No I cant I just gave eg there There is lot of weird business logic going on I prefer to handle it in active x script -----Original Message----- Can you specify the condition in the SourceSQLStatement of the datapump i.e. SELECT <col list FROM TABLE WHERE salary > 100000 That way you only have rows the qualify to begin with. -- ---------------------------- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Sunny" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:f46101c3f17e$02f09380$a401280a (AT) phx (DOT) gbl... Hi I have a data pump , I have a Active X Script to populate the destintation Table I want to insert rows based on a condition for eg Only If the salary >100000 I want to insert a row other wise I want to fetch the next row and do the same check and so on The problem is the destination has NOT NULL Columns So when I run the package it is saying cannot insert nulls apparently its trying to insert a dummy row and since Not null columns exist its throwing a exception Any one knows how to debug this ? PS: I cannot handle this in query need to do it in activex Script Thanks Sunny . |
![]() |
| Thread Tools | |
| Display Modes | |
| |