HI Steffan -
Sorry about the confusion:
So the following line generates the list of total SQL tables from EPM11124 environment (or "Server"):
Code: Select all
'SQLCMD -S EPM11124 -U EPMAdmin -P Password123! -Q "SELECT TABLE_NAME FROM HYPDRM.INFORMATION_SCHEMA.Tables WHERE TABLE_TYPE = 'BASE TABLE'"'
As does this line from environment EPM11123TRAIN:
Code: Select all
'SQLCMD -S EPM11123TRAIN -U EPMAdmin -P Password123! -Q "SELECT TABLE_NAME FROM HYPDRM.INFORMATION_SCHEMA.Tables WHERE TABLE_TYPE = 'BASE TABLE'"'
What just wondering if we could add code that knows which list each command generated, compares both, and identify which table is missing from which output essentially.
Currently the output as it stands today reads like this:
RM_Property_External_Col_Map
RM_Property_External_Param_Map
RM_WF_Task_Commit_Op_Param
RM_WF_Task_Commit_Operation
RM_Blender_Default_Param
RM_Book_Default_Param
RM_Compare_Default_Param
RM_Export_Default_Param
RM_Import_Default_Param
RM_Query_Default_Param
RM_WF_Model_Stage_Validation
RM_Config_Info
RM_Connection_Operation
RM_Connection_Operation_Column
RM_Connection_Operation_Param
(129 rows affected)
but that list doesn't say which environment they are missing from.
No big deal if we can't! I'll look to capture that metric using SQL instead. not a problem.