DN Tables
This section outlines the DN table created for Problem Management for generating multi-valued tables based on the table name and group name, displaying the attributes created within the group. This can be used for reporting purposes, as only the differential data is updated each time it is executed.
To deploy the DN table, perform the following steps:
Run the text file below named "PM_RPT_Relation_ProblemRecord_Attribute.txt". The script will create a table named as “PM_RPT_Relation_ProblemRecord_Attribute”.
Run the text file below named “DN_Replication_PM_Custom_MVCustomAttributes_Details.txt”. The script will create a table named as “DN_Replication_PM_Custom_MVCustomAttributes_Details”.
Run the text file below named “UDF_RPT_DN_PM_GetDropdownValue.txt”. The script will create a function named as “UDF_RPT_DN_PM_GetDropdownValue”.
Run the embedded files named “USP_PM_RPT_LoadReportingData_06.txt”. The script will create a Stored Procedure named as “USP_PM_RPT_LoadReportingData_06”
Run the command. – “Exec [USP_PM_RPT_LoadReportingData_06]”
Above command will create single valued tables and data into table named as follows.
The naming of the tables as explained as follows:
PM_RPT_DN_ <Sup Function>_< Group Name >_Multi_Valued
Example: Select * from PM_RPT_DN_IT_Customer_Multi_Valued
where < Sup Function > is IT and < Group Name > is Customer
Create and schedule the SQL agent job in the instance with below configuration details.
Job Name: PM DN Custom <Customer Name> Multi Valued AttributeFrequency: Every 30 mins
Duration: Daily
How to Rollback (In case of emergency)
To rollback the changes made with the DN table, perform the following steps:
- Delete the SQL agent job. Job Name: PM DN Custom <Customer Name> Multi Valued Attribute
- Run the command – “DROP procedure USP_PM_RPT_LoadReportingData_06”.
This will drop the stored procedure – “USP_PM_RPT_LoadReportingData_06”. - Run the command.
This will drop the table – “DROP TABLE dbo.DN_Replication_PM_Custom_MVCustomAttributes_Details”
This will drop the table – “DROP TABLE dbo.PM_RPT_Relation_ProblemRecord_Attribute”. - Also, Drop all the Dynamically created DN tables in the below format:
'PM_RPT_DN_'+<Sup Function>+'_'+<Group Name>+'_Multi_Valued'
Confluence Cloud Migration Alert: Please refer to known issues you may encounter in Confluence Cloud: https://eitdocs.atlassian.net/wiki/x/wDGwAQ