I am also running into this error but the Sybase documentation states in a somewhat ambigous fashion to
avoid doing this and you should
never turn on this option. I am not the DBA so I do not have the luxury of altering the tempdb settings. I believe Sybase may have the answer so I will open a support ticket to try to find the answer.
From the Sybase 12.5 Transact SQL Guide
[Warning!
Be careful when using data definition commands. The only scenario in which using data definition language commands inside transactions is justified is in create schema. Data definition language commands hold locks on system tables such as sysobjects. If you use data definition language commands inside transactions, keep the transactions short.
Avoid using data definition language commands on tempdb within transactions; doing so can slow performance to a halt. Always leave ddl in tran set to false in tempdb.
jsalvo wrote:
Okay ... I got passed the error.
Fortunately, I am also the DBA ( and System Administrator, etc... ).
The solution is to enable 'ddl in tran' in tempdb. Run the following as sa in ASE:
sp_dboption tempdb, 'ddl in tran', true
go
use tempdb
go
checkpoint
go
However, this setting will be lost if you restart ASE, since tempdb is recreated everytime during a restart.