I would be most grateful if anybody could help with sql server 2005 compact edition connection string and also when I use imports system.data.sqlserverce I get errors. I am new to mobile developing so I need help badly. Below is what I am trying to do but to no avail.
The SqlServerCe is always underline as error.Code:Imports System.Data Imports System.Data.sqlServerCe Public Class ShiftManagerDB Public Shared Function GetConnected() As SqlServerCe Return New SqlServerCe(GetConnectionString) End Function Public Shared Function GetConnectionString() As String GetConnectionString = "Data source=my documents\ShiftManagerPro.sdf;persist security info=False;" End Function End Class
I am using this class in a windows app that I am coding for mobile.




Reply With Quote