If you are using the Grid pane to create you query, you can enter information in the format that corresponds to the Windows Regional Settings for you computer. For example, if you are searching for data, you can enter the data in the Criteria columns using whatever format you are accustomed to using, with these exceptions:
- Long data formats are not supported.
- Currency symbols should not be entered in the Grid pane. However, the correct symbol will appear in datasheet view.
Note You may enter the $ currency symbol, but the Results pane will return the currency symbol that corresponds to the Windows Regional Settings for your computer.
- Unary minus always appears on the left side (for example, -1) regardless of the Regional Settings options.
In contrast, data and keywords in the SQL pane must always be in ANSI (U.S.) format. For example, as the Query Designer builds a query, it inserts the ANSI form of all SQL keywords such as SELECT and FROM. If you add elements to the statement in the SQL pane, be sure to use the ANSI standard form for the elements.
When you enter data using local-specific format in the Grid pane, the Query Designer automatically translates it to ANSI format in the SQL pane. For example, if your Regional Settings are set to Standard German, you can enter data in the Grid pane in a format such as “31.12.96.” However, the date will appear in the SQL pane in ANSI datetime format as ‘1996-12-31 00:00:00’.
If you enter data directly in the SQL pane, you must enter it in ANSI format.
The sort order of data in your query is determined by the database. Options that you set in the Windows Regional Settings dialog box do not affect sort order for queries. Within any particular query, however, you can request that rows be returned in a particular order. For more information on sort order and collations, see the Microsoft SQL Server documentation.
A double-byte character set (DBCS) uses two bytes to represent a character, allowing more than 256 characters to be represented. A DBCS is typically used in environments that use ideographic writing systems, such as Japanese, Korean, and Chinese. You can enter DBCS characters for literals and for database object names such as table and view names or aliases. You can also use DBCS characters for parameter names and parameter marker characters. However, you cannot use DBCS characters in SQL language elements such as function names or SQL keywords.