访问网络中的sqlserver数据库 [英] Access sqlserver database in a network

查看:294
本文介绍了访问网络中的sqlserver数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目是离线检查系统,我完全开发了服务器端编码。标记计算和计时器控制都工作正常。登录和注销控制都很好。



但我的问题是,如果我运行它只会在一个系统中运行,它将启动服务器并运行浏览器。但由于这是一个离线检查系统,因此将通过网络连接20个系统,然后进行该检查。怎么做:(



我不知道如何将其改为客户端 - 服务器概念。类似多播的东西



你可以帮助我吗:(

My project is offline examination system in that i developed server side coding fully. and mark calculation and timer controls are all working fine . login and logout controls are all fine.

But my problem is that now if i run that it will run only in one system , it will start the server and run in the browser. but since this is a offline examination system that is 20 systems will be attached over network and then that exam should be conducted. How to do that :(

I dont have any idea how to change it to client-server concept. something like multicasting

Can u help me out please :(

推荐答案

我认为离线你不是说互联网。通过服务器,你有20个通过LAN连接的系统。

基于此(您已经确认),您希望通过LAN访问数据库。



将您的数据库放在服务器上,您只需要正确的连接字符串。数据库服务器在网络上,您应该可以轻松连接到它。您不需要上网。

数据库不需要在每个系统上,只需要连接到数据库的字符串,你就可以了。
I assume by offline you meant no internet. By server, you have all 20 systems connected via LAN.
Based on this (that you already confirmed), you want to have database access through LAN.

Place your database on a server and all you need is correct connection string. Database server being on network, you should be easily able to connect to it. You don't need internet for it.
Database does not need to be on every system, just the connection string to the database and you are good to go.


这篇关于访问网络中的sqlserver数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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