troubleshooting Question

SQL Server freeing memory

Avatar of xstar
xstar asked on
System Programming
1 Comment1 Solution296 ViewsLast Modified:
Hi,

I am using CDatabase, CRecordset through ODBC to connect to SQL server 2000. When I tried to query the database for a large amount of records, I find that the SQL server takes up a lot of memory. The SQL server does not free the memory after CDatabase::Close or CRecordset::Close.  It manages it own cache and after I restart the SQL service, the memory is then cleared. How do I allow the SQL server to free the memory once my query is done?

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros