Problem with TMSQuery Response
Posted: Tue 14 Oct 2008 17:29
I use SDAC 4.30.012 with Sql Server 2000
I have a problem with very large table.
i loop using Tmsquery withthis SQL
select IdPratica, stato, b.ImportoSAL, b.Id From CaricamentoPratiche a, GestioneMutui b
WHERE (a.barcode = b.bar_code) and (b.Duplicato = 'A')
and b.FilialeGaranzia = :pFilialeGaranzia and b.Garanzia = :pGaranzia
ORDER BY ImportoSAL DESC
the code used is
tmsquery.Close;
tmsquery.ParamByName(pFilialeGaranzia).AsString := test1;
tmsquery.ParamByName(pGaranzia).AsString := test2;
tmsquery.prepare;
tmsquery.open;
i retrieve only 3 (on 420 iteration) row and after the row is empty.
If i debug the program it work fine!!
Is It a timing -problem ?
If yes the correct parameter on tmsquery ??
I have a problem with very large table.
i loop using Tmsquery withthis SQL
select IdPratica, stato, b.ImportoSAL, b.Id From CaricamentoPratiche a, GestioneMutui b
WHERE (a.barcode = b.bar_code) and (b.Duplicato = 'A')
and b.FilialeGaranzia = :pFilialeGaranzia and b.Garanzia = :pGaranzia
ORDER BY ImportoSAL DESC
the code used is
tmsquery.Close;
tmsquery.ParamByName(pFilialeGaranzia).AsString := test1;
tmsquery.ParamByName(pGaranzia).AsString := test2;
tmsquery.prepare;
tmsquery.open;
i retrieve only 3 (on 420 iteration) row and after the row is empty.
If i debug the program it work fine!!
Is It a timing -problem ?
If yes the correct parameter on tmsquery ??