如何为多个用户开发Windows应用程序? [英] How to develop a windows application for multiple users?

查看:107
本文介绍了如何为多个用户开发Windows应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编程新手。我使用visual studio 2015和C#语言开发了一个Windows窗体应用程序。后端是使用MS SQL Server Management Studio 2014开发的。我想要的是,现在我想测试这个系统。好吧假设是这样的。我的程序由10个人使用。他们有几个用户级别。因此,用户同时登录系统并将他们的工作和数据保存到数据库中。所以我应该为此设置一个服务器?或者我应该在线托管我的数据库?我没有太多想法。谢谢:)

Well I am new to programming. I have developed a windows form application using visual studio 2015 and with C# language. Back end is developed with MS SQL Server Management Studio 2014. What I want is, now I want to test this system. Well assume like this. My program is used by 10 people. And they have several user levels. So the users login to the system at the same time and do their work and data get saved to the database. So I should set up a server for this right? or I should host my database online? I don't have much of a idea. Thanks :)

推荐答案

您可以设置服务器来托管数据库,然后如果您需要将数据库提供给未连接到同一网络的用户,那么请提供它公共IP,以便可以通过互联网访问。否则,如果用户连接到同一网络,那么您也可以通过本地IP提供访问权限。



然后您需要配置SQL Server以允许远程访问

http://stackoverflow.com/a/11278115/1006297 [ ^ ]



您还可以需要相应地更改连接字符串。



希望,它有帮助:)
You can setup a server to host the database and then if you need your database to avaialble to the users not connected to the same network then provide it a public IP so that it can be accessed over internet. Else if the users connected to the same network then you can provide them access through the local IP too.

Then you need to configure your SQL Server to allow remote access
http://stackoverflow.com/a/11278115/1006297[^]

You also need to change the connection string accordingly.

Hope, it helps :)


如果您使用的是SQL Server,那么您已经设置服务器 - 应用程序都通过它与数据库通信。所以对于基于本地的解决方案,你已经得到了你想要的东西。



您可以将数据库移动到在线主机上,但存在与此相关的风险:只是将数据库移动到Web托管服务并远程访问它是可能的,但可能会将您的数据暴露给任何人,而不仅仅是您的用户和您的应用程序。

基于云的数据库可能在这方面更好,但是安全和云不应该用在同一个句子中,除非以完全缺乏任何真实作为前缀...



如果是在当地工作,然后我个人保持在当地。它更快,更安全,备份更容易!
If you are using SQL Server, you already have a server set up - the applications all communicate with the database via that. So for a local based solution, you have already got what you want.

You could move the DB to an online host, but there are risks associated with that: just moving the DB to a web hosting service and accessing it remotely is possible, but potentially exposes your data to anyone, not just your users and your application.
A cloud based DB could be better in that regard, but "security" and "the cloud" shouldn't really be used in the same sentence unless prefixed by "total lack of any real"...

If it's working locally, then personally I'd keep it local. It's quicker, it's safer, and it's a lot easier to back up!


这篇关于如何为多个用户开发Windows应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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