从同一网络上的另一台PC连接到SQL Server [英] Connect to SQL server from another PC on same network

查看:76
本文介绍了从同一网络上的另一台PC连接到SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很累要查找我的问题.
有人可以帮我吗?

例如,我在带有SQL Server 2005的PC上有一个主应用程序

如果两台计算机都在同一网络中,如何从另一个PC连接到主应用程序?
我只需要从数据库中读取数据,然后将一些数据写回到数据库中即可.

谢谢,如果有一些有趣的语法错误,对不起我的英语;)

Hi, I am tired to search my problem.
Can someone help me.

For example, I have master app on Pc with SQL server 2005

How I can connect to master app from another Pc, if both computers are in same network?
I need just to read from Data Base and write some data back in Data Base.

Thanks, and sorry for my English if there is some funny grammar errors ;)

推荐答案

您只需要一个连接字符串,即可指定机器和数据库的网络路径
You just need a connection string that specifies the network path to the machine and the database on the machine.


使用连接字符串,您可以直接连接到数据库,而无需通过其他应用程序.
可以使用Visual Studio的数据"菜单进行设置,单击添加新数据".如果配置了sql,则在单击新连接"后应将其显示在列表中.虽然不确定在快速版本中如何工作.
With a connection string you connect to the database directly and not through another application.
It is possible to set this up with Visual studio on the data menu,click add new data.If sql is configured it should be on the list after you click new connection.Not sure how this works in express versions though.


这篇关于从同一网络上的另一台PC连接到SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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