通过Internet连接到服务器 [英] Connect to Server via Internet

查看:102
本文介绍了通过Internet连接到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

:rose:
我有一个Windows应用程序,并且在另一个城市中有一个SQLServer数据库.而且我们俩都有高速Internet,我如何将我的应用程序连接到该服务器?
我的应用程序在100台计算机的本地网络上运行良好."
谢谢.
:rose:

:rose:
Hi I have a Windows Application program and there is a SQLServer data base in another city. And we both have high speed Internet how can i connect my application to that Server?
"My application is working well at local network with 100 computers" .
Thank you.
:rose:

推荐答案

所以我们可以猜测您正在Visual Studio 2008中工作?

这与连接到本地数据库相同:使用连接字符串.

如果您知道IP地址(或具有DNS解析度)并且在远程数据库服务器上具有访问数据库的凭据,这就是您所需要的.

您可以从VS中的服务器资源管理器建立与数据库服务器的连接.

有关连接字符串(到任何类型的数据库)的详细信息,请访问 ConnectionStrings.com [ ^ ].

干杯.
So we can guess you''re working in Visual Studio 2008?

This is the same as connecting to a local database: use a connection string.

If you know the IP address (or have DNS resolution) and have credentials on the remote DB server to access the database, this is all you need.

You can establish a connection to the database server from the Server Explorer in VS.

For details on connection strings (to any type of database) visit ConnectionStrings.com[^].

Cheers.


:rose:
谢谢您的帮助.是的,我正在使用VS2008.
但是,您能解释一下并给我一个例子吗?
因为我是这种项目的新手,所以对你也太客气了.
谢谢.
:rose:
:rose:
Hi,Thank you for your help.Yes I''m working with VS2008.
But can you explain more and give me an example?
Because I''m new in this kind of project,And its too kind of you.
Thank you.
:rose:




为此,您需要静态Ip.

谢谢,
Himanshu
Hi,

You need static Ip for this.

Thanks,
Himanshu


这篇关于通过Internet连接到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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