SqlCeRemoteDataAccess Constructor (String, String)

Initializes a new instance of the SqlCeRemoteDataAccess object and configures it for anonymous access to Microsoft Internet Information Services (IIS).

Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)

public SqlCeRemoteDataAccess (
	string internetUrl,
	string localConnectionString
public SqlCeRemoteDataAccess (
	String internetUrl, 
	String localConnectionString
public function SqlCeRemoteDataAccess (
	internetUrl : String, 
	localConnectionString : String



The URL used to connect to the SQL Server Compact 3.5 SP1 Server Agent.


The OLE DB connection string for the SQL Server Compact 3.5 SP1 database.

This constructor initializes the InternetUrl and LocalConnectionString properties. The rest of the properties are assigned their default values. You then can change the value for any property.

// Connection String to the SQL Server.
string rdaOleDbConnectString  = "Provider=sqloledb; Data Source=MySqlServer;Initial Catalog=Northwind; " +
                                "User Id=username;Password = <password>"; 
// Initialize RDA Object.
SqlCeRemoteDataAccess rda = null;

try {
    //Try the Pull Operation.
    rda = new SqlCeRemoteDataAccess();
    rda.InternetLogin          = "MyLogin";
    rda.InternetPassword       = "<password>";
    rda.InternetUrl            = "<http://www.northwindtraders.com/sqlce/sscesa35.dll>";
    rda.LocalConnectionString  = @"Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0;Data Source=\ssce.sdf";
        "Select * from Employees", 
        RdaTrackOption.TrackingOnWithIndexes , 
catch(SqlCeException) {
    //Use you own Error Handling Routine.
finally {
    //Dispose of the RDA Object.

Development Platforms

Windows Vista, Windows Mobile 5.0, Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Mobile 2003 for Pocket PC, Windows CE 5.0
Version Information
.NET Framework and NET Compact Framework
Supported in 3.5
.NET Framework
Supported in 3.0
.NET Compact Framework and .Net Framework
Supported in 2.0