Client and Server Environment

Microsoft SQL Server 2005 Compact Edition (SQL Server Compact Edition) relies on several components in the client and server environments to exchange data between a device and an instance of Microsoft SQL Server.

The following illustration shows the relationships among the different client and server components.

Client and server environment

Client Environment

The client environment is made up of the application and SQL Server Compact Edition.

Application

The application is developed using the .NET Compact Framework and a Microsoft Visual Studio 2005 language such as Microsoft Visual Basic or Microsoft Visual C#, or by using Microsoft Visual C++ for Devices. For more information, see Developer's Guide (SQL Server Compact Edition).

SQL Server Compact Edition

SQL Server Compact Edition includes tools for setup, configuration, connectivity, and data access and modification; a query processor; a database storage engine; and programming APIs used to develop applications that access SQL Server Compact Edition data. It also includes:

  • SQL Server Compact Edition Database Engine
    The SQL Server Compact Edition Database Engine manages the SQL Server Compact Edition data store on supported devices. The Database Engine can track all database records that are inserted, updated, or deleted by maintaining a small amount of change tracking information with each record. The tracking functionality is enabled when you use one of the two connectivity solutions: replication or remote data access (RDA).
  • SQL Server Compact Edition Client Agent
    The SQL Server Compact Edition Client Agent is the primary component for connectivity on the supported devices. It implements the following custom SQL Server Compact Edition objects:
    • Replication object
    • RemoteDataAccess object
    • Engine object
      By using these objects in your application, you can programmatically control connections to SQL Server.

Server Environment

The server environment is made up of SQL Server Compact Edition Server Agent, Microsoft Internet Information Services (IIS), and SQL Server.

SQL Server Compact Edition Server Agent

The SQL Server Compact Edition Server Agent handles the HTTP requests made by the SQL Server Compact Edition Client Agent. The SQL Server Compact Edition Server Agent connects to SQL Server and returns the data and schema information to the SQL Server Compact Edition Client Agent through HTTP.

Additional SQL Server connectivity components are involved in this process. They are also located on the computer that runs IIS, although they are not shown in the previous illustration. For more information about connecting clients and servers by using RDA or replication, see Managing Connectivity (SQL Server Compact Edition).

IIS

IIS provides integrated Web server capabilities. Organizations of all sizes use IIS to host and manage Web pages on the Internet or on their intranet, to host and manage FTP sites, and to route news or mail by using the Network News Transport Protocol (NNTP) and the Simple Mail Transfer Protocol (SMTP).

When used with SQL Server Compact Edition, IIS provides the protocol by which devices can connect to servers for transferring and exchanging data by using RDA or replication technologies.

Microsoft SQL Server

SQL Server is a set of components that work together to meet the data storage and analysis needs of the largest Web sites and enterprise data processing systems. It includes relational data management, data warehousing, and business intelligence components.

SQL Server Compact Edition supports familiar SQL syntax and provides a development model and API consistent with SQL Server 2000 and later versions.

See Also

Concepts

Configuring and Securing the Server Environment

Other Resources

Installing SQL Server Compact Edition

Help and Information

Getting SQL Server Compact Edition Assistance