且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过Internet连接到服务器

更新时间:2023-01-20 08:05:03

所以我们可以猜测您正在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