Click here to Skip to main content
15,902,492 members
Home / Discussions / Mobile
   

Mobile

 
Questionusb driver for microcontroller.? Pin
Mir_As22-Sep-09 4:22
Mir_As22-Sep-09 4:22 
AnswerRe: usb driver for microcontroller.? Pin
hande5425-Oct-09 1:31
hande5425-Oct-09 1:31 
QuestionI want to create my own SMS-app for my mobile, nokia-phone Pin
luke.orun21-Sep-09 9:15
luke.orun21-Sep-09 9:15 
AnswerRe: I want to create my own SMS-app for my mobile, nokia-phone Pin
HimanshuJoshi21-Sep-09 23:31
HimanshuJoshi21-Sep-09 23:31 
QuestionWakeup notification Pin
Sunshine Always21-Sep-09 0:57
Sunshine Always21-Sep-09 0:57 
QuestionPopup Menu string in soft key Pin
Muthiahr100016-Sep-09 7:32
Muthiahr100016-Sep-09 7:32 
Questiontouch global hooking/subclassing Windows Mobile Pin
elad210916-Sep-09 1:35
elad210916-Sep-09 1:35 
QuestionHow to connect to sql server 2008 through pocket pc 5.0 Pin
Felong15-Sep-09 11:35
Felong15-Sep-09 11:35 
hello guys...

Im trying to build a windows mobile application using visual studio 2008,Pocket pc 5.0 using C# and sql server 2008.
all programs are on the same laptop.

I almost had everything right except i couldnt connect to the database through the pocket pc.

Here is what i've done so far:

SQL SERVER:
-I enabled tcp/ip connection -> cleared all dynamic ip adress and set the port to 1433. i also enabled the name pipes.
-I enable the sql port through windows firewall.(Control Panel->Security->allow aprogram through windows fire wall->add port

Visual Studio:
-New Project-> smart Device project-> device application
added in the form_load the following code:

<br />
string conStr = "Data source = Computer name\1433; intial catalog = "database name"; integrated security = true";<br />
sqlConnection sqlCon = new sqlConnection(conStr);<br />
sqlCon.Open();//this is where i get "SqlException"<br />



I also tried the followin connection strings

i- conStr = "Data source = Computer name; intial catalog = "database name"; integrated security = true";
ii-conStr = "Data source = C:\\"path of the .sdf file on my computer";
iii- conStr = Data source = ip address\1433; intial catalog = "database name"; integrated security = true";

Device manager:
i installed virtual pc and windows mobile center;
openned device manager from visual studio, right click on pocket pc 5.0->Connect;
when connected i configured it to enable NE2000 PCMCIA adapter and use attached network card
i then cradel it and it connected well with the DMA.and in windows mobile center it showed connected.

now when i run the application(F5); i get an sqlException when openning the connection

this is a headache but i need a soluttion.

i have a some additional questions:

1- can i connect directly to sql server database engine and access the database(which isent compact).mdf file.
or cant i because pocket pc only connects to sql server compact edition database(.sdf)

2- Am i suppose to install sql compact on the pocket pc, when i run my application, i find it inside the pocket pc with the database and my application solution

3- is it impossible to connect to sql server 2008 directly through a pocket pc. do i need a websrever, web service, replication, IIS....

im really stock at this point. i have no idea what to do or try next.

i'm findig it impossible connectin to sql server 2008.

PLease Helpppp!!!

thank you anyway..
AnswerRe: How to connect to sql server 2008 through pocket pc 5.0 Pin
Felong19-Oct-09 9:57
Felong19-Oct-09 9:57 
QuestionRemote accessing of Win Ce5.0 device Pin
obalesu15-Sep-09 0:24
obalesu15-Sep-09 0:24 
AnswerRe: Remote accessing of Win Ce5.0 device Pin
Sunshine Always21-Sep-09 0:59
Sunshine Always21-Sep-09 0:59 
GeneralRe: Remote accessing of Win Ce5.0 device Pin
obalesu21-Sep-09 1:57
obalesu21-Sep-09 1:57 
QuestionDeveloper conference?? Any idea about this? Pin
stevensj214-Sep-09 23:43
stevensj214-Sep-09 23:43 
QuestionActive scan on a WiFi NIC, including flush of old scan results - how ? Pin
amitalonm10-Sep-09 22:42
amitalonm10-Sep-09 22:42 
QuestionProblem While Running Blackberry Application... Pin
shaina22318-Sep-09 19:28
shaina22318-Sep-09 19:28 
AnswerRe: Problem While Running Blackberry Application..(plz read this ) Pin
shaina22318-Sep-09 19:31
shaina22318-Sep-09 19:31 
QuestionHow to stream an FLV video on a device application Pin
Vivek Vijayan7-Sep-09 5:55
Vivek Vijayan7-Sep-09 5:55 
QuestionMobile Application Pin
Learpheal3-Sep-09 16:15
Learpheal3-Sep-09 16:15 
AnswerRe: Mobile Application Pin
PavanPareta3-Sep-09 20:54
PavanPareta3-Sep-09 20:54 
QuestionDigital Citation For Windows Mobile Pin
lancerta3-Sep-09 11:22
lancerta3-Sep-09 11:22 
AnswerRe: Digital Citation For Windows Mobile Pin
jzonthemtn23-Sep-09 3:43
jzonthemtn23-Sep-09 3:43 
QuestionCannot call Camera function [modified] Pin
ahzarmokhli2-Sep-09 19:33
ahzarmokhli2-Sep-09 19:33 
AnswerRe: Cannot call Camera function Pin
Joel Ivory Johnson7-Sep-09 3:01
professionalJoel Ivory Johnson7-Sep-09 3:01 
QuestionIs this a Bug in Compact Framework 2.0 ? (C#, DateTime + TimeSpan) [modified] Pin
KingLooie2-Sep-09 1:39
KingLooie2-Sep-09 1:39 
AnswerRe: Is this a Bug in Compact Framework 2.0 ? (C#, DateTime + TimeSpan) Pin
fergara2-Sep-09 2:22
fergara2-Sep-09 2:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.