Developers community number 1 connection string reference

.NET Compact Framework Data Provider for SQL Server Mobile

This is a .NET Framework Class Library provided by Microsoft.
The class library is contained in the file system.data.sqlserverce.dll.
Coding
Add a reference to the assembly System.Data.SqlServerCe and include the System.Data.SqlServerCe namespace. Instantiate a new SqlCeConnection connection object. Set the connection string and open the connection.


   VB.NET code sample
Imports System.Data.SqlServerCe
Dim myConnection As SqlCeConnection = New SqlCeConnection()
myConnection.ConnectionString = myConnectionString
myConnection.Open()
//execute queries, etc
myConnection.Close()


   C# code sample
using System.Data.SqlServerCe;
SqlCeConnection myConnection = new SqlCeConnection();
myConnection.ConnectionString = myConnectionString;
myConnection.Open();
//execute queries, etc
myConnection.Close();


Description
The System.Data.SqlServerCe namespace is the .NET Compact Framework Data Provider for SQL Server Mobile. The .NET Compact Framework Data Provider for SQL Server Mobile is a collection of classes that is used in the managed development environment to provide smart devices access to SQL Server Mobile databases. With System.Data.SqlServerCe, you can create and manage SQL Server Mobile databases on a smart device and also establish connections to SQL Server databases.
More info about this class library can be found at the Microsoft product page.
Connection Strings
The .NET Compact Framework Data Provider for SQL Server Mobile class library can be used to connect to the following data sources.

To see the available connection options, navigate to the connection strings reference by clicking the data source link.
SQL Server Compact Edition
Additional info or comments on this class library? Want to submit content?

Send an e-mail to
Selected Articles
Copyright © 2010 ConnectionStrings.com   |   All Rights Reserved   |   Powered by CSAS   |   Send feedback, articles, requests and more connection strings here.