Disconnect (Method)

Applies To:

Connection object, MetaDataConnection object

Description:

Drops the connection between the Interactive Reporting database connection file object and the data source.

Syntax:

Expression.Disconnect()

Expression Required:

An expression that returns a Connection object

Example:

This example shows how to disconnect from the database:

if (ActiveDocument.Sections["Query"].DataModel.Connection.Connected == true)
 ActiveDocument.Sections["Query"].DataModel.Connection.Disconnect()