SqlCeCommand objects are not automatically disposed if you use a SqlCeDataAdapter object (824462)
The information in this article applies to:
- Microsoft SQL Server 2000 Windows CE Edition 2.0
- Microsoft SQL Server 2005 Mobile Edition
SYMPTOMSIf you use the SqlCeDataAdapter object to populate a DataSet object, and you do not explicitly call the Dispose method for all the associated SqlCeCommand instances, you may receive the following error message:
Error Code: 8007000E Message: Not enough storage is
available to complete this operation. Minor Err.:0 Source: Microsoft SQL
Server 2000 Windows CE Edition Note The type of SqlCeCommand instances may be select, insert, update, or delete. RESOLUTIONTo resolve this problem, explicitly call the Dispose method for the SqlCeCommand instances when you use SqlCeCommand instances with a SqlCeDataAdapter object.REFERENCES
For additional information about using the SqlCeDataAdapter object to
retrieve data from a SQL Server CE database, click the following article number to view the article in the Microsoft Knowledge Base:
813731
How To: Retrieve data from a SQL Server CE database and save the data in an XML document
Modification Type: | Minor | Last Reviewed: | 11/1/2005 |
---|
Keywords: | kbQuery kbDatabase kbprb kbDataAdapter kbAppDev kbinfo kbCodeSnippet KB824462 kbAudDeveloper |
---|
|