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

Complete factory reset

5min

Use Cases

To set Litmus Production Record Database back to an empty state, an option for a factory reset exists.

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_Factory_Reset

Note

This will completely erase all configurations and date.

How to use

To factory reset Litmus Production Record Database, execute PROREC_Misc_Factory_Rese using the T-SQL EXEC or EXECUTE keyword. Below is an example using T-SQL in SQL Server Management Studio:

EXECUTE [LE_ProductionRecord].[dbo].[PROREC_Misc_Factory_Reset];

Result

The stored procedure will reset the entire database to a state as if it was newly installed.

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_Factory_Reset' Order by LogID Desc

With the result returned

Document image