Click to Rate and Give Feedback
MSDN
MSDN Library

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
SqlCeRemoteDataAccess Class
[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Initializes a new instance of the SqlCeRemoteDataAccess object. For more information about Remote Data Access, see the SQL Server Compact 3.5 Books Online.

Namespace: System.Data.SqlServerCe
Assembly:   System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

C#
public sealed class SqlCeRemoteDataAccess : IDisposable
Visual Basic (Declaration)
Public NotInheritable Class SqlCeRemoteDataAccess _
	Implements IDisposable
Visual Basic (Usage)
Dim instance As SqlCeRemoteDataAccess
Visual C++
public ref class SqlCeRemoteDataAccess sealed : IDisposable
JScript
public final class SqlCeRemoteDataAccess implements IDisposable

SQL Server Compact 3.5 is not currently optimized to serve as a database for Web sites. By default, connections from ASP.NET-connected applications are blocked in SQL Server Compact 3.5. SQL Server Compact 3.5 is optimized for use as an embedded database within applications. Using SQL Server Compact 3.5 as a database for Web sites requires support for multiple users and concurrent data changes. This can cause performance problems. Therefore, these scenarios are not supported. Other editions of SQL Server 2005, including SQL Server 2005 Express Edition, are optimized to serve as a database for Web sites.

SQL Server Compact 3.5 can be used with ASP.NET in application scenarios where ASP.NET is used to create SQL Server Compact 3.5 databases for synchronization scenarios. Use the following code to change the default behavior of Everywhere Edition to work within ASP.NET.

AppDomain.CurrentDomain.SetData("SQLServerEverywhereUnderWebHosting", true)

The following example shows how to initialize a new instance of the SqlCeRemoteDataAccess object.

System..::Object
  System.Data.SqlServerCe..::SqlCeRemoteDataAccess
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker