Solutions
...
Litmus Production Record Datab...
Interacting with Litmus Produc...

Reading out specific Data Model definition - second option

6min

Use Cases

Reading out the Data Model definition can be used to verify what data models do exist and what items and levels are defined. This is most useful, when creating a new data model or wanting to modify an existing data model.

User can do this either by using applications such as:

  • Microsoft SQL Server Management Studio
  • MSSQL CLI

This can also be used for building custom solutions based on applications which allow for an ODBC connection such as:

  • Excel
  • C#
  • .Net
  • Python

Litmus does provide such as custom solution which can be downloaded from our Central Portal.

Method

Execute Stored Procedure PROREC_ProRec_ReadConfiguration.

Note

Data Models are a hierarchy used to organize and relate Production Record Event data according to ISA-88 rules.

Input Variables

Variable name

Datatype

Description

Example

@Node

VARCHAR(50)

The name of a root Node of a specific data model.

Mandatory!

Can not be NULL or Empty

DownTime





How to use

To read out a specific data model definition, call the stored procedure PROREC_ProRec_ReadConfiguration using the T-SQL EXEC or EXECUTE keyword and provide the Input variables. Below is an example using T-SQL in SQL Server Management Studio:

EXECUTE [LE_ProductionRecord].[dbo].[PROREC_ProRec_ReadConfiguration] @Node = N'DownTime';

Result

The function returns a table as result.

specific data model
specific data model