Active Query Builder » News » Active Query Builder VCL and ActiveX Editions News
We're glad to announce the new minor version of Active Query Builder. You can download the newest version from the download page.
What's new in the Active Query Builder version 1.5?
The new MetadataContainer property is added to provide access to the list of metadata objects used in the component. With its help, you can add or remove items manually to restrict certain tables being displayed in the component or you may even fill the entire metadata container by yourself to avoid connecting to the database.
The MetadataContainer property is a collection of metadata objects. You may iterate through the loaded metadata objects, add or remove them.
You are able to load additional metadata information from another databases by using the LoadMetadataByMask method of the MetadataContainer collection.
procedure LoadMetadataByMask(ANameMask: OleVariant; ASchemaMask: OleVariant; ADatabase: OleVariant);
The first two parameters are the masks for object names and schemas respectively. The third parameter is the database name from which you want to load metadata. If you don't want to filter objects loaded by name or schema, you should use the "%" symbol for the first two parameters, so the call will look like:
ActiveQueryBuilder.MetadataContainer.LoadMetadataByMask("%", "%", "database_name")
or, if you want to load only the 'dbo' schema from the database, you may use the following code:
ActiveQueryBuilder.MetadataContainer.LoadMetadataByMask("%", "dbo", "database_name")
The ANameMask and ASchemaMask parameters will be applied to the metadata retrieving query using the LIKE operator.
The new MetadataFilter property is added to implement (pre)filtration of database objects. This feature can speedup metadata loading process dramatically if there is a huge number of tables in the database and only a small set of them is operated with.
The MetadataFilter property is a collection of metadata filter items. Each item specifies one inclusion or exclusion condition that can affect specific object types (tables, views or procedures) and filter objects by object name and schema name using masks.
You may use "_" to represent any single character and "%" to represent any sequence of characters. You can test this feature using demo projects by opening the Properties dialog and selecting the "DB Objects Filtration" tab.
* These features will be available in the Standard Edition of Active Query Builder only.
Comments by Disqus:
We have been using Active Query Builder for over a year and must say that both the product and support have been outstanding!
We chose Active Query Builder due to its flexibility and features, but have been truly pleased by its power and hidden capabilities. ...
In summary Active Query Builder provides excellent components, great support and a very flexible feature set. It has allowed us to provide features to our end users that I did not think would be possible in the first release of our new tools and in a timeframe that was much shorter than planned. I would recommend that anyone dealing with databases in the .Net world should be aware of this component and its capabilities!