spiTransaction Class - Intergraph Smart Instrumentation - Reference - Intergraph

SmartPlant Instrumentation Programmer's Guide

Language
English
Product
Intergraph Smart Instrumentation
Search by Category
Reference
Smart Instrumentation Version
2016 SP1 (11.0.1)

You use spiTransaction for an external update function to connect to a target database. The software uses it to access the SmartPlant Instrumentation database connection collection based on the current login. Also, you can use this object to query the database.

Since you custom component and spiTransaction class are both "in process" components, you can use the spiTransaction to query the SmartPlant Instrumentation database without the need to create a new database transaction.

Method Name

Return Type

Description

OpenTrans

Int

Creates a pointer to SmartPlant Instrumentation connection and returns the connection ID (which is an integer value).

ExecuteImmediate

DataSet

Enables a programmer to execute SELECT sentences only.