I am having a similiar issue today. I am able to run the query (quite big with distinct, group by, etc...) through ISQL, but it throws the following error through
java runtime environment ..
java.lang.RuntimeException: - com.sybase.jdbc2.jdbc.SybSQLException: Can't allocate space for object 'temp worktable' in database 'tempdb1' because 'system' segment is full/has no free extents. If you ran out of space in syslogs, dump the transaction log. Otherwise, use ALTER DATABASE to increase the size of the segment.
The query is :
--------------------------------------------------------------
[removed query]
--------------------------------------------------------------
[ September 26, 2005: Message edited by: ecomkid ]
[edited to remove code tags]
[ September 26, 2005: Message edited by: Jeanne Boyarsky ]
[ September 28, 2005: Message edited by: G. Nick ]