EnableTransActionMode (Property)

Applies To:

Connection object, MetaDataConnection object

Description:

Enables transaction mode for the Interactive Reporting database connection file or current connection.

Action:

Read-write, Boolean

Example:

This example creates an Interactive Reporting connection file and applies it to the current document:

var myCon = Application.CreateConnection()
myCon.Description = "This OCE configures the connection via ODBC, to a SQLServer 6.5 database named pluto."
MyCon.EnableTransAction = true
myCon.Api = bqApiOpenClient
myCon.Database = bqDatabaseSQLServer
myCon.HostName ="PlutoSQLSVR"
myCon.SaveAs("d:\\OCEs\\PlutoSQL.oce")

//Now use this connection in a data model
ActiveDocument.Sections["Query"].DataModel.Connection.Open
("d:\\OCEs\\PlutoSQL.oce")