Article ID: 317913 - Last Review: April 6, 2004 - Revision: 8.3 BUG: Data Loss When You Use the Save Method with adPersistADTG and adUseServerThis article was previously published under Q317913 On This PageSYMPTOMS
When you save a large recordset to the Advanced Data Tablegram (ADTG) format by using the Microsoft SQL Server OLE DB Provider (SQLOLEDB) and setting the CursorLocation property to adUseServer, some data may be lost when the recordset is reopened from the file. NOTE: This behavior does not occur with Microsoft Data Access Components (MDAC) version 2.5. CAUSE
When you use the Save method to persist the recordset to the file, certain properties are saved with it, including the maximum number of rows. In MDAC 2.6 and MDAC 2.7, this value (DBPROP_MAXROWS) is incorrectly updated.
RESOLUTION
To work around this issue, use any of the following methods:
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce the Problem
REFERENCES
The following MSDN Web site
Save Method
states the following:
http://msdn.microsoft.com/en-us/library/ms808658.aspx (http://msdn.microsoft.com/en-us/library/ms808658.aspx)
For best results, set the CursorLocation property to adUseClient with Save. If your provider does not support all of the functionality necessary to save Recordset objects, the Cursor Service will provide that functionality.
For more information about rows and row handles, browse to the following MSDN Web site:
MSDN Library topic "Rows and Row Handles"
For more information about the DBPROP_MAXROWS value, browse to the following MSDN Web site:
http://msdn.microsoft.com/en-us/library/ms719753(VS.85).aspx (http://msdn.microsoft.com/en-us/library/ms719753(VS.85).aspx)
MSDN Library topic "DBPROP_MAXROWS" http://msdn.microsoft.com/en-us/library/ms723104(VS.85).aspx (http://msdn.microsoft.com/en-us/library/ms723104(VS.85).aspx)
| Article Translations
|
Back to the top
