I start programing on Windows Mobile 6.5.
I install VS2008, SDK 6.0 and DTK 6.5.3. Create project (WM 6.0, .NET 3.5) and the is no using System.Data.SqlClient. I System.Data only is Common, SqlTypes.
References are included by creator.
SqlCommand comm = new SqlCommand(sSQL, new SqlConnection(sConn));
Cannot resolve symbol ‘SqlCommand’
Did I miss something? How to connect Sql Server from device? Many examples on internet include this methods.
I have also installed .NET 4.0, 4.5 and VS 2012.



although I dont know what TDK is, you need to download and install sql server ce/compact separately to get the SQLClientCE etc objects:
Windows Desktop
Windows Mobile
FOR WINDOWS MOBILE USE INSTALL THE SECOND LINK DOWNLOAD!
Be aware that Windos Mobile 6.5 apps can not be developed with .NET 4 or VS 2012 or VS 2010. Windows Mobile / Embeddded Handheld Programming is only supported up to VS 2008!
After the installation of Sql Server Compact for Mobile, you have a new programs dir “C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5” (see also attached slq_server_compact35_files.txt).
Now, after you started a new SmartDevice project or opened an existing one, you have to ADD references to either System.Data.SqlClient or System.Data.SqlServerCE: