The Options item in the Tools menu allows you to configure Stonefield Query so it works properly for you.

Most of the items discussed are personal; that is, changing them affects only you, even if you use Stonefield Query on a network. These settings are saved in the Windows Registry. Those that affect all users are specifically mentioned; they are saved in Data.INI in the Data subdirectory of the program folder.

The options in the General page are:

  • Display real table and field names: if you are familiar with the name of your application's tables and fields, you might find it easier to locate the tables and fields you want by their real names. If you turn this option on, Stonefield Query displays the real name followed by the descriptive name in parentheses.

  • Create and display report snapshots: the Sample page of the Reports Explorer shows a snapshot of what the report looked like the last time it was run. Storing snapshots for each report makes your reports file much larger, which may be an issue if you're short on disk space. In that case, turn this option off to prevent snapshots from being created.

    This setting is set the same for all users.

  • Default warning if no filter when a report is run: if you run a report without creating a filter for it and there are a lot of records in the tables in that report, it can take a long time to run the report. To prevent this, Stonefield Query warns you that there is no filter for the report and gives you the option of running the report anyway or canceling. If you don't want to see this warning message when you run a report without a filter, turn the Warning if no filter when report is run setting for the report off. If you want all new reports to default to it turned off, turn off Default warning if no filter when a report is run.

  • Send summary queries to database engine: some types of reports, such as quick reports with the Summary report option turned on, cross-tab reports, and charts, summarize the raw data in your database to produce the final results. Some database engines have no problem doing the summarization, in which case you should turn this option on. However, other database engines do not perform summarization very quickly, and in fact it can be significantly faster to have Stonefield Query retrieve the raw data and do the summarization itself. If you find those types of reports running slowly, try changing the setting of this option, either turning it off or on, to see if that improves the performance.

    If you turn this on, your reports cannot have fields that don't appear in the report in the Selected Fields list in Step 2 of the report wizard. For example, if you have a quick report with Country, City, and Amount, the report groups on Country and sums on Amount, and has Summary report turned on, the City field doesn't appear in the report because it's neither grouped nor summed. In that case, if you select this report when Send summary queries to database engine is turned on, you will get a warning message that City has to be removed from the report.

    This setting is set the same for all users.

  • Preview reports in tabbed pages: if you turn this option on and then preview several reports (or even the same report more than once), Stonefield Query puts each report into a separate tab in a single Preview window. With this option off, each report appears in its own Preview window.

  • Display progress during report runs: turn this option if you want to see a window displaying the progress of a report run. This window includes a Cancel button you can click to cancel the report if you wish. Turning this option on dims the Reports Explorer and any open report wizards and slows down report runs slightly but in our opinion is worth it.

  • Check for news items at startup: turn this option on to automatically check once a day at program startup to see if there is any news about Stonefield Query, and if so, display the latest news item. Even with this option turned off, you can still check for news with the News from Stonefield Software Inc. function in the Help menu.

  • Remind me when my software maintenance is about to expire: if this option is turned on, Stonefield Query reminds you before your software maintenance is about to expire. This is helpful, because your software maintenance must be current to receive updates and technical support.

  • Continue running reports if cannot connect or one report fails: if this option is turned off (the default), when you run a batch report and one of the reports fails for some reason, the batch report stops without running the rest of the reports. If this setting is turned on, the batch run continues with the next report.

    This also applies to a multi-database report: if this option is turned off, when you run such a report and it cannot connect to one or more of the specified databases, the program asks you if you want to continue. If this setting is turned on, the report continues to run without asking you.

  • Retrieve records from database in batches (asynchronously): if this option is turned off, Stonefield Query retrieves the entire set of records it needs for a report from the database at one time. While this is great for performance, it also means that you cannot stop a report run while the records are being retrieved. If there are a lot of records, you may have to wait a while before pressing Esc or clicking the Cancel button stop the report run. Turning this option on tells Stonefield Query to retrieve records in batches and check for Esc or Cancel between each batch. This gives you the ability to stop the report sooner. If you turn this on, you can set the batch size, which is the number of records to retrieve at one time. Larger values give better performance but also mean you have to wait longer between pressing Esc or clicking the Cancel button and Stonefield Query stopping the report run.

    This option may not appear, depending on the type of database you are connected to.

  • Week starts on: this determines what date is displayed when dates are formatted to display as weeks. For example, December 3, 2008, which is a Wednesday, displays as follows:

    Week Starts OnDisplay
    SundayWeek of 11/30/2008 (the preceding Sunday)
    MondayWeek of 12/01/2008 (the preceding Monday)
    TuesdayWeek of 12/02/2008 (the preceding Tuesday)
    WednesdayWeek of 12/03/2008 (today, since it's the first day of the week)
    ThursdayWeek of 11/27/2008 (the preceding Thursday)
    FridayWeek of 11/28/2008 (the preceding Friday)
    SaturdayWeek of 11/29/2008 (the preceding Saturday)

    This setting is set the same for all users.

  • Year starts in: this determines the first month of your fiscal year. This is important if you format dates as quarters. The default is January, meaning that December 3, 2008 is in quarter 4. If you set Year starts in to November, December 3, 2008 is in quarter 1.

    This setting is set the same for all users.

  • Default template: this setting determines the default template used for new reports.

  • Limit memory to: by default, Stonefield Query isn't limited in how much memory it can use. That doesn't mean it automatically takes up all of your system memory, just that it can use as much as is available when running a very long report. Database querying is memory-intensive, so this provides better performance. However, in some cases, especially in Windows Terminal Server environments where multiple users run Stonefield Query on the same server at the same time, this can end up limiting the amount of memory available for other applications or other users. In that case, turn this setting on and select the maximum amount of memory you want Stonefield Query to use.

    This setting is set the same for all users.

The options in the Email page are used when you want to email a report to someone or if an unexpected error occurs in Stonefield Query, in which case you have an option of emailing an error report to us so we can resolve the problem. The options are:

  • Use MAPI to send emails: choose this option if you use a MAPI-based email client such as Microsoft Outlook. If you don't use Outlook and you're not sure if your email client uses MAPI or not, ask your system administrator.

    Stonefield Query requires the 32-bit version of Outlook and cannot send emails if you installed the 64-bit version. If that's the case, use SMTP instead. Also, MAPI isn't recommended if you want to email a scheduled report as it often fails. The other options on this page don't apply if you choose MAPI.

  • Use SMTP to send emails: choose this option if you use an SMTP-based email system or can configure your email system to use SMTP.

    If you use Microsoft Exchange, it must be configured by your administrator to work with SMTP. This is the preferred option for emailing because it's more reliable.

  • Your name: your email descriptive name.

  • Your email address: the email address to use as the "reply to" address.

  • Mail server address: the address for your SMTP mail server. If this isn't filled in by default, check your email client to see how it's set up. For Gmail, use "".

  • SMTP port: the port for your SMTP mail server. This defaults to 25, but can be changed if necessary. As with Mail server address, check your email program's account settings and use the same port number here. For Gmail, use 465.

  • Use SSL/TLS: turn this setting on if your email server uses SSL/TLS. Turn this on for Gmail.

  • Timeout: specifies how long (in seconds) to wait for a response from the email server.

  • My email server requires authentication for outgoing messages: turn this option on if applicable. To determine if you should turn this on or not, check your email client setup.

  • User name: the user name to use if the My email server requires authentication for outgoing messages option is turned on.

  • Password: the password to use if the My email server requires authentication for outgoing messages option is turned on.

  • Test: once the email options are set, click this button to send a test message to yourself. This allows you to ensure the email settings are correct.

The options in the Contact page are used as contact information when you email or fax an error report to us. The options are self-explanatory.

The options in the Updates page configure how Stonefield Query checks for updated versions. Turn off the Automatically check for updates option if you do not want to automatically check for updates. If you turn this option on, specify how often, in days, it should check. With this option turned on, Stonefield Query checks our server for the availability of a newer version when it starts. If a newer version is found, a dialog showing some of the new features displays. If your software maintenance is current, you have the option of downloading and installing this version. If your software maintenance has lapsed, you do not have this ability.

The first time you run Stonefield Query, you are asked where Stonefield Query puts its files. The Locations page allows you to change this location.

This page is only available to administrative users.

You can specify any directory for the Stonefield Query files, but we recommend a directory on a server; that way, you can share reports with other users.

If you change this location, Stonefield Query must restart to use the new location. You are informed of this when you choose OK to close the dialog and after you confirm this message, Stonefield Query restarts automatically and uses the new location.

  • Hours of Operation Type: The HEAT Administrator Module lets you create multiple calendars that define what hours your Help Desk is open. This information is used in the "Elapsed Hours (Based on Help Desk Hours)" and "Elapsed Days/Hours (Based on Help Desk Hours)" fields in the Call Logging and Call Assignments tables. This option lets you choose which calendar Stonefield Query uses.

  • Exclude supplementary tables: HEAT has several views or supplementary tables for the same physical table. These usually have names such as "Calllog ¦ SelfService". Since these are really just subsets of physical tables, including them in the list of tables to select from is often unnecessary. Turn on this setting to exclude these from the list of tables available for reporting on.

Other Configuration Settings

Here are some other configuration settings you can change:

  • Normally, Stonefield Query checks once a day to ensure that activation information is correct. However, if you don't have an Internet connection, this causes startup to take 30 seconds or so because it has to wait until the attempt to connect to our Web server times out. To speed up startup in this case, create a RegDays entry in the Options section of Data.INI in the Data subdirectory of the program folder (if you upgraded from an earlier version, this file may be in the program folder instead) that tells the program to check less frequently. For example, this entry specifies checking every 15 days:

  • Some databases require that the ODBC login dialog appears. You can force that to happen by adding the following to Data.INI:

  • Stonefield Query keeps a diagnostic log (Diagnostic.txt in the Data subdirectory of the program folder) to help track down the cause of any problems that may occur. This file is normally recreated every time you start the program, but you can add specify that the logs should be kept instead. This is useful for checking diagnostics over multiple runs, such as for scheduled reports. To do that, add the following to the Options section of Data.INI:


    Stonefield Query creates separate diagnostic files with a timestamp as part of the filename. If Stonefield Query is run with a command line parameters file, such as when called from the Windows Task Scheduler for a scheduled report, the parameter filename is also added to the diagnostic filename.

    Of course, you normally don't want to do that to prevent a lot of log files from being created.

  • With some types of SMTP email servers, you may have to tell Stonefield Query to use a different mode for sending emails. If you get errors, such as 504 5.7.4 Unrecognized authentication type, add the following to Data.INI:

  • If you find that filtering a report on a formula doesn't work correctly, add the following to Data.INI:

  • On some Windows 7 and later systems, Stonefield Query crashes when exiting. To fix this problem, add the following line to the [Options] section of Data.INI:

  • If you want to turn off usage tracking, add the following to the [Options] section of Data.INI:

  • If none of your data fields contain null values, you can make processing slightly faster by adding the following to the [Options] section of Data.INI:

  • You can specify a report synchronization folder on the server by adding the following to the [Options] section of Data.INI:


    where foldername is the full path to the server folder containing SFX files.

  • By default, Stonefield Query writes files it needs temporarily to your temporary files folder (the one specified in the TEMP or TMP environment variables). In some Terminal Server or Citrix environments, that folder doesn't exist when a report is run from a scheduled task. In that case, create a text file named Data.config in the Data subdirectory with the following content to specify a folder where temporary files can be written:


    where folder is the full path to a folder all users have full permissions to.

  • One consequence of Data.INI in a server environment is that all users access the same reports location. If you want users to access different locations, add the following line to Data.INI:


    This tells Stonefield Query to store the location of the reports files in the Windows Registry, which is what previous versions used to do. When each workstation runs Stonefield Query for the first time, they'll be prompted for the location of their reports.

  • To specify a different location for the Stonefield Query "system data" files, add the following line to Data.INI:

      SystemData=location of files

    where location of files is the location of these files. If this location is the same as Stonefield Query itself, specify "." as the location. This allows you to install the application on a local workstation but all files (reports, licenses, users, etc.) to be stored on the server. In that case, the only files needed in the Data subdirectory of the program folder on the workstation are SFQuery.dbf, SFQuery.fpt, and SFQuery.cdx.

  • If you use a proxy server to access the Internet, tell Stonefield Query about that server by adding the following information to a new Proxy section of Data.INI:


    In place of servername, put the name or IP address of the proxy server. In place of username and password, put the user name and password to access the proxy server. These two items aren't required if user name and password aren't specified for the proxy server.