Stationary and Flaring Heating Effect on the Coronal Emission Measure