如何部署和打包我的具有数据库的c#winform项目 [英] How to deploy and package my c# winform project that has a database

查看:389
本文介绍了如何部署和打包我的具有数据库的c#winform项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友
我有一个用c#winform设计的会计软件项目,该项目大约有50种形式,它们从我用sql server创建的数据库中的表中提取信息.我正在使用此connectionstring("Data连接到我的数据库"来源= Ese-PC;初始目录= PIMS;用户ID = sa; PWD = ese);
这是我的问题,我想将这个应用程序部署/打包以安装在通过局域网连接的10台计算机中,并且要使用一台服务器来存放我的数据库.我之前已经打包了普通的winform,但没有部署任何winform涉及数据库,有人可以在这里帮我吗
在此先感谢

Hi friends
i have an accounting software project that i design with c# winform,the project have about 50 form, they draw their information from my tables in my my database which i created with sql server.i am connecting to my database with this connectionstring("Data Source=Ese-PC;Initial Catalog=PIMS; User ID=sa;PWD=ese");
here is my problem i want to deploy/package this app to be installed in 10 computers which are connected over a local area network and has a server where my database will be i suppose.i have packaged ordinary winform before but have not deployed any winform that has a database involved, can someone help me out here
Thanks in advance

推荐答案

您好,Ese,

您的app.config文件将保存您与数据库的连接信息(位于服务器中).因此请尝试更改连接以访问服务器中的数据库.
完成后,部署您的应用程序,只要目标PC可以访问服务器,就没有其他要求.

祝你好运.
Hi Ese,

your app.config file will hold the information of your connection to the database(loacated in the server). so try to change your connection to get access to the database in the server.
Once done, deploy your application, there is no additional requirement as long as your target PC have access to the server.

Good luck.


这篇关于如何部署和打包我的具有数据库的c#winform项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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