Introduction

Microsoft® ActiveX® Data Objects (ADO) is a strategic, high-level interface to all types of data. ADO provides consistent, high-performance access to data, whether you are creating a front-end database client or a middle-tier business object using an application, tool, language, or Internet browser. ADO is part of the Microsoft Universal Data Access model, along with OLE DB and Open Database Connectivity (ODBC).

Microsoft® Active Data Objects for the Windows® CE operating system (ADOCE) provides a subset of ADO for Windows CE. ADOCE includes its own internal database provider and enables you to have access to databases stored locally on a Windows CE–based device instead of working with databases stored remotely on desktop computers.

With an ADOCE control, you can develop applications using the same ADO syntax you use for programming on a desktop computer. ADOCE is based on ADO 1.0, with an emphasis on ADO recordset functionality. Most of the new features in ADO 1.5 and later are client/server focused and are not included in ADOCE.

ADOCE requires minimal work to port existing ADO-based code and provides for increased future compatibility. Whenever possible, ADOCE returns the same error values and error strings as ADO, which maintains the separation of errors between OLE DB errors (DB_E_XXX) and native ADO errors (adErrXXX).

The first part of this guide contains information on how to write applications that use ADOCE, while the reference sections provide specific information on syntax and the ADOCE object model. This guide is organized so that you can learn to use the ADOCE control by reading the guide from beginning to end. At the beginning of the guide, you will find general information about the control. The middle of the guide discusses how to use the control in an application and a brief introduction to Structured Query Language (SQL). The end of the guide has information about how to ship an application that uses ADOCE, samples demonstrating the use of the control, and reference guides for ADOCE and SQL.

What's New

Active Data Objects for Windows CE 2.12 now includes support for the enhanced SQL LIKE statement.

The online documentation has been reorganized and updated to facilitate ease of use. The structure of the documentation has changed to closely resemble that of a traditional book. Introductory topics are at the front, and the topics appear in the order that you encounter them when writing an application that uses the ADOCE control. The guide is concluded by a discussion of the samples that ship with ADOCE and references for ADOCE and SQL.

How ADOCE Differs from ADO

ADOCE supports the following ADO objects:

ADOCE does not support the following standard ADO features:

System Requirements

The ADOCE 2.12 release is only available with Windows CE Platform Builder 2.12. 

Platform Support for ADOCE

ADOCE is supported on multiple Windows CE platforms. In order to write an application for a specific platform, you need to install the platform Software Development Kit (SDK) for that platform and make sure the SDK is compatible with the development environment you are using. SDKs are available from the Microsoft web site (see below). ADOCE is supported on the following Windows CE platforms:

Current SDKs for Windows CE–based devices can be downloaded from the Microsoft Windows CE Web site at http://msdn.microsoft.com/cetools/downloads/devkits.asp.

Technical Support

You can find late-breaking updates and technical information in the Readme file included with your product disks or CD.

If you still have a question, Microsoft offers technical support and services ranging from self-help tools to direct assistance with a Microsoft technical engineer.

You will not be charged for a technical support incident when reporting a toolkit bug.

To get information about Microsoft support options and resources

For more information about the Windows CE toolkits and the Windows CE operating system, see the following Web sites:

How to Use This Documentation

This reference is divided into two sections: A Programmer's Guide and a Programmer's Reference. The Programmer's Guide introduces you to the Active Data Objects for Windows CE (ADOCE) programming environment. The Guide covers the tools, controls, and wizards that are specific to the ADOCE toolkit. Accessing the ADOCE Application Programming Interface (API) is also covered in the Guide. The Programmer's Reference covers the language features used to write applications with the ADOCE control and SQL.

To Use the Online Documentation

To find a subject in this document, consult the Contents tab. The structure of the documentation has changed to closely resemble that of a traditional book. Introductory topics appear on the initial portion of the directory tree, and the topics appear in the order that you encounter them when writing an application that uses the ADOCE control. The guide is concluded by a discussion of the samples that ship with ADOCE and references for ADOCE and SQL. You can read this documentation from beginning to end by opening the first topic in the contents and using ALT+DOWN ARROW to move through the topics.

If you cannot find the topic you need in the contents, or if you have a specific keyword you need information on, click the Index tab and enter the keyword in the field. This documentation has been thoroughly indexed to increase ease of use. To find information about a control, object, method, property, or error code, search the index.

To Access the Online Documentation

There are three ways to access theADOCE Online Documentation:

To use Context Sensitive Help

Context Sensitive (F1) help is not supported by Visual Basic for Windows CE or ADOCE. Pressing F1 opens the MSDN library, within which you can navigate to the ADOCE documentation.

Legal Information

Information in this document is subject to change without notice. The example companies, organizations, products, people, and events depicted herein are fictitious. No association with any real company, organization, product, person, or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation.

Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.

© 1999 Microsoft Corporation. All rights reserved.

Microsoft, MS-DOS, MS, Visual Basic, Visual C++, Windows, Windows NT, and ActiveX are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A. and/or other countries.

The names of actual companies and products mentioned herein may be the trademarks of their respective owners.