dbTalk Databases Forums  

SQL2000 DTS to ORACLE Table - Error!

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SQL2000 DTS to ORACLE Table - Error! in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default SQL2000 DTS to ORACLE Table - Error! - 04-21-2004 , 05:36 AM






I'm attempting to run a DTS data transformation task from
a SQL 2000 table to an Oracle Table.
When using the "Test" button under the Transformations
tab it reports a positive test.
But actually running the DTS Package I get an error
(shown at bottom of post).

The error message talks about inserting NULL or data
which violates constraints on a field
called 'INPT_PKT_HDR_ID'.
The problem I have is that this is a primary key field
that Oracle populates.
Now my DTS task doesn't attempt to insert anything into
this field, it leaves Oracle to populate it, so why am I
getting this error????????????


---------------------
@@ErrorRow: 1
Error at Destination for Row number 1. Errors encountered
so far in this task: 1.

Error Source: Microsoft Data Transformation Services
(DTS) Data Pump
Error Description:Insert error, column 1
('INPT_PKT_HDR_ID', DBTYPE_NUMERIC), status 10:
Integrity violation; attempt to insert NULL data or data
which violates constraints.
Error Help File:sqldts80.hlp
Error Help Context ID:30702


Error Source: Microsoft OLE DB Provider for ODBC Drivers
Error Description:Multiple-step OLE DB operation
generated errors. Check each OLE DB status value, if
available. No work was done.

Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: SQL2000 DTS to ORACLE Table - Error! - 04-22-2004 , 07:36 AM






I'm not sure what you mean about Oracle populating the
primary key. If you mean the column is a sequence, you need
to use Sequence.NextVal.
Oracle doesn't automatically populate those.

-Sue

On Wed, 21 Apr 2004 03:36:54 -0700,
<anonymous (AT) discussions (DOT) microsoft.com> wrote:

Quote:
I'm attempting to run a DTS data transformation task from
a SQL 2000 table to an Oracle Table.
When using the "Test" button under the Transformations
tab it reports a positive test.
But actually running the DTS Package I get an error
(shown at bottom of post).

The error message talks about inserting NULL or data
which violates constraints on a field
called 'INPT_PKT_HDR_ID'.
The problem I have is that this is a primary key field
that Oracle populates.
Now my DTS task doesn't attempt to insert anything into
this field, it leaves Oracle to populate it, so why am I
getting this error????????????


---------------------
@@ErrorRow: 1
Error at Destination for Row number 1. Errors encountered
so far in this task: 1.

Error Source: Microsoft Data Transformation Services
(DTS) Data Pump
Error Description:Insert error, column 1
('INPT_PKT_HDR_ID', DBTYPE_NUMERIC), status 10:
Integrity violation; attempt to insert NULL data or data
which violates constraints.
Error Help File:sqldts80.hlp
Error Help Context ID:30702


Error Source: Microsoft OLE DB Provider for ODBC Drivers
Error Description:Multiple-step OLE DB operation
generated errors. Check each OLE DB status value, if
available. No work was done.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.