Sunday, January 29, 2012

Desktop IP for Windows CE or Windows Mobile when working without network

My Environment
OS: Windows 7
DB Server: SQL Server 2008 R2 (Default Instance)
Connectivity through: Windows Mobile Device Center
Application Developed in: Visual Studio 2008



For Windows CE
Desktop IP: 192.168.55.100
Device IP: 192.168.55.101

For Windows Mobile
Desktop IP: 169.254.2.2
Device IP: 169.254.2.1



Connection string inside my
Windows CE Project
"Data Source=192.168.55.100,1433;Initial Catalog=MyDB;Persist Security Info=True;User ID=sa;Password=MyPassword;"


Windows Mobile Project
"Data Source= 169.254.2.2,1433;Initial Catalog=MyDB;Persist Security Info=True;User ID=sa;Password=MyPassword;"