One way is by using this command: SHOW QUERY LOGGING ON ALL; Rule UserName "ALL" (From an ALL rule) Rule UserId 00000000 Rule ZoneId FFFFFFFF Account (Rule for any Account) WITH NONE (No DBQL Logging) Another possibility is to query the table with the rules: SELECT * FROM DBC.DBQLRulesV;