sql diagnostic function