Installation and Release Bulletin Sybase® Real-Time Data Services Version 3.5
Using for xml clause
in Adaptive Server 15.0 can cause an overflow
[CR #348124] A message using the for xml clause may
cause an overflow.
Workaround: Increase your stack
size. The amount you need to increase your stack size depends on
the configuration of your site and your for xml query.