Checking if SQL measurement is on