请给我答案 [英] Please give me the answer

查看:78
本文介绍了请给我答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我想知道。我如何在visual studio中使用数据库制作exe文件,我想用另一台计算机?我昨天制作了exe文件,我用另一台电脑。但是我打不开因为我用数据库制作了我的窗口项目文件。所以我真的想知道它的答案。

Hi I want to know .How do I make exe file with database in visual studio and I want to use it the other computer?I made exe file yesterday and I use it the other computer.But I cannot open it because I made my window project file with database.So I really want to know the answer for it.

推荐答案

取决于你使用的数据库,以及另一台计算机的位置。



如果您使用单个用户数据库 - SqlCE或SqlLite,可能是Access - 那么您只需要相应的DLL,因此创建一个新的Deployment项目并使用它来传输你的应用程序:它应该包含你需要的所有引用。



如果你使用像SQL Server或MySQL这样的多用户数据库,那么它们的其他PC需要访问适当服务器的本地实例 - 如果他的网络上没有,那么你将不得不让他安装一个:但要注意安装它很复杂,让他跟随其中一个在线指南。然后,您需要获取相应的连接字符串,并将数据库信息传输到服务器。
Depends on what database you used, and where the other computer is.

If you used a single user database - SqlCE or SqlLite, possibly Access - then you just need the appropriate DLLs, so create a new Deployment project and use that to transfer your App: it should include all the references you need.

If you used a multiuser database like SQL Server or MySQL, then they "other" PC needs access to a local instance of the appropriate server - if there is none on his network then you will have to get his to install one: but be aware that it is quite complicated to install, get him to follow one of the many online guides. Then you need to get the appropriate connection string, and transfer your database info to the server.


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

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