SQL error

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ds1user1
Participant
Posts: 20
Joined: Tue Apr 04, 2006 11:01 am

SQL error

Post by ds1user1 »

Hi all,

Any idea why i am getting this error.

Code: Select all

Initial_Extract,0: Warning: CopyOfJOB1.Initial_Extract: Sybase Server warning 2762 (severity 16): The 'CREATE TABLE' command is not allowed within a multi-statement transaction in the 'tempdb' database. 
I am using sybase OCI stage to extract the data and written a big SQL using some temp table but at the end i am dropping these tables.I dont know y i am getting this error message.

Any help is appreciated
Thanks
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Because a SQL statement is not the same as a DML statement. Only put SQL in the user-defined area. If you need to do DML, use before/after SQL with an anonymous block stored procedure, do your drops outside a transformation job, or switch to using a stored procedure.
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
Post Reply