Click here to Skip to main content
15,894,362 members
Home / Discussions / C#
   

C#

 
QuestionLocal database path in csharp Pin
Tunisien8615-Apr-10 0:13
Tunisien8615-Apr-10 0:13 
AnswerRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 0:20
Michel Godfroid15-Apr-10 0:20 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 0:25
Tunisien8615-Apr-10 0:25 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 0:41
Michel Godfroid15-Apr-10 0:41 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 3:49
Tunisien8615-Apr-10 3:49 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 4:16
Michel Godfroid15-Apr-10 4:16 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 4:47
Tunisien8615-Apr-10 4:47 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 5:24
Michel Godfroid15-Apr-10 5:24 
Yes that's the physical path on your PC, but the program will not run on your PC, will it?

The Emulator, or your smart device comes empty: it does not have the .net framework, it does not have SQL CE, it has just the OS, and some manufacturer or Microsoft supplied programs. .Net and SQLCE come in .cab files, supplied by Microsoft. When you copy your program to the emulator or to the the phone, Visual studio creates a deployment package that contains all these files(choosing the right ones for the processor type of your device), and copies this deployment package to the device. The emulator or the smart device will not have access to any files on your pc. So if your database file is stored somewhere on your PC, the emulator will not be able to reach it;
The database file probably does not exist on your PC either, except if you have created it using SQL CE for PC; The only thing that exists is an empty sdf file in the development environment. You've probably created the data connection in the ide, and it's now sitting in the 'server explorer' pane (the left pane in visual studio). Now add this data connection to your project (probably the right pane).
From then on, everything should be automatic. Visual studio will build the packages, select the cab files, copy them to your device, start the remote debugger....
Now, You've probably messed around so long with your project that a lot of the settings are messed up.
Start afresh, create a new project, a new database, and don't use any of the settings from the other project. Follow the tutorial exactly, and try to understand what is happening at each step. Once you have the tutorial running, create another new project, and this time use your specifications and your requirement. Test each step along the way, and if something does not work, check what you have done differently from the tutorial.
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 6:23
Tunisien8615-Apr-10 6:23 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 6:50
Michel Godfroid15-Apr-10 6:50 
GeneralRe: Local database path in csharp Pin
Tunisien8616-Apr-10 0:26
Tunisien8616-Apr-10 0:26 
GeneralRe: Local database path in csharp Pin
Michel Godfroid16-Apr-10 0:50
Michel Godfroid16-Apr-10 0:50 
GeneralRe: Local database path in csharp Pin
Tunisien8616-Apr-10 0:54
Tunisien8616-Apr-10 0:54 
AnswerRe: Local database path in csharp Pin
Tunisien8619-Apr-10 5:15
Tunisien8619-Apr-10 5:15 
Questionconvert vb.net to c# Pin
toto_201014-Apr-10 23:24
toto_201014-Apr-10 23:24 
AnswerRe: convert vb.net to c# Pin
OriginalGriff14-Apr-10 23:30
mveOriginalGriff14-Apr-10 23:30 
GeneralRe: convert vb.net to c# Pin
toto_201014-Apr-10 23:39
toto_201014-Apr-10 23:39 
AnswerRe: convert vb.net to c# Pin
Luc Pattyn14-Apr-10 23:46
sitebuilderLuc Pattyn14-Apr-10 23:46 
GeneralRe: convert vb.net to c# Pin
toto_201015-Apr-10 0:08
toto_201015-Apr-10 0:08 
AnswerRe: convert vb.net to c# Pin
Eddy Vluggen14-Apr-10 23:57
professionalEddy Vluggen14-Apr-10 23:57 
GeneralRe: convert vb.net to c# Pin
toto_201015-Apr-10 0:42
toto_201015-Apr-10 0:42 
GeneralRe: convert vb.net to c# Pin
Eddy Vluggen15-Apr-10 0:45
professionalEddy Vluggen15-Apr-10 0:45 
GeneralRe: convert vb.net to c# Pin
toto_201015-Apr-10 1:11
toto_201015-Apr-10 1:11 
AnswerRe: convert vb.net to c# Pin
Pete O'Hanlon15-Apr-10 2:37
mvePete O'Hanlon15-Apr-10 2:37 
AnswerRe: convert vb.net to c# Pin
thatraja28-Jan-12 5:52
professionalthatraja28-Jan-12 5:52 

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.