I'm trying to connect to a database and am using the emulator (windows mobile 5 r2) could someone tell me what i'm doing wrong? I've also tried using the connection string in the properties of the datasource..
"Data Source=C:\Users \Adam\Documents \Visual Studio 2008\Projects\i nventoryProgram \inventoryProgr am\invDB.sdf"
"Data Source=C:\Users \Adam\Documents \Visual Studio 2008\Projects\i nventoryProgram \inventoryProgr am\invDB.sdf"
Code:
Dim conn = New SqlCeConnection("Data Source = invDB.sdf")
Try
conn.Open()
Catch ex As SqlCeException
MsgBox(ex.Message)
End Try
Comment