O'Reilly logo

Windows® CE 3.0 Application Programming by Marshall Brain, Nick Grattan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Catalog (Database)

The first task you will need to complete on a SQL Server for Windows CE installation is creating a database, or catalog, as it is known by ADOXCE. You will need to define a connection string that defines the OLEDB provider used to access SQL Server for Windows CE (for example, "Provider=Microsoft.SQLServer.OLEDB.CE.1.0;") and the name of the database to be created (for example, "DataSource=\eVCAdo.db"). Note that in this case the database "eVCAdo.db" will be created in the root folder of the object store—you would probably want to change its location to another folder in your applications.

A Catalog interface can be obtained by creating an "ADOXCE.Catalog" component through a "AdoXNS::_CatalogPtr" smart pointer with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required