2004
Table Of Contents
- Contents
- Chapter 1 - Find the Information You Need
- Part 1 - The User Interface
- Part 2 - Start, Organize, and Save a Drawing
- Part 3 - Control the Drawing Views
- Part 4 - Create and Modify Objects
- Chapter 14 - Control the Properties of Objects
- Chapter 15 - Use Precision Tools
- Chapter 16 - Draw Geometric Objects
- Chapter 17 - Change Existing Objects
- Part 5 - Hatches, Notes, and Dimensions
- Chapter 18 - Hatches, Fills, and Wipeouts
- Chapter 19 - Notes and Labels
- Chapter 20 - Dimensions and Tolerances
- Part 6 - Create Layouts and Plot Drawings
- Chapter 21 - Create Layouts
- Chapter 22 - Plot Drawings
- Part 7 - Share Data Between Drawings and Applications
- Chapter 23 - Reference Other Drawing Files (Xrefs)
- Chapter 24 - Link and Embed Data (OLE)
- Chapter 25 - Work with Data in Other Formats
- Chapter 26 - Access External Databases
- Overview of Using AutoCAD with External Databases
- Access a Database from Within AutoCAD
- Link Database Records to Graphical Objects
- Use Labels to Display Database Information in the Drawing
- Use Queries to Filter Database Information
- Share Link and Label Templates and Queries with Other Users
- Work with Links in Files from Earlier Releases
- Part 8 - Work with Other People and Organizations
- Chapter 27 - Protect and Sign Drawings
- Chapter 28 - Use the Internet to Share Drawings
- Chapter 29 - Insert and View Markups
- Chapter 30 - Publish Drawing Sets
- Part 9 - Create Realistic Images and Graphics
- Glossary
- Index
760 | Chapter 26 Access External Databases
3 Enter additional query parameters on subsequent rows of the Query grid.
4 Repeat step 2 for each additional parameter except the final query
parameter.
5 Apply any parenthetical grouping, if appropriate. Click the cell to the left
of the Field cell that begins the phrase that you want to group. A single
left parenthesis is inserted. Click the cell to the right of the Value cell that
ends the phrase that you want to group. A single right parenthesis is
inserted.
6 If you want to save the query in the current drawing for future use, choose
Store.
7 Choose Execute to execute the query and close the dialog box.
To specify what fields appear in your returned query
1 Construct your query as described in “To construct a query with a single
parameter on the Query Builder tab” on page 759 and “To construct a
query with multiple parameters on the Query Builder tab” on page 759
2 Select the first field that you want to appear in the Fields in Table list.
3 Above the Show Fields list, choose Add.
4 Repeat steps 2 and 3 for any additional fields you want to display.
To specify a sort order for your returned query
1 Construct your query as described in “To construct a query with a single
parameter on the Query Builder tab” on page 759 and “To construct a
query with multiple parameters on the Query Builder tab” on page 759
2 Select the first field that you want to sort on from the Show Fields list.
3 Above the Sort By list, choose Add.
By default, AutoCAD sorts the selected field in ascending order. Choose
the Sort button to sort in descending order.
4 Repeat steps 2 and 3 for any additional fields that you want to sort on.
Use SQL Queries
The SQL Query tab provides you with both a query editor box where you can
enter a free-form SQL query and a set of tools to assist you in constructing a
query. You can issue any valid SQL statement that conforms with Microsoft’s
implementation of the SQL 92 protocol from this tab. Because not all data-
base management systems are fully compliant with the SQL 92 standard, you
should review your system’s documentation to see what SQL commands are
valid for your particular database.