windiws应用程序+单数据库服务器 [英] windiws application +single database server

查看:79
本文介绍了windiws应用程序+单数据库服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Web应用程序(.net中)中,有一个单一服务器数据库的功能,该功能允许通过另一个用户(帐户/会话)访问一个用户的更新(基于会话).

现在我的问题是,.net中的Windows应用程序中是否有类似的东西?我正在构建一个Windows应用程序,该应用程序将被安装在通过局域网连接的4-5台计算机中,并且我想将它们连接到单个数据库服务器,以便第一台主机的更新由第四台主机标识,依此类推. br/>
这可能吗?

如果是,请告诉我如何?

预先感谢.

In a web application (in .net) there''s a facility of single server database which allows updates of one user (based on session) to be accessed over another user (account/session).

Now my question is, is there anything of similar sort in windows application in .net? I am building a windows application which is going to be installed in 4-5 computers connected over a lan and I want to connect them to a single database server so that the updates of 1st host is identified by the 4th host and so on.

Is this possible?

If yes, please tell me how?

Thanx in advance.

推荐答案

原理与Windows窗体相同.

只需使用指向您的应用程序相同服务器的连接字符串即可.对于网络上的所有计算机,服务器都必须使用相同的URL.
The principle is the same in Windows Forms.

Just use a Connection String that points to the same server for your application. The Server needs to be at the same url for all the computers on the network.


简单的回答是是".在这种情况下,Windows和Web应用程序基本上没有区别.但是您的Windows应用程序需要连接到单个数据库,而不是Windows应用程序的每个实例都具有自己的数据库.
Simple answer is YES. Basically there is no difference between windows and web application in this case. But your windows application needs to be connect to single database, not every instance of your windows app to have its own database.


这篇关于windiws应用程序+单数据库服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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