从不同位置将Window Application连接到db [英] Connect Window Application to db from different places

查看:59
本文介绍了从不同位置将Window Application连接到db的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我正在研究vs 2010 C#Windows应用程序
我有一个问题
我的应用程序来自不同的城镇
和我的客户需要它是Windows应用程序而不是Web应用程序
所以我将如何使每个组只有一个数据库从不同的位置连接到它
我需要你的帮助
感谢

hello
i''m working on vs 2010 c# windows application
i have an issue
that my application work from different towns
& my clients need it to be windows application not web application
so how i ''ll make just 1 database every group connect to it from different placse
i need your help
thanks

推荐答案

鉴于用户位于同一网络上,实际上是有可能的.了解有关使用连接字符串的更多信息,这是这种情况下所需要的.互联网上有很多关于它的教程.

忠告:使用连接字符串时,请确保在配置文件中对将用于连接的帐户的密码进行哈希处理.然后,在应用程序中取消哈希处理.这样可以确保没有人对您的数据库进行未经授权的访问.

祝你好运.
Given that the users are on the same network, it is actually possible. Learn more about using connection strings, it is what you will need for this kind of scenario. There are plenty of tutorials about it on the Internet.

A word of advice: When using connection strings, be sure to hash the password of the account that you will use for the connection in the config file. And then, un-hash it on your application. This somehow ensures that no one makes unauthorized access to your database.

Good luck.


这篇关于从不同位置将Window Application连接到db的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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