1. Custom SQL

fmCustomSQL - Custom SQL
fmMySQLHelp - MySQL Help
fmAddNewSQLDialog
fmEditExistSQLDialog

Here you can create a query using SQL language. This section can be used to work with your store DB, fetching data easier and faster.

Custom SQL section


When you open Custom SQL page, you'll see it looks a lot like the Create New Report one. This page has 2 tabs: Edit and Logs and is divided in two sections: top one is showing the query content (SQL text), and the bottom one lists all available queries.

You can also open an SQL Query file that was previously saved by clicking on icon.

Load query from a file


When creating a new query (New SQL icon), you need to specify its name and click OK. At the bottom part of the page you'll see the query with this name created.

New SQL


Now you can either run a Query builder or write query text in the top part of Edit tab directly. When you're finished with this query hit the save button.

Save query to file

Then you can execute it by pressing the Execute SQL  or Execute Selected Only button to check only the selected part of the request.

Execute sql
Execute selected request


The Results tab will appear, showing the returned data, arranged according to a certain condition.

If the query wasn't executed, you can check the Logs tab for errors. 

Logs tab


Logs tab will be cleared after you close Store Manager.

When constructing complicated queries it's more convenient to use Visual Query Builder.

Comments