Diagnose SQL statements
You can diagnose SQL statements and view optimization suggestions in the SQL console of Data Management (DMS).
Procedure
Log in to DMS 5.0.
In the top navigation bar, choose .
NoteIf you use the DMS console in simple mode, move the pointer over the
icon in the upper-left corner of the console and choose . In the Please select the database first dialog box, enter a keyword to search for a database, select the database instance from the search results, and then click Confirm.
-
In the command execution area, enter the SQL statement that you want to diagnose, and then click SQL Diagnostics.
-
After the diagnosis is complete, view the diagnosis results in the SQL Diagnosis dialog box.
The diagnosis results include Diagnosis suggestions and Optimization suggestions.