I create a number of Global ADO Commands on Application Load. Every 30 seconds I use these to recreate Recordsets (Most of the RS are not global, so are recreated each time instead of just being refreshed/requeried). Those that are Global in scope can just be refreshed.
My question is, is what I'm doing correct, or should I close and recreated the Command Objects every 30 seconds. Currently I keep about 20 ADO Command Objects constantly active - these have the same connection and because I am not closing and reopening them each time I have Prepared set to True.
The other consideration is that for some of the Commands the parameters never change, but for others the Comand is called multiple times each 30 refresh with different parameters.
Thank you Neon.
My question is, is what I'm doing correct, or should I close and recreated the Command Objects every 30 seconds. Currently I keep about 20 ADO Command Objects constantly active - these have the same connection and because I am not closing and reopening them each time I have Prepared set to True.
The other consideration is that for some of the Commands the parameters never change, but for others the Comand is called multiple times each 30 refresh with different parameters.
Thank you Neon.
Comment