Advanced SQL To XML Query - Version 1.7 Advanced SQL To XML Query is a relational database client utility that allows execution of SQL (Structured Query Language) statements on Microsoft SQL Server databases. Resultsets returned by select statements are automatically converted to XML files and persisted to a directory of your choice. The application automatically persists most recently used output directory path and allows assignment of custom names to output XML documents.