MDAC 2.5 SDK - ODBC Programmer's Reference
Appendix F: ODBC Cursor Library


 

Location of Cache

The cursor library caches data in memory and in Windows® temporary files. This limits the size of the result set that the cursor library can handle only by available disk space. A temporary file is used when the data to be cached would cross the segment boundary if inserted at the end of the cursor library cache. Instead, the data to be cached is added in place of the last-saved block of data in the cache. The last-saved block of data is saved in a temporary file. If the cursor library terminates abnormally, such as when the power fails, it can leave Windows temporary files on the disk. These are named ~CTTnnnn.tmp and are created in the current directory.

Note   If the cursor library in Microsoft® Windows NT®/Windows 2000 attempts to cache data in a temporary file on the current directory while the application is running from a read-only share or a compact disk (such as a Microsoft Foundation Class Library sample), SQLSTATE HY000 (General Error-Unable to create a file buffer) will be returned.