如何在Windows应用程序中包括数据库以在另一台计算机上安装? [英] How can I include database in an windows application for installing in another computer?

查看:113
本文介绍了如何在Windows应用程序中包括数据库以在另一台计算机上安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ADO.Net开发了一个简单的应用程序.当我在计算机上运行该程序时,它运行良好.但这在我的朋友计算机中不起作用.我的朋友说,发布时必须包括数据库文件.请任何人告诉我如何执行此操作....请告诉我如何解决此问题....

I have made a simple application using ADO.Net. while I run the program in my computer it worked well. But it does not work in my friends computer. My friend says that I must include the database file while publishing. Please anyone tell me how to do this.... Please tell me how to solve the problem....

推荐答案

Prabin PB写道:
Prabin P B wrote:

我的朋友说发布时必须包含数据库文件.

My friend says that I must include the database file while publishing.


不!这是错误的...

您只需要确保使用ADO.NET连接的数据库可用于远程访问即可.数据库服务器应该已启动并且正在运行,并且应该将SQL Server配置为允许远程连接(如果需要,可以使用Google"Surface Area Configuration").


NO! this is wrong...

You just need to make sure that the database that you are connecting using ADO.NET is available for remote access. The database serve should be up and running and the SQL Server should be configured to allow remote connections (google ''Surface Area Configuration'' if needed).


如果希望DB在您的计算机上,则需要确保该服务器可从远程服务器访问.如果要在本地服务器上部署数据库,则可以使用SQL DB脚本在PC上创建新的数据库.为此,请查看它: http://www. firebirdsql.org/dotnetfirebird/create-a-new-database-from-an-sql-script.html [
If you want the DB should be on your machine then you need to make sure that the server is accesible from remote servers. If you want to deploy DB on the local server then you can create a new DB on the PC using SQL DB scripts. For this have a look at it: http://www.firebirdsql.org/dotnetfirebird/create-a-new-database-from-an-sql-script.html[^]


这篇关于如何在Windows应用程序中包括数据库以在另一台计算机上安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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