[MSSQL] Refactor provider for schema checks