ADODB. Recordset out of memory exception while handling large data

sreenivas avagadda 0 Reputation points
2023-12-12T20:18:39.5+00:00

I have converted my c++ application to 64 bit and tried to load large data using msado15.dll Recordset object.

it gives out of memory error after loading 196224 records with 34 fields in each record ( around 2.3 gb) loaded but then it throws out of memory exception.

To utilize more memory space I have converted everything to 64 bit and make sure all are 64bit dll's but still fails at same as 32 bit version of the application.

Any problem with msado15.dll (64 bit) version of the dll.

Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C++
SQL Server | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2024-01-17T09:54:19.16+00:00

    Are you using server or client side cursor? Client cursor can eat up the memory. See The Significance of Cursor Location and https://learn.microsoft.com/en-us/sql/ado/guide/data/types-of-cursors-ado?view=sql-server-ver16

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.