How to find Case Mismatches from HEATCAI CustIDs to Profile CustIDs in HEAT Help Desk

Version 1

    Details

    Case mismatches between the CustID values on HEATCAI and CustID values on Profile can cause issues with HSS.


    Resolution

    Run the following in SQL Server Management Studio to identify records where the case is different between the HEATCAI.CustID and the Profile.CustID:

    SELECT DISTINCT(CustID), CustType

    FROM HEATCAI

    WHERE (CustID  IN

    (SELECT CustID FROM Profile)

    AND CustID Collate SQL_Latin1_General_CP1_CS_AS NOT IN

    (SELECT CustID FROM Profile))