Solutions
...
Interacting with Litmus Produc...
Reading Tag Data Transposed with UTC timestamp
7 min
use cases returning tag data recorded by litmus production record database through the use of these select statements can be used for example by any visualization platform which allows to integrate with mssql like; grafana powerbi tableau further can these queries be used by any other application which allows for an odbc connection such as excel c# net python r they can also be part of a larger stored procedure developed by users with t sql by default, litmus production record stores tag items as rows and not individual columns there can be cases where users may want to transpose the default result table to turn tag items into columns for this, litmus production record database provides a prepared way method run s elect query against the table ##transposetagdata after executing the stored procedure prorec tag gettransposedtagdatautc input variables 155,141,239,219,133,114 false true false unhandled content type unhandled content type unhandled content type unhandled content type false unhandled content type unhandled content type unhandled content type unhandled content type false unhandled content type unhandled content type unhandled content type unhandled content type false unhandled content type unhandled content type unhandled content type unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type how to use to query transposed tag data, execute the stored procedure prorec tag gettransposedtagdatautc first providing all the required inputs first followed by a select statement against the table ##transposetagdata below is an example using t sql in sql server management studio exec \[le productionrecord] \[dbo] \[ prorec tag gettransposedtagdatautc] select from ##transposetagdata; result the function returns a table as result additional options it is possible to reduce the number of columns returned by the select statement below is an example using t sql in sql server management studio exec \[le productionrecord] \[dbo] \[ prorec tag gettransposedtagdatautc] select tag, value from ##transposetagdata; this will reduce the number of columns returned to only the two selected