Connect to SQL Server Mobile Edition via VS2005 (Data Provider)
- From: "Martin Priebe" <martin.priebe@xxxxxxxxxx>
- Date: Fri, 22 Feb 2008 09:16:56 +0100
Hi,
I try to connect my application via Data Provider to my SQL Mobile DB.
With the ServerExplorer all works fine.
new Connection - via ActiveSync - Data Provider for SQL Server Mobile
Edition
.... fine !
But now i want to use this in my code.
I have the ConnectionString .. "Data Source = Mobile Device \ .... .sdf"
but how can i change my Data Provider? ('for SQL Server' to 'for for SQL
Server Mobile Edition')
When i use the namespace System.Data.SqlClient the SqlConnection class try
to connect with a "normal" Sql Server 2005 database.
Is there a possibility to fix that problem ?
I only want to use a SqlConnection in my code to connect my application with
the database on my device. (via ActiveSync)
thx a lot
Martin
.
- Prev by Date: 'System.ComponentModel.TypeConverter' is not an attribute class
- Next by Date: what is the differences/limitations between vs2003 and vs2008 for developing mobile application
- Previous by thread: 'System.ComponentModel.TypeConverter' is not an attribute class
- Next by thread: what is the differences/limitations between vs2003 and vs2008 for developing mobile application
- Index(es):
Relevant Pages
|