RemoteServer Object

后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。

The RemoteServer object exposes the attributes of an instance of Microsoft SQL Server, known as a remote server, to another server.

显示当前对象的 SQL-DMO 对象模型

Properties

ID Property

Options Property

Name Property

TopologyX Property

NetName Property

TopologyY Property

Methods

ExecuteImmediate Method (LinkedServer, RemoteServer)

Remove Method (Objects)

ExecuteWithResults Method

SetOptions Method

ExecuteWithResultsAndMessages Method

SetTopologyXY Method

备注

To facilitate connections between instances of SQL Server in an organization, SQL Server uses remote-server naming.

An instance of SQL Server can maintain authentication information for connections originating from other instances of SQL Server. Each instance of SQL Server in an organization can control access by listing the instances of SQL Server from which it accepts connections.

When a remote server is named on an instance of SQL Server, the server maintaining the name list can, in turn, originate a connection to a named remote server.

With the RemoteServer object, you can:

  • Name a new SQL Server remote server.
  • Adjust the Mixed Mode attributes of a named remote server.
  • Execute Transact-SQL scripts on a named remote server.
  • Remove a remote server definition.
ms135149.note(zh-cn,SQL.90).gif注意:
The RemoteServer object is compatible with instances of SQL Server versions 7.0 and alter. However, the RemoteServer2 object extends the functionality of the RemoteServer object for use with features that were introduced in SQL Server 2000.

请参阅

参考

RemoteServer2 Object

帮助和信息

获取 SQL Server 2005 帮助