master: attached sql