我做了一个Windows应用程序,我想在c#windows应用程序中使用相同的数据库和相同的应用程序与多台计算机共享该应用程序 [英] I had make one windows application and i want to share that application with multiple computer using same database and same application in c# windows application

查看:56
本文介绍了我做了一个Windows应用程序,我想在c#windows应用程序中使用相同的数据库和相同的应用程序与多台计算机共享该应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我想知道如何与多台电脑共享数据库和运行应用程序



我尝试过: < br $>


i知道如何创建应用程序,但我是新的应用程序在neetworking

hi every one i want to know how to share the database and runing application with multiple computer

What I have tried:

i know that how to create the application and but i m new to make application in neetworking

推荐答案

使用SQL服务器或MySql作为您的数据库:它们都是为多用户访问而设计的,您需要做的就是提供一个连接字符串,以便让客户端访问同一个数据库。 (将其存储在配置文件中,以便您可以更改它,并且您还可以单独进行开发,以便在测试时不会意外地弄乱生产数据。)

然后所有你我们要做的就是将你的应用程序部署到每台计算机上,它应该都能正常工作。
USe SQL Server or MySql as your database: they are both designed for multiple user access, and all you then need to do is provide a connections string which lets leach client access the same database. (Store this in a config file, so you can change it, and you can also have a separate one for development so you don't mess up production data by accident while testing).
Then all you have to do is deploy your app to each computer, and it should all work.


这篇关于我做了一个Windows应用程序,我想在c#windows应用程序中使用相同的数据库和相同的应用程序与多台计算机共享该应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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