|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: Sybperl : when do we get this error???
Date: Aug 18 1999 8:26PM
Ravipudi, Murali writes:
> I have a script which does some database calls, and I got this error :
>
> "Sybase error: Attempt to initiate a new SQL Server operation with results
> pending."
>
> When and why do we get this? ( All I have is a few 'create table's and
> 'exec's )
You're not processing all the results.
Make sure that you always call dbresults() in a loop until it returns
NO_MORE_RESULTS, or, if you use CTlib, that you call ct_results()
until it stops returning CS_SUCCEED.
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@peppler.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com
|