Condividi tramite


SqlCeRemoteDataAccess.LocalConnectionString Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Specifies the OLE DB connection string for the SQL Server CE database on the Microsoft Windows CE .NET-based device.

  [Visual Basic]
  Public Property LocalConnectionString As String
[C#]
public string LocalConnectionString {get; set;}
[C++]
public: __property String* get_LocalConnectionString();
public: __property void set_LocalConnectionString(String*);
[JScript]
public function get LocalConnectionString() : String;
public function set LocalConnectionString(String);

Property Value

The OLE DB connection string for the SQL Server CE database.

Remarks

The LocalConnectionString property must contain the OLE DB connection string for the SQL Server CE database on the Microsoft Windows CE-based device.

The following connection properties are supported.

Property Description
Provider Optional. Indicates the name of the data source provider. If the provider is not specified, Microsoft.sqlserver.oledb.ce.2.0 is assumed.
Data source Required. Indicates the name of the database. By convention, specify the .sdf file extension of your SQL Server CE databases.
SSCE:Database Password Optional. Indicates the database password. This property must be specified if the database was created with a password.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeRemoteDataAccess Class | SqlCeRemoteDataAccess Members | System.Data.SqlServerCe Namespace

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.