Solutions
...
Litmus Production Record Datab...
Interacting with Litmus Produc...
Restore a tag definition
6min
use cases users can restore a tag definition for example on a new server or after a factory reset after a tag definition has been restored, it is also possible to paly back corresponding tag data 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 method execute stored procedure prorec misc tag hierarchy read backup input variables variable name datatype description example @backupfile nvarchar(100) the complete path and filename of the tag definition backup file mandatory! can not be null or empty windows example d \mssql\data\ le prorec tag hierarchy backup serialno 2023 03 23 16 10 17 bak linux example /var/opt/mssql/data/ le prorec tag hierarchy backup serialno 2023 03 23 16 10 17 bak how to use to restore a backup of a specific tag definition, call the stored procedure prorec misc tag hierarchy read backup 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 misc tag hierarchy read backup ] @backupfile = n' /var/opt/mssql/data/le prorec tag hierarchy backup serialno 2023 03 23 16 10 17 bak '; if an output window does exist, the progress can be observed result the stored procedure will verify that the provided values are correct and then restore the tag definition the result can be read back from the log table prorec misc log below is an example using t sql in sql server management studio select top (100) \[logid] ,\[logtype] ,\[logprocedure] ,\[logentry] ,\[logtime] from \[le productionrecord] \[dbo] \[prorec misc log] where \[logprocedure] = ' prorec misc tag hierarchy read backup ' order by logid desc; with the result returned