I have found that when running queries that they are usually cancelled the first time it's ran, then the next it works fine. It's being cancelled internally in Sybase somewhere. Is there a way to tell if the query has been cancelled? Like a return code or something? What would cause Sybase to issue a cancel on a query? -Josh