Click here to Skip to main content
15,914,010 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Android Hidden Pin
Vimalsoft(Pty) Ltd1-Mar-11 1:41
professionalVimalsoft(Pty) Ltd1-Mar-11 1:41 
GeneralRe: Android Hidden Pin
MsmVc1-Mar-11 1:44
MsmVc1-Mar-11 1:44 
Questionhow to Mark and Pick row number 1 on DataGrid when the form load ? Pin
goldsoft23-Feb-11 19:10
goldsoft23-Feb-11 19:10 
QuestionHow to upload zip file in j2me for Lava mobile Pin
pramod.singh.marshal23-Feb-11 1:07
pramod.singh.marshal23-Feb-11 1:07 
QuestionSending SMS in PDu mode programatically in VB.Net Pin
JayKhatri21-Feb-11 15:48
JayKhatri21-Feb-11 15:48 
AnswerRe: Sending SMS in PDu mode programatically in VB.Net Pin
a.mlw.walker3-Jul-11 9:06
a.mlw.walker3-Jul-11 9:06 
Questionwhich modem is better for sending sms via AT commands Pin
aeman21-Feb-11 5:35
aeman21-Feb-11 5:35 
QuestionHow to connect to sql server 2008 through windows mobile 6 Pin
daneshkohan19-Feb-11 23:28
daneshkohan19-Feb-11 23:28 
hello guys...

Im trying to build a windows mobile application using visual studio 2008,windows mobile 6 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:


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



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 windows mobile 6 . 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 windows mobile 6 Pin
Richard MacCutchan20-Feb-11 3:00
mveRichard MacCutchan20-Feb-11 3:00 
AnswerRe: How to connect to sql server 2008 through windows mobile 6 Pin
shrikant yadav 23520-Feb-11 20:46
shrikant yadav 23520-Feb-11 20:46 
QuestionAlternate Blackberry webworks sdk for VS 2008 download site Pin
Anoop Brijmohun17-Feb-11 19:46
Anoop Brijmohun17-Feb-11 19:46 
AnswerRe: Alternate Blackberry webworks sdk for VS 2008 download site Pin
Richard MacCutchan20-Feb-11 3:01
mveRichard MacCutchan20-Feb-11 3:01 
GeneralRe: Alternate Blackberry webworks sdk for VS 2008 download site Pin
Anoop Brijmohun20-Feb-11 19:59
Anoop Brijmohun20-Feb-11 19:59 
Questionhow to check if there is connection to my WebService ? Pin
goldsoft15-Feb-11 18:56
goldsoft15-Feb-11 18:56 
QuestionAnyone know of a commercial zip/unzip command line utility for CE 6 (Arm)? Pin
Joe Woodbury14-Feb-11 12:29
professionalJoe Woodbury14-Feb-11 12:29 
QuestionAndroid, How to scale text to fit into a predefined rect using a canvas not a textview. Pin
timverhoeven14-Feb-11 2:01
timverhoeven14-Feb-11 2:01 
QuestionSend Multiple sms Pin
MsmVc6-Feb-11 23:27
MsmVc6-Feb-11 23:27 
AnswerRe: Send Multiple sms Pin
PavanPareta7-Feb-11 19:24
PavanPareta7-Feb-11 19:24 
GeneralRe: Send Multiple sms Pin
MsmVc7-Feb-11 20:23
MsmVc7-Feb-11 20:23 
AnswerRe: Send Multiple sms Pin
Deflinek10-Feb-11 0:52
Deflinek10-Feb-11 0:52 
GeneralRe: Send Multiple sms Pin
MsmVc10-Feb-11 18:00
MsmVc10-Feb-11 18:00 
GeneralRe: Send Multiple sms Pin
JudyL_MD11-Feb-11 5:08
JudyL_MD11-Feb-11 5:08 
GeneralRe: Send Multiple sms Pin
MsmVc11-Feb-11 17:18
MsmVc11-Feb-11 17:18 
GeneralRe: Send Multiple sms Pin
MsmVc13-Feb-11 19:31
MsmVc13-Feb-11 19:31 
GeneralRe: Send Multiple sms Pin
JudyL_MD14-Feb-11 15:28
JudyL_MD14-Feb-11 15:28 

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.