Sql Server Errors

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
vinod111
Participant
Posts: 5
Joined: Wed Oct 05, 2005 8:52 pm

Sql Server Errors

Post by vinod111 »

Can anyone tell me some common errors while loading from or to Sql Server.. Thanks..
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

The issues are the same for everyone with any database:

1. Dates not in the proper form for the stage (OCI or ODBC) connecting to the database
2. Data type mismatches because the ETL didn't properly check or transform the source data
3. Truncations to columns during loading because source data larger than target columns
4. Primary key violations during load because inserts and updates are not differentiated
5. Foreign key violations during load because foreign keys were not validated during transformation
6. Table/column names unknown because table definitions old/invalid/user-defined sql never tested
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
bmadhav
Charter Member
Charter Member
Posts: 50
Joined: Wed May 12, 2004 1:16 pm

Post by bmadhav »

Vinod
U also need to be aware of the stage u are going to use to load data into SQL server -DRS stage or ODBC enterprise stage.
There is a problem of memory leak with DRS stage and ODBC enterprise stage when u use data types of type timestamp and decimal. U will see this leak especially if u try to load large volumes of data and a large size of the data record.
One way to get around the decimal data type is to replace it with a double.

Here is an earlier link:
viewtopic.php?t=96316&highlight=odbc

Thanks
bmadhav
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The ODBC Enterprise stage is, of course, a parallel stage type. In server jobs you have the ODBC stage, which does not exhibit the same memory leak.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply