All Products
Search
Document Center

Data Management:Diagnose SQL statements

Last Updated:Mar 28, 2026

SQL Diagnostics in Data Management (DMS) analyzes SQL statements directly in the SQLConsole and returns detected issues with optimization suggestions. Run a diagnosis before executing queries in production to catch performance problems early.

Prerequisites

Before you begin, ensure that you have:

Diagnose a SQL statement

  1. Go to the DMS console V5.0.

  2. In the top navigation bar, choose SQL Console > SQL Console.

  3. In the Please select the database first dialog box, enter a keyword to search for a database, select the database from the search results, and then click Confirm.

  4. On the SQLConsole tab, enter the SQL statements you want to diagnose, and then click SQL Diagnostics.

  5. In the SQL Diagnosis dialog box, review the results.

Understand the diagnosis results

The SQL Diagnosis dialog box returns two categories of output:

  • Detected issues: Problems identified in your SQL statements.

  • Optimization suggestions: Specific actions to resolve each detected issue.

Review each suggestion and apply the ones relevant to your workload before running the statements in production.