re 1: You should use Visual Studio SP1 with SQL Compact Edtion 3.1.
For detailed upgrade guide see
http://blogs.msdn.com/stevelasker/archive/2007/08/07/configuring-visual-studio-2
005-for-use-wtih-sql-server-2005-compact-edition.aspx
re 2: You cannot connect to a sdf file (database file) on your device from a
desktop app.
Your best bet is to use RAPI to copy the device database to your desktop PC.

Signature
Erik Ejlskov Jensen, Mobile App Dev MCTS
Check out my SQL Compact blog at
http://erikej.blogspot.com
> Hi to all!
>
[quoted text clipped - 25 lines]
>
> Waldemar
Waldemar - 13 Oct 2007 20:06 GMT
Thank you Erik for this nice answer.
1. I will read this :) I think this answers my question
> re 2: You cannot connect to a sdf file (database file) on your device from a
> desktop app.
> Your best bet is to use RAPI to copy the device database to your desktop PC.
2. But how do the Visual Studio do this? They make a connection string and
then they really connect every time to the database located on the mobile
device. And I do also think, that they do not do any copy, because my file is
slightly big (10 MB) and this takes normally some time to copy this from
mobile to my desktop
Thank you and have a nice weekend
Waldemar