> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-insql-connectivity-module.md).

# DATRAN InSQL Connectivity Module

DATRAN VI service that streams logged data, including late RTU logged data, into a Wonderware Industrial SQL (InSQL) historian.

The DATRAN “InSQL Connectivity Module” (InSQLCM) provides the mechanism to log “RTU Data Logged” data into the “Fast Load Folder” of Wonderware’s InSQL. Integrating DATRAN RTU Data Logging into InSQL allows the Active Factory suite of products to be utilised for the display, manipulation and reporting of the data.

{% hint style="info" %}
**Applies to:** The InSQL Connectivity Module is compatible with DATRAN VI Version 6.64 and above.
{% endhint %}

## Why it's needed

DATRAN RTU Data Logging is a powerful feature that allows RTUs in the field to log data which is then periodically retrieved over the existing communication channels. This logged data is easily integrated into the DATRAN database via the Historic Data Interface software. This data is not in chronological order with respect to existing data in the database, and is sometimes referred to as “late data”. This can cause problems for databases other than the standard DATRAN database. With the deployment of InSQL, the integration of non chronological “late data” requires an alternative approach, using the “Fast Load Folder” of InSQL.

* Ability to Log non chronological data to InSQL and/or the DATRAN database
* Integrate DATRAN RTU Data Logging into Wonderware as extensions to the existing system
* Enables a common repository for multiple sources of system data

## Set it up

To get analogue DATRAN RTU logged data into InSQL via the DATRAN base station:

1. **Connect InSQLCM to InSQL.**
2. **Configure DATRAN Historical Data Interface (HDI)** to log to the Wonderware InSQL Server. See [RTU data logging (HDI)](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/rtu-data-logging.md).
3. **Add an `_InSQL_Log_Analogue_` node.** This node usually has information such as the tag name.
4. Example output: a typical trend of the DATRAN VI analogue point being logged to InSQL, when viewed in Active Factory Trend.

Please contact QTech for a system implementation proposal.

## Diagnostics

In the DATRAN diagnostics select Log To Disk categories. Select (tick) the desired categories: Historical Data Interface : InSqlCM Error (if you are using Insql) and Historical Data Interface : InSqlCM Execute (if you are using Insql). As an insurance policy, we suggest that both the ADO and HDI diagnostics are turned on to capture log data as it is retrieved. See [Backup, restart and disaster recovery](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/backup-and-restart.md).

Note that the InSQL service connector for Wonderware’s SQL Historian was not upgraded. See [Upgrade to DATRAN VI V6.78](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/install/upgrade-to-v6-78.md).

## Fix a problem

* [Add-ons: common questions](https://help.qtech.co.nz/datran/datran-vi-scada/add-ons-common-questions.md#datran-insql-connectivity-module)

## Reference

The current datasheet and brochure are on the [DATRAN InSQL Connectivity Module product page](https://qtech.co.nz/product/datran-insql-connectivity-module/).
