The SQL Formatter formats SQL statements, verifies syntax, and color-codes variables, invalid field or table names, optimization forces and comments. The use of indenting and highlighting gives SQL statements a standard of formatting that is easy to read.
To format a SQL statement
Click .
After entering a SQL statement in the left pane of the window, click .
Comments, bind variables, optimizer forces, invalid column or table names, and variables are highlighted in different colors. If there is a syntax error, an error message from Adaptive Server displays.
When your SQL statement uses a temporary table, you must create a temporary table before you use the SQL statement in several modules. When you exit from the program or connect to another session, all the temporary tables you created are dropped.
Click .
On the Creation tab, type in the statements for creating the temp table. You may include CREATE, SELECT INTO, INSERT, UPDATE and DELETE statements.
Click Execute.
Throughout the use of the product, SQL statements are saved in the SQL History so that you can use them again. They are stored in a file so that they are available even if you exit the program.
Click .
To lookup SQL statements, enter the text string to search for in the SQL Text field. You can specify if you want to search in the last connection or last action. In the Last Action field, select an action from the drop down field. Only actions that have occurred in the present session will be available.
Select the SQL statement and click one of the buttons in the window to copy the SQL statement to another module.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center