insertion into SQL Server table

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

insertion into SQL Server table

Post by svga »

Hi,

I am inserting records into SQL server table using ODBC stage.All the records from the source getting inserted even though if there is some data problem with source.


Eq :If the source column value length exceeds the target column length ,some char from source valuegetting truncated and loaded into the table.

Is there any option not to insert record if there is any datatype or length mismatch occurs in the source.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

There is not a builtin method that will do this for you automatically, as string truncation and data conversion is automatic. You will need to put checks into your job to ensure that the data is correct..
Post Reply