Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello all,

Im trying to access a sql compact database that is stored in a mobile device,from a windows application. I get a path error.

What path should I use to acces it? I have stored the compact db in the device smart card.

Thanks in advance!
Posted
Updated 16-Apr-12 3:36am
v5
Comments
[no name] 16-Apr-12 7:22am    
Magic 8 ball says: "Please post relevant code and error message as crystal ball is in the shop"

1 solution

Depends, I'm afraid. Assuming the device is cradled and connected to the PC, the first thing you need to do if try to access the file from Windows explorer. If you get there, then the address bar will give you a path which should work. If it doesn't then you could try this: http://msmvps.com/blogs/nunoluz/archive/2008/08/15/access-you-windows-mobile-file-system-from-your-pc.aspx[^] - I haven't installed it myself, but it could work.
 
Share this answer
 
Comments
IviKAZAZI 16-Apr-12 9:41am    
I can access it from the explorer,but the connection string to catch the database throws an error.
OriginalGriff 16-Apr-12 10:33am    
How are you using the connection string - show the code fragment, including the actual string.

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