Quit Method

Application Object

Description

Closes all connections used by SQLServer objects in the Application.SQLServers collection, and releases all existing SQL-DMO objects. This invalidates all object variables that refer to SQL-DMO objects. You cannot use or reference any SQL-DMO objects created before you called the Quit method. To continue using SQL-DMO objects after calling this method, you must create new SQL-DMO objects.

Visual Basic

Application.Quit

C++

HRESULT pApplication->Quit ( );