CloseServer (clsServer)

[!附註]

  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

The CloseServer method of an object of ClassType clsServer releases all server resources and sets the State property of the object to stateUnknown.

語法

dsoServer.CloseServer    

參數

  • dsoServer
    The Decision Support Objects (DSO) server object to be closed.

範例

The following example assumes that the server object exists and is connected to an Analysis server. The example closes a previously created connection:

dsoServer.CloseServer

請參閱

參考