DisconnectServer

Method
Disconnects from a database server.

Category
Database

 

Syntax
Sub DisconnectServer

 

Example

'Closes a company and disconnects from the server

  CF1.CloseCompany

  logWr "CloseCompany: OK"

  If .Text1(cf.ServerName) <> "" Then

  CF1.DisconnectServer

  logWr "Disconnected from Server"

  End If

 

Comments
DisconnectServer disconnects an application from a database server. The connection must have been established by calling ConnectServer.



© 2009 Microsoft Corporation. All rights reserved.