.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2010, 03:39 PM
techman10 techman10 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 10 techman10 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #2  
Old February 10th, 2010, 03:32 AM
_Titan_ _Titan_ is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2010
Location: Earth
Posts: 48 _Titan_ Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 15 h 22 m 2 sec
Reputation Power: 0
About two year ago i worrked with Win mobile 5,6 and i had such trouble.
As i remember, if you use SqlCe.... classes you have to work with SQL Mobile database ( it's not desktop MS SQL Server).

But if you want to connect to the desktop MS SQL database from your PDA you have to:
- create connection between PDA and desktop ( ActiveSync);
- use SqlClient classes ( classes that you use when you create usual desktop application for connection to the SQL Server database).

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Smart Device Connection String


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap