Multi-Database Tool and SQL Editor

Altova DatabaseSpy is the unique multi-database query and design tool that even generates elegant charts directly from query results.

DatabaseSpy connects to all major databases, easing SQL editing, database structure design, content editing, and database conversion for a fraction of the cost of single-database solutions.

DatabaseSpy

Altova DatabaseSpy is the unique multi-database query and design tool that even generates elegant charts directly from query results.

DatabaseSpy connects to all major databases, easing SQL editing, database structure design, content editing, and database conversion for a fraction of the cost of single-database solutions.

SQL Editor and Query Tool

The versatile DatabaseSpy SQL Editor is divided into a SQL statement window and one or more tabbed or stacked Result windows, with a convenient Execute button in the SQL Editor toolbar to let you immediately execute your SQL statements and view the output.

The SQL statement window applies color coding to each SQL statement with unique identification for SQL statements, parameters, operators, and comments to help you quickly and easily review and analyze an individual SQL query or a complex series of SQL commands.

DatabaseSpy SQL Editor and Query Tool

The DatabaseSpy SQL editor features customizable SQL auto-completion to accelerate SQL query development. Execute queries and see immediate results in one or more windows that may be tabbed or stacked.

Supported Databases:

  • Firebird 2.5, 3, 4
  • IBM DB2 for iSeries® v6.1, 7.1, 7.2, 7.3, 7.4
  • IBM DB2® 8, 9.1, 9.5, 9.7, 10.1, 10.5, 11.5, 11.5.7
  • Informix® 11.70, 12.10, 14.10
  • MariaDB 10, 10.3, 10.4, 10.5, 10.6.5, 10.9.2, 11.2
  • Microsoft Access™ 2003, 2007, 2010, 2013, 2019
  • Microsoft® Azure SQL
  • Microsoft® SQL Server® 2005-2022
  • MySQL® 5, 5.1, 5.5, 5.6, 5.7, 8, 8.0.25, 8.0.28, 8.2, 8.3
  • Oracle® 9i, 10g, 11g, 12c, 18, 19
  • PostgreSQL 8, 9, 10, 11, 12, 13, 14, 15, 16
  • Progress OpenEdge 11.6
  • SQLite 3.x
  • Sybase® ASE 15, 16
  • Teradata 16

SQL formatting configurations are provided for each supported database and appropriate formatting is automatically applied when you switch databases.

DatabaseSpy supports asynchronous query execution, allowing multiple SQL queries to be processed in different windows at the same time, either queries to different servers or even multiple queries against the same server.

Support for SQL Templates

DatabaseSpy includes support for SQL queries that contain parameters, also known as SQL Templates. Parameters can make a query much more flexible, for instance allowing users to easily test complex join statements with multiple values.

The DatabaseSpy SQL Editor and result windows at the top left below show a query to report all orders of a specific product by a specific customer.

This query could be much more flexible by replacing the product name ‘sprockets’ and the customer number 525 with parameters, as shown in the second query window above where the parameters :pname and :custnum are substituted for the product and customer.

Support for SQL templates in DatabaseSpy

When the query with parameters is run directly using the Execute button at the top left of the SQL Editor window, DatabaseSpy opens a dialog allowing the user to enter values for execution, and the result shown at the lower right is generated.

SQL Templates for DatabaseSpy can be saved in a special projects folder and executed dynamically. Often a user needs to create queries that generate test results to explore unfamiliar data. After a test query is executed, the user can select values from the result table and supply them as parameters to a SQL template stored in the project templates folder.

A new SQL Editor window opens with an automatically-generated query based on the template with selected values assigned to the parameters, the generated query is executed, and the result table is shown.

Supplying parameter values from a result table in DatabaseSpy

DatabaseSpy is AI-Ready

It's easy to access AI functionality directly in the SQL editor using the DatabaseSpy AI Assistant for creating sample SQL statements and data, creating relationships between tables with no current keys, and so on. DatabaseSpy also includes powerful extensions in the SQL Editor menu that use the power of ChatGPT:

  • AI-complete: Generate SQL statements, tables, etc.
  • AI-explain: Describe what a particular statement will accomplish when executed (shown below)
  • AI-explain-error: When a statement execution throws an error, a link is provided in the Messages window to request more information and troubleshooting steps
  • Pretty-print: Format SQL code to make it easier to read and understand

AI integration is a great tool to increase productivity and accelerate learning when working with relational databases.

Graphical Database Design

The DatabaseSpy graphical Design Editor lets you view and edit the structures of all your databases through one graphical user interface. You can examine tables and relationships in an existing database, edit tables to better suit your needs, or even can add entire tables and specify all their column attributes and relationships to other tables from scratch.

DatabaseSpy Graphical Database Design Tool

The DatabaseSpy database design tool graphical view lets you concentrate on the underlying structure of your data and any required modifications rather than the SQL commands required to implement them. As you work, the DatabaseSpy graphical database designer automatically constructs the SQL statements you will need, but you choose when to execute the database structure change script once all your edits are complete.

The graphical image of each table includes compartments you can expand to view in greater detail or collapse so you can concentrate on table relationships, which are clearly indicated with connecting lines.

The DatabaseSpy graphical database designer supports multiple databases and automatically adjusts contents of pull-down lists of data types and other specialized features.

Generate Complete DDL Scripts for Database Schemas

DatabaseSpy includes a new command to create complete DDL scripts for a database schema. When a database administrator needs to recreate a complete database structure, scripts are required not just to create tables, but also all views, constraints, indexes, functions, procedures, etc. that may be defined in the database.

Right-clicking any database schema in the Online Browser helper window offers the DDL Script command.

Generate Complete DDL Scripts for Database Schemas

The script is then immediately opened for review in a new SQL Editor window.

DDL Scripts are essential for backing up complete database structures, or to move a structure to a different server when the actual table contents are not required, such as moving from a development environment into production.

Data Visualization and Charting

A colorful, eye-catching chart is much more vivid and communicates meaning more effectively than a table of numeric data. DatabaseSpy provides a wide variety of charting features for visualization of SQL query results. Create the most accurate and vivid graphical representation of your data in line charts, bar charts, pie charts, area charts, and many more with advanced formatting options.

  • Chart & graph creation from SQL query results
  • Real-time updates when data changes
  • Granular customization of chart appearance
  • Support for background images
  • Chart overlays to combine chart types
  • Exporting charts in multiple image formats
  • Saving, copying, & printing charts
  • Multiple charts simultaneously from complex queries
DatabaseSpy Charts from Database Data

Now you can create attractive and informative charts data visualization of information in your database without exporting data to a dedicated charting application. Charts created using DatabaseSpy are customizable to suit business intelligence reports in HTML, Microsoft Word, RTF, or PDF documents, or you can save charts created in DatabaseSpy in your choice of .png, .bmp, .gif, or .jpg image formats at the custom resolution you specify.

The following chart types are supported:

  • Pie charts (2D & 3D)
  • Bar charts (2D & 3D)
  • Stacked bar charts (2D & 3D)
  • Area charts
  • Stacked area charts (with transparency)
  • Category and value line graphs
  • Candlestick charts
  • Gauge charts

Numerous customization options are available for each chart type, including chart titles, foreground and background colors, definition of axis ranges and labels, control of fonts, text colors, fonts and sizes, and more. Intuitive dialogs let you specify every element of a chart, even the tilt angle for 3D pie charts.

Advanced Database Reporting with Charts

For a more complete database reporting solution, Altova StyleVision is an award-winning tool for designing compelling reports and forms based on XML, SQL database, and XBRL inputs. With a few simple steps, you can access data in SQL databases and create visually compelling reports with charts in HTML, PDF, RTF, and Word (Open XML), along with Authentic enterprise forms, all in a single design. Then automatically regenerate the report with updated data any time it’s needed.

Database Content Editor

Information stored in relational databases is rarely static. Existing records are updated or removed, and new information is added to keep the database up to date and accurate, maintaining business value. DatabaseSpy offers convenient database editor tools for database table content. DatabaseSpy lets you edit the content of database tables in an interactive preview window.

As you work, the database editor interacts with the database in a limited manner. When all your changes are complete, you can review your edits and commit them all at once via the Commit button on the toolbar.

DatabaseSpy Database Content Editor

In addition to editing data stored in the database, you can learn more about information presented in any DatabaseSpy results table. You can select a range of cells and copy them to paste into another application, print the results table, or automatically calculate and display information about selected results. You can also sort the results by any column to display the table data in a more useful form.

Working with Binary Data

DatabaseSpy helps you easily process binary data in a column defined as a binary data type. You can load binary data into the table from an external file, or save binary data from the database to an external file. Binary data fields supported include BLOB, raw, binary, varbinary, image, and others, depending on the database type.

XML in Databases

Altova DatabaseSpy includes special features to explore, manage, and work with XML in databases. XML is established as the preferred method for exchanging structured data between enterprises, but storing XML data in a relational database adds a layer of complexity. DatabaseSpy includes robust tools to help you analyze and manipulate databases that contain XML information.

DatabaseSpy Supports XML in Databases

DatabaseSpy Features for XML:

  • View XML table contents in SQL query results
  • Expand individual XML cells with the Data Inspector
  • Send XML directly to XMLSpy for editing
  • Assign XML as the datatype for database table columns
  • Assign XML Schemas for XML columns
  • Add, drop, or view all database XML Schemas from one convenient dialog
  • Support for database vendor-specific XML terms in SQL queries

When you expand a database table using the DatabaseSpy Online Browser, columns containing XML data are identified in the Browser Tree. You can also explore XML Schemas registered in the database in the browser hierarchy. To examine any XML Schema in detail, you can send it to XMLSpy,, the industry-leading development environment for all XML-related technologies, where it is automatically opened in XMLSpy Schema View for intuitive graphical display.

The DatabaseSpy Data Inspector Window is a helpful option to display long XML entries contained in individual cells. The Data Inspector Window displays XML content with color coding and word wrap, and you can resize the window for a better view. You can also copy XML data from the results window or Data Inspector window to edit offline in XMLSpy. The updated external file is easily replaced in the database.

XMLSpy & SQL Database Integration:

  • Database quick-connect wizard
  • Database Query window with SQL editor
  • Import SQL database data to XMLSpy
  • Create XML Schemas based on SQL database structures
  • Export XML to SQL databases
  • Create a database schema from an XML Schema
  • Support for XML-enabled databases

Data Import and Export

DatabaseSpy lets you select any table or view from any connected database for export. If you select multiple tables or views for export, each is written to a separate file. You can also export XML, XML Structure, CSV, or HTML directly to Altova XMLSpy. When you’re working in the SQL Editor you even have a dedicated Export button to let you instantly open an export dialog box pre-loaded with your current SQL Editor statements.

DatabaseSpy Data Import/Export Tool

DatabaseSpy lets you import data into your databases from conventional CSV files or from files containing XML data. Using either format, you can create new tables or update existing tables in your database.

Database Import/Export Features:

  • Import data from XML or CSV formats
  • Import data directly or generate a SQL import script
  • Export data in XML, CSV, HTML, or Excel formats
  • Export from any database table or view
  • Export from a SQL query
  • Copy from query results window to paste into a new app
  • Preview data before import or export

Convert and Import Data

If you need to convert data from a dissimilar format before importing it to your database, Altova MapForce is the visual mapping tool with the power to map any combination of XML, database, text, or EDI files. MapForce can connect to all major databases and convert source data on the fly for direct insertion.

Supported Databases:

  • Firebird 2.5, 3, 4
  • IBM DB2 for iSeries® v6.1, 7.1, 7.2, 7.3, 7.4
  • IBM DB2® 8, 9.1, 9.5, 9.7, 10.1, 10.5, 11.5, 11.5.7
  • Informix® 11.70, 12.10, 14.10
  • MariaDB 10, 10.3, 10.4, 10.5, 10.6.5, 10.9.2, 11.2
  • Microsoft Access™ 2003, 2007, 2010, 2013, 2019
  • Microsoft® Azure SQL
  • Microsoft® SQL Server® 2005-2022
  • MySQL® 5, 5.1, 5.5, 5.6, 5.7, 8, 8.0.25, 8.0.28, 8.2, 8.3
  • Oracle® 9i, 10g, 11g, 12c, 18, 19
  • PostgreSQL 8, 9, 10, 11, 12, 13, 14, 15, 16
  • Progress OpenEdge 11.6
  • SQLite 3.x
  • Sybase® ASE 15, 16
  • Teradata 16

DatabaseSpy FAQ

Below is a list of commonly asked questions by customers evaluating SQL tools.

  • I need to work with several different database servers, including Oracle, SQL Server, MariaDB, and SQLite. Is there a SQL tool that lets me run queries and work with all these different databases from one environment?

    While many SQL editors are specialized for one particular database system, Altova DatabaseSpy supports 15 of the most prevalent relational database types including SQL Server, SQLite, Oracle, MariaDB, Firebird, DB2, PostgreSQL, Informix, and several others. Customers do not need to pay separately to connect to each DB type: they are all supported by DatabaseSpy.

    Users can connect to any supported database for SQL editing, database structure design, content editing, and database conversion tasks.

  • I need a SQL tool that has built-in AI support so I can both run my own queries and also have it create queries or other SQL code for me.

    AI support in a SQL tool is very helpful for increasing productivity and helping with SQL script generation. One such AI-ready database tool is Altova DatabaseSpy. It integrates ChatGPT functionality for query writing, data modeling, error resolution, and more.

    AI Chat Dialog in DatabaseSpy lets you enter natural language prompts to generate sample SQL statements, create sample data for a given table structure, create relations between tables that have no keys yet, and so on. The software also includes AI functionality for describing existing SQL statements and troubleshooting errors.

    Of course, you can run your own queries in addition to those generated by AI.

  • My team needs a SQL editor that can meet the needs of beginners and advanced users. It needs to be easy-to-use but also include the advanced functionality required for complex SQL work.

    For teams with varying skill levels, it is helpful to have a database tool that caters to both beginners and advanced users.

    One such SQL tool is Altova DatabaseSpy. DatabaseSpy was designed to increase productivity for database developers, DBAs, and data analysts of all skill levels. It offers a user-friendly interface with visual tools and wizards for beginners, while also providing advanced functionality such as SQL debugging, schema comparison, and database profiling for experienced users.

    DatabaseSpy also offers integrated AI functionality for generating and explaining SQL statements. This can be helpful for beginners learning SQL and advanced users looking to increase their productivity.

  • What is the most affordable SQL tool?

    Determining the affordability of a full-featured SQL tool can depend on various factors such as your specific requirements, the features you need, and your budget constraints. While there are some open source database tools that are free, they may have limited feature sets and/or only connect to a small number of database servers.

    One full-featured SQL tool known for its affordable price is Altova DatabaseSpy. This software starts at $169 for a perpetual license. This includes connectivity to the 15 most prevalent database types and a rich feature set including AI-integration, table browsing, data editing, SQL auto-completion, visual table design, database conversion, and more. These additional capabilities can provide greater flexibility, scalability, and efficiency, especially for complex business needs.