Happosai,

I think your program is not written for scalability.
Today you can solve the problem for x number of rows. Tmo what will happen if y ( >x) number of rows to be returned?

You must rewrite the code to send/get fixed number of rows at all time. This way you can gurantee ur client that ur program will work for ever.

Tamil