PFEDynamics / DynamicsPerf

DynamicsPerf is a performance analysis tool for Microsoft Dynamics AX
Microsoft Public License
75 stars 20 forks source link

Clean-up snippet errors #9

Closed anderson-joyle closed 4 years ago

anderson-joyle commented 5 years ago

From 4-ConfigureDBs to Collect.sql, line 73:

/********  Cleanup ****************

DELETE FROM DATABASES_2_COLLECT 
WHERE SERVER_NAME = 'SQL_NAME_HERE' <== Field SERVER_NAME doesnt exist in DATABASES_2_COLLECT table

DELETE FROM QUERY_ALERTS_CONFIG]  <== Unbalance brackets
WHERE SERVER_NAME = 'SQL_NAME_HERE'

**********************************/

Correct statements should be:

DELETE FROM DATABASES_2_COLLECT 
WHERE LINKED_SERVER = 'SQL_NAME_HERE'

DELETE FROM QUERY_ALERTS_CONFIG
WHERE SERVER_NAME = 'SQL_NAME_HERE