I created a simple test that opens a connection of sqlce located on my Desktop P.C. When i start Run the debug mode it throws me that it cant open the connection. I use Pocket P.C 2003 EMULATOR
This is my Test Code on my Smart Device Application.
Connection string
private SqlCeConnection conn = new SqlCeConnection("Data Source=C:\\SDB.sdf");
test Connection
public bool test()
{
try
{
conn.Open();
{}
Status.TEXT = "CONNECTED";
}
catch (Exception ee)
{
throw ee;
Status.TEXT = "NOT CONNECTED";
}
finally
{
if (conn.State == ConnectionState.Open) conn.Close();
}
return true;
}
Is there things need to configure?Thanks in Regards!