Stonefield Query Studio is essentially a front-end UI for a set of Stonefield Query project files. Although the structure of these files is documented, you should normally use Studio rather than modifying these files directly, as it's possible to render a project unusable by improperly changing the values of certain fields in certain records.

However, sometimes you may want to make bulk changes to the records in the data dictionary table. For example, perhaps you want to change "Company" to "Organization" where ever it appears in the caption of any field. It may be a lot of work to do this in Studio if there are a lot of fields that must be changed. For this type of operation, you can use the Stonefield Data Dictionary Query Utility. To bring up this utility, select the Query Data Dictionary function in the File menu. If SFQuery.INI for the selected project specifies more than one data dictionary file (see the Stonefield Query Project Files topic for details on how and why to do that), you are prompted to select the desired file to work with.

This utility shows the raw records in the REPMETA table that forms the Stonefield Query data dictionary for the selected project. The Stonefield Data Dictionary Query Utility has three sections:

The SQL statement doesn't just have to be a SELECT statement. To make bulk changes to the data dictionary, you can use SQL UPDATE or DELETE statements. For example, to change "Company" to "Organization" where ever it appears in the caption of any field, use the following statement:

update REPMETA set CAPTION = strtran(CAPTION, 'Company', 'Organization') where CAPTION like '%Company%'

The status display at the bottom shows the number of records updated. To make sure you only update the correct records, you may want to first use a SQL statement that displays the desired records, such as:

select * from REPMETA where CAPTION like '%Company%'

We strongly recommend backing up the meta data files (REPMETA.*) before using the Query utility, as changes you make are permanent and can make a project useless if you change the wrong thing.