sql ce数据库 [英] sql ce database

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

问题描述

我正在使用VB.net 2010和sql ce数据库。当我在客户端计算机上发布和安装我的应用程序时,我找不到我的数据库。该应用程序可以工作,但我想用一个包含更新数据的数据库替换已部署的数据库。问题是,我似乎无法找到
我部署的dabase。客户端计算机正在运行Windows 10.如果我搜索我的数据库,则无法找到它。帮助?


谢谢。


解决方案

嗨Bob,

 

根据您的描述,我想问题是您的安装项目不包括您的数据库文件。我不知道您使用ClickOnce或安装项目安装项目的方式是什么?

1,如果使用ClickOnce的方式,也许您拥有的数据库不在您的项目中,请检查它并在安装项目中移动数据库:



2,如果使用安装项目,则可以将数据库文件添加到应用程序文件夹:



然后找到您的数据库文件:



希望它有所帮助!



最诚挚的问候,



斯坦利

I am using VB.net 2010 and sql ce database. When I publish and install my app on a client machine, I can't find my database. The app works but I want to replace the deployed database with one that contains up-dated data. The problem is, I can't seem to locate my deployed dabase. The client machine is running Windows 10. If I do a search for my database, it cannot locate it. Help?

Thanks.

解决方案

Hi Bob,
 
From your description, I guess the issue is that your install project has not including your database file. I have no idea which way do you install your project, with ClickOnce or setup project?
1, If the way is with ClickOnce, maybe the database what you have is not in your project, please check it and move the database in the install project:

2, If you use the setup project, you can add the database files to the application folder:

Then find your database file:

Hope it helps!

Best Regards,

Stanly


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

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