Article ID: 164729 - Last Review: September 25, 2001 - Revision: 1.0 XL97: New Database Query (.dqy) File FormatThis article was previously published under Q164729 On This PageSUMMARY
Microsoft Query 97 uses a new database query (.dqy) file format. This
article discusses the new format and how to use it with earlier versions
of Microsoft Query.
MORE INFORMATION
The database query format is the default file format that is used when you
use the Save command in Microsoft Query 97. For backward compatibility,
Microsoft Query 97 continues to support Microsoft Query version 1.0 and
2.0 (.qry) files when you save and load these files. When you open a .qry
file and edit it in Microsoft Query 97, features that cannot be
represented in the .qry file format are not available. For example,
parameterized query functionality is not available because this feature is
not available in earlier versions of Microsoft Query. Also, if you create
a query in Microsoft Query 97 and use features that are not supported in
earlier versions, you cannot to save the .dqy file as a .qry file until
you remove the new functionality.
The database query format is designed to be small, simple, and efficient. Note that most of the presentation information that can be saved in .qry files is not retained in the database query. Defaults are substituted for some items, such as window, table, and document positions. When you perform a new query, .qry files are not supported by the Microsoft Excel Run Query command or the Queries tab in the Choose Data Source dialog box. When you save a query in Microsoft Query 97, Microsoft Query saves a text file with a .dqy file name extension. This text file consists of at least four lines of text that are each separated by carriage returns and line feed characters. Note that these characters typically do not appear in a text editor. The format of the Database Query file is as follows: Sample Database Query (.dqy) FileIn the following example, text is wrapped to allow you to view it easily. In an actual .dqy text file, the connection string and SQL string text is not wrapped. Each text string appears on an individual line. The following is a sample .dqy file:REFERENCES
For more information about using database query (.dqy) files, click the
Index tab in Microsoft Query Help, type the following text
saving queries
and then double-click the selected text to go to the "Save a query" topic.
For more information about running a query from Microsoft Excel, click the Index tab in Microsoft Query Help, type the following text
dqy files
and then double-click the selected text to go to the "Run a query" topic.
For more information about creating a parameter query from Microsoft Excel, click the Index tab in Microsoft Excel Help, type the following text
parameter queries
and then double-click the selected text to go to the "Create a query that
prompts for criteria" topic.
| Article Translations
|


Back to the top
