When executing an Output Statistics count query on a dynamic map service sourced from a registered SQL Server geodatabase for the first time after the service is restarted, an inefficient SELECT * query is triggered in the database in addition to the expected COUNT query.