Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all, i am creating small windows mobile application, can anyone give me connection string for my vb.net mobile application to sql compact edition. it will be great helpful to me.
Posted

Horribly complicated, that:
Data Source=\MyFolder\MyDatebaseName.sdf
 
Share this answer
 
Comments
sameertm 29-Jan-12 14:12pm    
here i don't want to mention the c drive name right ?
OriginalGriff 29-Jan-12 14:22pm    
Mobile doesn't have a concept of drives - it all hangs off "Mobile Device" which acts as the root of the machine.
Espen Harlinn 29-Jan-12 14:17pm    
Not everybody has your vast experience on the subject, the ease the ease with which you just tossed the answer of your head, like so much salad, deserves a 10. As we all enjoy filling out our tax returns at this time of the year - I'll have to deduct 50% from your 10.
OriginalGriff 29-Jan-12 14:24pm    
:laugh:
I've still got one - my phone is a Windows Mobile 5 jobbie - and I have knocked up a few SQLCE based apps for it in the past.
Espen Harlinn 29-Jan-12 14:31pm    
I still have my HTC Windows Mobile 5 too - with tom-tom and microsoft reader, excellent when travveling :) ( Ok, I'll admit that my primary mobile is now an android, and I've ordered a HTC titan - but those are work phones )
an wonder full article on windows mobile andWindows Mobile App Development Part 5: Intro to using SQL Server CE[^]
you can use same connection string in vb also
[or]
If you want the code convert the c# to vb by below link
csharp-to-vb[^]
 
Share this answer
 
Comments
sameertm 29-Jan-12 14:15pm    
i gone through this, but i count't catch his point, he is so advanced, i am beginer :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900