Re: memory issue using ADO to query Excel
From: arno (schoblochr_at_azoppoth.at)
Date: 06/16/04
- Next message: Frank_Hamersley: "Re: Updating range properties is so sloooow!!!"
- Previous message: mowen: "Publish Excel sheets automaticly!"
- In reply to: Dennis: "memory issue using ADO to query Excel"
- Next in thread: Jamie Collins: "Re: memory issue using ADO to query Excel"
- Reply: Jamie Collins: "Re: memory issue using ADO to query Excel"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Jun 2004 09:34:58 +0200
Hi dennis,
> I clear my recordset variable after each query. I
make sure that you set _all_ objects to nothing when you finished your code!
Esp. the connection string.
If you have many queries with one connection string then make sure that you
open the connection only once, run your queries and close the connection.
This is a lot faster the open-query-close-open-query-close...
After a while and lots of queries your Excel will be slow and using a lot of
memory anyway. However, you can work much longer without troubles when you
do what I mentioned.
regards
arno
- Next message: Frank_Hamersley: "Re: Updating range properties is so sloooow!!!"
- Previous message: mowen: "Publish Excel sheets automaticly!"
- In reply to: Dennis: "memory issue using ADO to query Excel"
- Next in thread: Jamie Collins: "Re: memory issue using ADO to query Excel"
- Reply: Jamie Collins: "Re: memory issue using ADO to query Excel"
- Messages sorted by: [ date ] [ thread ]