Hi,
I have this conversion program which requires alot of queries.
after opening and closing many many times I get this error:

Key Voilation
Sybase ODBC Driver Aduptive Server Anywhere General Error:
Resourse Governer for Prepared statement exceeded


this is what I do every time

TQuery* q = new TQuery(this);
q->DatabaseName = "DOCNET";
q->SQL->Add("select * from SMSDBA.R_LINE_DEFAULT ");
q->RequestLive = true;
q->Prepare();
q->Open();


and then I have this at the end
q->Close();
q->UnPrepare();
delete q;

do you have any idea what is wrong?