Refresh (clsServer)

ms132784.note(zh-cn,SQL.90).gif注意:
  下一版本的 Microsoft SQL Server 将删除该功能。请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。

The Refresh method of an object of ClassType clsServer reads all current metadata from the repository and modifies all objects in the session's object model to match the current repository state.

语法

object.Refresh    

参数

  • object
    An object of ClassType clsServer.

备注

All objects in the session's object model are refreshed. This includes objects whose properties have not yet been saved to the repository, as well as objects whose properties in the repository have been changed by other users.

ms132784.note(zh-cn,SQL.90).gif注意:
  Objects that are locked are not refreshed.

示例

The following example invokes the Refresh method:

' Assume dsoServer has already been connected to Analysis Services.
dsoServer.Refresh

请参阅

参考

clsServer

帮助和信息

获取 SQL Server 2005 帮助