Error loading SQL Server using ODBC connection

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
shellyburg
Participant
Posts: 1
Joined: Thu Apr 13, 2006 3:14 pm

Error loading SQL Server using ODBC connection

Post by shellyburg »

I have a job that sources from a flat file and loads a SQL Server table, straight insert, no transformations, "Clear table then insert rows", Transaction Handling set to 250.

The job was running fine but then the SQL Server table was dropped and recreated with different columns. When I re-imported the table definition and re-linked my source columns, it aborted immediately. One of my coworkers showed me where to set the Quote character from " to 000, which helped the job at least to BEGIN loading records, but it still aborts after a few thousand records are loaded.

The error message merely says "BCIPut call to SQLExecute failed", then just lists the Insert statement and the failed record's data. I was able to manually insert the data from one of the failed records using an insert statement in Query Analyzer. I searched the Forum but could not find anything related to this. Any suggestions?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Welcome Aboard
Do an exact search on "BCIPut call to SQLExecute failed". A lot of such issues have been covered before. Also try resetting the job for additional messages that might help in the diagnosis.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sounds like you are using an ODBC stage. If all you did was change the Quote character, try pressing the Get SQLInfo button, recompile the job and see if that helps at all.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply