在不同的PC上连接两个应用程序 [英] Connect two application on different PCs

查看:117
本文介绍了在不同的PC上连接两个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用VB.Net桌面应用程序
相同的应用程序将安装在两台或三台PC上;每个版本具有不同的特权,其中一个具有管理特权.
并且它们共享同一个数据库(任何更新都会显示给其他用户).
我该如何逻辑地做到这一点?和我需要什么?

Hi
I''m working to VB.Net Desktop application
The same application will be installed on two or three PC ; and each version had different privileges and one of those had the administration privileges.
and they share the same database (any update will be appear to other users).
How I can Do that logically ? and what I need ?

推荐答案

您只需要能够远程连接到中央数据库(因为您可以将数据库用作通信,同步就意味着应用程序) ).
You need no more that being able connect remotely to the central database (since you may use the database as communication, sinchronization mean for the applications).


1.在LAN/WAN上共享数据库
2.在exe/文本文件中设置新的连接字符串[写入sql连接字符串的地方]

步骤1:遵循此链接中给出的步骤 [用于远程访问sql数据库(从不同pcs)]
http://support.microsoft.com/kb/914277 [
1. share your database on LAN/WAN
2. set new connection string in exe/text file [where sql connection string is written]

step 1: follow steps given in this link [For access sql database remotely(from different pcs)]
http://support.microsoft.com/kb/914277[^]

step 2: after step 1 complete then change connection string''s parameters,
datasource = server-name OR IP-Address [which is in sharing now after step 1] ;
Initial catalog = your database name ;
UserId = sql server - user login Id ;
Password = sql server - user login password;

Happy Coding!
:)


这篇关于在不同的PC上连接两个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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