Remote access to mobile databases
Home | Products | Buy | Support | Downloads | Contacts | Forum | Blog Search

open all | close all

DesktopSqlCe Manual

Manual | Knowledge Base | Download | Buy | License | Forum | FAQ

Connecting to a database

There are two options when connecting to a remote device: you can either use the ADO .NET Provider classes or the low-level classes.

ADO .NET Provider

Establishing a connection is a simple matter of creating a SqlCeConnection object and opening it with the correct connection string.

Low Level

When using the low level classes, connecting to a device database is a two-step process:

  1. Create a Pipe object and open it using the desired connection medium (RAPI or TCP/IP).
  2. Create and open a SqlCeDatabase object using the open Pipe.

Previous: Included samples Next: .NET Reference