System.Data.SqlServerCe Namespace

The System.Data.SqlServerCe namespace is the managed data provider for SQL Server Compact 3.5 SP1. This namespace is a collection of classes that provide access to SQL Server Compact 3.5 SP1 databases. By using System.Data.SqlServerCe, you can create, manage, and synchronize SQL Server Compact 3.5 SP1 databases from a smart device or a computer.

The following features are available for creating SQL Server Compact 3.5 SP1 desktop applications.

  • Support for the System.Transaction.TransactionScope class.

  • SQL Server Compact 3.5 SP1 provider for the Entity Framework (System.Data.SqlServerCe.Entity.dll).

  • Support for Visual C++ Express Edition and Visual Basic Express Edition application development in Visual Studio 2008.

  • Support for synchronizing data by using Sync Services for ADO.NET.

ResultSetEnumeratorAn enumerator that can be used to iterate through a collection of records in a ResultSet object. The ResultSetEnumerator is not designed to be used directly from within your code. You will get more functionality by working directly with the SqlCeResultSet object.
ResultSetViewImplements data binding interfaces and provides a bridge between user interface controls and the SqlCeResultSet.
SqlCeChangeTrackingProvides the tracking functions needed by Sync Framework providers.
SqlCeCommandRepresents an SQL statement to execute against a data source.
SqlCeCommandBuilderProvides a means of automatically generating single-table commands used to reconcile changes made to a DataSet with the associated database. This class cannot be inherited.
SqlCeConnectionRepresents an open connection to a SQL Server Compact 3.5 SP1 data source.
SqlCeDataAdapterRepresents a set of data commands and a database connection that are used to fill the DataSet and update the data source.
SqlCeDataReaderProvides a way of reading a forward-only stream of data rows from a data source. This class cannot be inherited.
SqlCeEngineRepresents the properties, methods, and other objects of the SQL Server Compact 3.5 SP1 Engine object. This class cannot be inherited.
SqlCeErrorCollects information relevant to a warning or error returned by the data source. This class cannot be inherited.
SqlCeErrorCollectionCollects all errors generated by the .NET Compact Framework Data Provider for SQL Server Compact 3.5 SP1. This class cannot be inherited.
SqlCeExceptionThe exception thrown when the underlying provider returns a warning or error from a SQL Server Compact 3.5 SP1 data source. This class cannot be inherited.
SqlCeFlushFailureEventArgsEncapsulates event arguments for the FlushFailure event.
SqlCeInfoMessageEventArgsProvides data for the InfoMessage event. This class cannot be inherited.
SqlCeInvalidDatabaseFormatExceptionThrows an exception from SQL Server Compact data source when you try to open the database file of an older or newer version of SQL Server Compact.
SqlCeLockTimeoutExceptionThis exception is thrown if the lock timeout has been reached.
SqlCeParameterRepresents a parameter to a SqlCeCommand and, optionally, its mapping to a DataSet column. This class cannot be inherited.
SqlCeParameterCollectionCollects all parameters relevant to a SqlCeCommand as well as their respective mappings to DataSet columns.
SqlCeProviderFactoryRepresents a set of methods for creating instances of a provider's implementation of the data source classes.
SqlCeRemoteDataAccessInitializes a new instance of the SqlCeRemoteDataAccess object. For more information about Remote Data Access, see Using Remote Data Access (RDA).
SqlCeReplicationInitializes a new instance of the SqlCeReplication object. For more information about SQL Server replication, see the SQL Server Books Online. For more information about merge replication with SQL Server Compact 3.5 SP1, see the SQL Server Compact 3.5 SP1 Books Online.
SqlCeResultSetAn updateable, scrollable, and bindable cursor.
SqlCeRowUpdatedEventArgsProvides data for the RowUpdated event.
SqlCeRowUpdatingEventArgsProvides data for the RowUpdating event.
SqlCeTransactionRepresents an SQL transaction to be made at a data source. This class cannot be inherited.
SqlCeTransactionInProgressExceptionOccurs when an attempt is made to modify a database while another transaction is in progress.
SqlCeUpdatableRecordRepresents a row of updatable values from the data source. A SqlCeResultSet object contains one or more UpdatableRecords.
SqlMetaDataSpecifies and retrieves metadata information from parameters and columns retrieved from a database. This class cannot be inherited.

OnStartTableDownloadA user-defined delegate to the event that fires at the start of downloading table changes from the server.
OnStartTableUploadA user-defined delegate to the event that fires at the start of uploading table changes to the server.
OnSynchronizationA user-defined delegate that consumes the ongoing synchronization events reported during the reconciler work.
SqlCeFlushFailureEventHandlerThe delegate that must be implemented to listen for FlushFailure events.
SqlCeInfoMessageEventHandlerRepresents the method that will handle the InfoMessage event of a SqlCeConnection.
SqlCeRowUpdatedEventHandlerRepresents the method that will handle the RowUpdated event of a SqlCeDataAdapter.
SqlCeRowUpdatingEventHandlerRepresents the method that handles the RowUpdating event of a SqlCeDataAdapter.

AddOptionDetermines whether the subscription will be added to an existing database or whether a new database will be created when the subscription is added.
CommitModeWhen passed to the Commit function, the CommitMode specifies when the commit occurs.
DbInsertOptionsSpecifies the options to use when using the System.Data.SqlServerCe.SqlCeResultSet.Insert method.
DbRangeOptionsSpecifies the options used by the SetRange method when specifying the index range over which to seek.
DbSeekOptionsOptions that specify how the Seek method will seek on an index.
DropOptionSpecifies whether to leave or delete the database when dropping a subscription using the DropSubscription method.
ExchangeTypeSpecifies whether data is merged up to the Publisher only, or merge in both directions between the Publisher and the Subscriber.
NetworkTypeSpecifies the network protocol to use when setting the DistributorNetwork or PublisherNetwork properties of the SqlCeReplication object.
PurgeTypeContains values specifying the type of data deletion (purging) to perform.
RdaBatchOptionSpecifies whether or not the rows associated with the Push should be batched together in a single transaction.
RdaTrackOptionSpecifies whether or not the table being pulled to the device is tracked.
RepairOptionWhen passed to the Repair method, RepairOption specifies the type of database repair to perform.
ResultSetOptionsSets options for the ResultSetEnumerator.
ResultSetSensitivitySets the sensitivity of the ResultSetEnumerator.
SecurityTypeSpecifies the mode of security to use when connecting to the Publisher or Distributor during Replication.
SnapshotTransferTypeControls how snapshot files are transferred from the Distributor to the computer running IIS.
TrackingKeyTypeContains values specifying the type of key identification when tracking is enabled.
TrackingOptionsDetermines which operations on a table are tracked.
ValidateTypeSpecifies the type of data validation to perform.
VerifyOptionThese options determine the level of database verification to use.