take the client out of the equation. Run the same SQL (or as close as possible) in isql.
I've seen that stacktrace before and it's been a while but IIRC you can get that stacktrace if the tempdb you using isn't working correctly. For example, if the storage behind it is missing. I would expect read/write errors in either the ase log or in the os error log.
jason