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

Modify Application Configuration Items

6min

Use Cases

Litmus Production Record Database allows users to modify certain application configuration items used by the application. To review which configuration items can be modified, please review Reading out the Application configuration of Litmus Production Record Database.

User can modify configuration items either by using applications such as:

  • Microsoft SQL Server Management Studio
  • MSSQL CLI

Or 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_Update_APP_Config.

Input Variables

Variable name

Datatype

Description

Example

@APPConfigItems

VARCHAR(8000)

A single config item





Or a comma separated list of config items to be modified. Mandatory!

Can not be NULL or Empty

Days_to_Keep_ProRec





Days_to_Keep_ProRec,Days_to_Keep_Tag

@APPConfigItemValues

VARCHAR(8000)

A single value for a single config item



Or a comma separated list of values.



NOTE: The position in the comma separated list has to match with the list from the Input variable @APPConfigItems



Mandatory!

Can not be NULL or Empty

100





100,75

How to use

To modify one or several Configuration Item(s), call the stored procedure PROREC_Misc_Update_APP_Config 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:

Example of modifying one Configuration Item.

EXECUTE [LE_ProductionRecord].[dbo].[PROREC_Misc_Update_APP_Config] @APPConfigItems = N'Days_to_Keep_Log', @APPConfigItemValues = N'2';

Example of modifying several Configuration Items.

EXECUTE [LE_ProductionRecord].[dbo].[PROREC_Misc_Update_APP_Config] @APPConfigItems = N'Days_to_Keep_ProRec,Days_to_Keep_Tag', @APPConfigItemValues = N'100,75';

Result

The function returns a table with the new value

Example of modifying one Configuration Item.

modify 1 config item
modify 1 config item


Example of modifying several Configuration Items.

modify multiple config items
modify multiple config items