hmm... the Message Tracknig Center does this in the ESM (ESM > Tools > Mesage Tracking Center > Server...) by what seems to be a normal LPAD query. You can't see what it queries for though...