SQL Complete provides smart prompts for database objects and SQL statements.
When you type a query, SQL Complete displays names of all valid databases. It also displays objects from the specified database or schema, or column names from the specified table. Object types have different icons, so you can easily recognize them. The complete list of the supported types is available in the Prompt List Supported Types topic.
SQL Complete provides a list of expected keywords to use in the current position of your code. For example, if you type SELECT *, the list shows all available keywords that match the context.
SQL Complete displays names of the following linked servers:
When calling any built-in or user-defined function in a query, a hint with information about the function and parameters it requires appears.
For JOIN clauses, SQL Complete can suggest a full JOIN clause that is based on foreign keys, or conditions that are based on column names and foreign keys. This suggestion is available after JOIN and ON keywords.
SQL Complete displays a list of database objects from a current database or schema even when their names are not specified in a query. Also, the tool finds USE statements in code and changes the current database for subsequent SQL statements.
This feature ensures that values of variables are taken out from the document and object suggestions work as with an ordinary SQL script when scripts are executed with the help of the command line utility.
This feature allows defining column lists for selecting, grouping, sorting and inserting without typing any code at all.
* These features are available in the Standard edition of SQL Complete only.
** The Express edition of SQL Complete offers partial support of these features. Full support is available in the Standard edition only.
If you are writing a query against a database while someone else is making changes to its structure, the suggestions offered by dbForge SQL Complete may become out of date. For instance, if someone added several tables to a database while you were connected to that database, the tables will not appear in the suggestions box. To reload the database objects, click Refresh Local Cache on the SQL Complete menu. Refreshing suggestions applies only to the database to which you are currently connected.
If you connect to a number of different databases during the same session, dbForge SQL Complete will load all the objects for each database as required, without unloading any of the previously stored objects. This means that you can go back to previous queries and continue to see suggestions for any database to which you were connected previously.
dbForge SQL Complete loads database objects into its memory whenever you connect to a database, in order to display suggestions from that database. If you connect to several databases with a large number of objects, this may eventually result in running out of memory. To reset the memory at any time, click Reset Suggestion Cache on the SQL Complete menu.