RisingRoad Home | Services | About Us | Contact Us | News | Resources | Search

Foxhound Features - Beta 7

Foxhound displays the schema of SQL Anywhere version 5.5, 6, 7, 8, 9 and 10 databases in a browser window, plus Facts & Figures and Curiosities. Schema information is gathered "on-the-fly" each time you pick a database or table to display.

  • Schema at-a-glance: Each table is shown as a formatted CREATE TABLE statement, plus CREATE INDEX statements and ALTER TABLE statements for the foreign keys. They're all syntactically correct for easy copy and paste.

  • Follow the foreign keys: For each table, there are hypertext links to every parent and child.


  • How much space? For each table, you see how much disk space is used for data, extension pages, all the indexes... and for each index too. Bytes per row measurements include all disk storage so they can be used to extrapolate future requirements.


  • Find those columns: All the column names appear in one alphabetic list, with hypertext links into the table definitions. Plus you can see at a glance where different data types are used for the same column name in different tables.


  • Facts & Figures: This section tells you all the names your database goes by: DSN, server, database, machine, plus the connection string used by dbping. It tells you where all your database files are located, how much free space they contain, and how badly each file fragmented. Plus, it tells you how big your database is: how many rows, how many bytes, how many tables, columns, indexes, even how many times each different data type is used.


  • What's unusual about this database? If your database is heavily fragmented, or some of your database options have been changed from the defaults, or you're running with a different page size, you'll see it at a glance in the "Database Curiosities" section.


  • What's unusual about this table? A "curiosity" is an interesting fact; it may or may not be a problem. The Table-level Curiosities section shows dozens of interesting facts about individual tables; e.g., no primary key, most bytes per row, large number of secondary indexes, and large amount of index space relative to table space,

Foxhound works with local and network databases, anything that has a working ODBC DSN on your workstation. The Foxhound application is embedded in a local SQL Anywhere 9.0.2 database. It uses web services to create the HTML, and an embedded HTTP server to communicate with your browser.

Foxhound Beta 7 is available on request: bcarter@risingroad.com



      

Foxhound Main Menu

Use Choose a DSN: to pick a database to display.

User Id: and Password: are optional. Leave them empty to use the values stored in the ODBC DSN.

Click on Display Schema to display the schema for the database you've chosen.

Use ODBC Administrator to create a new ODBC Data Source or modify an existing one.

Check Include system tables if you want to see the schema for all the SQL Anywhere system tables: SYSTABLE, SYSCOLUMN, etc.

Click on Show all ODBC DSNs to include all the ODBC DSNs in the Choose a DSN: list regardless of which ODBC driver they specify.

Click on Stop Foxhound Engine to stop the Foxhound engine.



   

Navigation Bar, Part 1

Foxhound displays the database in three frames: A navigation bar at the top, lists on the left and detail on the right.

« Back to Menu closes the database display and returns to the Foxhound main menu (see above).

Top scrolls the left frame up to the top.

Tables: scrolls the left frame down to the alphabetic table name list (see below).

Columns: scrolls the left frame down to the alphabetic column name list (see below).



   

Navigation Bar, Part 2

Options displays the SET OPTION PUBLIC.xxx values in the right frame (see below).

Properties displays the engine and database property values in the right frame (see below).

New Window opens the Foxhound main menu in a new browser window or tab.

Checkpoint and redisplay refreshes the current display.



   

Show Facts & Figures, Curiosities

Print will print the left frame.

  Show Facts & Figures   displays various facts and figures about the target database (see below).

  Show Curiosities   displays various database-level and table-level curiosities (see below).



   

Table Name List

Click on a table name in the left frame to display the schema in the right frame (see below).

Row counts, space used and bytes per row are shown for most tables.



   

Column Name List

Click on a column name in the left frame to display the schema in the right frame (see below) and scroll down to that column.

If columns with the same name have different data types in different tables, that is highlighted as "differs:".



   

Table Schema Display

Each table and view is shown in valid CREATE syntax, suitable for copy and paste.

Print can be used to print the right frame.

Warning messages may appear at the top; for more information click on the Note: link.

Some columns have an "eyecatcher" comment /* PK FK U X */.

The number of rows and space used for each table is shown.

Click on the Parents and Children table names to follow the foreign key hierarchy up and down.

Views are displayed as a series of "--" comment lines showing the column names and data types for the view, as recorded in the SYSCOLUMN system table, followed by the original source for the view.



   

Options

The SET OPTION PUBLIC.option values are shown in two alphabetic lists:

  • The first list shows values that are different from the defaults.

  • The second list shows the options that still have the default values.

Scroll right to see the description of each option.

Note that different option values may be in effect for different user ids and connections.

Print can be used to print the right frame.



   

Properties

The property values are shown in two alphabetic lists:

  • The first list shows server-level PROPERTY() values.

  • The second list shows database-level DB_PROPERTY() values.

Scroll right to see the description of each property.

Print can be used to print the right frame.



   

Facts & Figures

The Facts & Figures gives an overview of the target database:
  • DSN, database, server, machine, ...

  • DBSPACE file size, free space, fragments, ...

  • Page size, row count, column data types, ...

  • Table, view, column and index counts.


   

Database Curiosities

A "curiosity" is an interesting fact. It may or may not be a problem; in most cases Foxhound has no way of telling.

This section shows curiosities at the database and server level.



   

Table Curiosities

This section shows curiosities at the table level.


This page was last updated on October 31, 2006.