找不到数据库文件 [英] Database File Cannot Be Found

查看:340
本文介绍了找不到数据库文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用数据库表时遇到了麻烦,因为我正在更新它,但是当我查看ComboBox时,更新没有显示出来.

有人告诉我,这可能是因为我的数据库设置为如果较新则复制",所以我将其修改为不复制",但是现在出现如下所示的构建错误...

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 ...

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 ]



消息没有错,我的数据库不在那儿,它有2个文件夹(即,在同一路径上,但没有"\ bin \ Debug"& ;,这就是我的连接字符串所说的,所以程序为什么要尝试查看bin \ Debug文件夹,将其设置为如果较新则复制",我想是它的存储位置吗?!?!?

帮助!!!



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 !!!

推荐答案

必须删除并再次添加数据集作为新的数据源.现在可以工作...
Had to delete & add Dataset again as a new data source. Working now though ...


这篇关于找不到数据库文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆