The SQL database does not contain a valid set of tables for Performance Monitor; you need to use PdhCreateSQLTables. Use ...