*** Infra Query Editor is free but requires registration to download. The tool is designed for development environments - see caveats in the forum introduction about production environments ***
Anyone reading this post is almost certainly going to have encountered frustrations while editing the Infra query file at some point. Recently, even with a "moderate" level of approximately 100 customised queries, I found that I had inadvertently entered two versions of the same query, while another couple were not being read due to incorrect layout.
I decided that there was a case for designing an Infra Developer's tool which would allow you to open, view and edit infraEnterprise Query files. The result is the attached utility.
In essence you open an Infra query file (typically infra_custom.sql but you might find a use for editing the infra_queries.sql as well) and then you right-mouse click to access the options that are available in the Parsed view of the file. The queries are laid out in tree format with the number of occurrences of the queries forming the first level of the hierarchy, then the name of the query at the next level, then the query text itself on the third. Different options will be available at each level so experiment with moving around the Tree structure and right-clicking. Obviously you'll only want one of each query so if you have any more than one instance of a query, the occurrences node will be highlighted in red and you won't be able to make further saves until the duplicate entries have been removed.
You also have the option of toggling between the tree view and the "Raw" view. An alphabetic sort is available in tree view mode so that you can run two instances of the app side by side and compare two versions of a query file.
I will add some Known Errors and suggested Enhancements below but please feel free to add to this thread with your own comments (positive or negative), functionality suggestions, bugs, quirks, etc.
Hopefully this will prove a useful tool for Infra Developers. Many thanks to those who tested the early versions and suggested improvements.
- Simon
