
February 9th, 2010, 03:39 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 10
Time spent in forums: 5 h 1 m 37 sec
Reputation Power: 0
|
|
|
Smart Device Connection String
Hi,
I'm currently working on a project, and I cannot figure out how to establish communication with a smart device application and a SQL Server database.
Here is everything I am using. My development environment is Microsoft Visual Studio 2008 w/ SP1. Within this environment, I am using .net Compact Framework 3.5 to write a C# smart device application for a Windows Mobile 6 deployment.
Right now I am testing my code using the emulator, but this code will ultimately be run on an actual PDA and the intention is for this PDA to communicate with a remote SQL Server 2008 database. I don't know how to write the connection string to accomplish this.
This is what I understand the code should look like:
SqlCeConnection myConnection = new SqlCeConnection();
myConnection.ConnectionString = "";
myConnection.Open();
Basically I need very specific instructions of how to put together the connection string. Also I would like to reference the location of the database by server instead of by using drive letters\directories.
I am essentially a beginner at this stuff and any help would be greatly appreciated.
Thanks and I hope someone will be able to help me solve this.
|