We have solution based on Windows Mobile 6.5.3 and use System.Data.SqlClient to connect to our database. Everything works fine until...
After upgrade SQL Server from 2005 Workgroup Edition to 2012 standard we have problem with connections.
Real device can connect to SQL server - application works, but we can't debug project on emulators. This is strange why real device can work on that connection string. When we debug using real device we can connect to db while on emulator, we can't
W spend 2 days on searching solutions with no result.
My SQL Connection looks like
Server=xx.xx.xx.xx\InstanceName,1433;Database=dbName;User Id=userName;Password=password;Connect Timeout=30
When we call SqlConnection.Open() exception occurred.
using (var sqlConnection = new SqlConnection(DatabaseConstans.ConnectionString)) { sqlConnection.Open();
We did:
- change default SQL port number to 1433
- cradle emulator - internet browser test - passed
- SQL Browser is working
- we can connect from WinForm application on that connection string
Other settings: