Solutions
...
Litmus Production Record Datab...
Interacting with Litmus Produc...
Purging a data model configuration
7min
use cases it might be necessary for users to remove an individual data model from the database, if they for example discontinue to use it or other circumstance make it obsolete to purge a data model, first all of the related production records have to be purged otherwise data without a context would exist in the database for how to purge all production records for a data model, please follow the instructions here purging production record data for a specific data model docid\ gl1tazsjjc9wkuqzfpvuu user can purge individual data models, which will include all the id's 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 hierarchy purge input variables variable name datatype description example @node varchar(50) the name of the root node and the name of the data model mandatory! can not be null or empty urethanes how to use to purge a specific data model configuration, call the stored procedure prorec misc hierarchy purge 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 hierarchy purge] @node = n'urethanes'; note the system will always create a backup first before purging this way, the data model can always be restored if an output window does exist, the progress can be observed result the stored procedure will verify that the provided values are correct and all production record data are purged and then create the backup before purging the data model configuration 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 hierarchy purge ' order by logid desc; with the result returned