Click here to Skip to main content
15,892,059 members

Database File Cannot Be Found

Gary Heath asked:

Open original thread
I have been having trouble with a Database Table, in that I was updating it, yet when I looked in the ComboBox, the update wasn't showing up.

I have been told that it is probably because my Database was set to "Copy if Newer", so I have amended it to "Do Not Copy" but I am now getting a Build Error as follows ...

VB
The database file cannot be found. Check the path to the database. [ Data Source = j:\Users\Gary\Documents\Visual Studio 2010\Projects\KA League Cup\KA League Cup\bin\Debug\KALC.sdf ]


The message isn't wrong, my database is not there, it is 2 Folders back (i.e. on the same path but without the "\bin\Debug" & that is what my Connection String says, so why is the program trying to look into the bin\Debug folder, which I guess is where it was stored when it was set to "Copy if Newer" ?!?!?

Help !!!
Tags: Visual Basic, SQL Server CE, SQL Server

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



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