By using the SQL Object search feature, objects in MySQL or MariaDB databases can be found such as tables, table columns, stored procedures, user-defined functions, procedure and function parameters, views, etc. based on a specified phrase in the Search phrase box of the Object search pane:
Quick tip:
|
To open the SQL Object search pane and start searching, firstly, the feature needs to be launched using the Object search command. From the ApexSQL server explorer pane, select a MySQL or MariaDB server, right-click, and, from the context menu, choose the command as shown below:
The same command is available at a database level. In the ApexSQL server explorer pane, expand a MySQL or MariaDB server, under the Databases folder, select a database for which want to search objects, right-click and, from the context menu, select the Object search command:
On the Object search pane, besides the search phrase that can be set in the Search phrase box and selecting server and database for searching objects from the Server and Database drop-down box, additionally, the searched scope can be narrowed down by checking only the objects types which you are interested in (table, table columns, stored procedures, etc.) under the Search for object types section:
By default, the Tables checkbox in the Search for object types section is checked.
To specify where the search phrase should look for the results, select either the Object name or the Object bodies option or both.
By default, the Object name option is checked:
Quick tip:
|
For example, if under a stored procedure (e.g., rewards_report), in the comment, a word exists that matches the searched criteria that is set in the Search phrase box (e.g., Customer IDs) when the Find button is clicked, in the search result grid, a procedure will be shown which contains the word in the body:
To perform a search for the specified word in the Search phrase box only, the Exact match option needs to be enabled:
Note: When this option is enabled, and the word film is specified, results only for that word will be displayed in the search result grid – results for words like film_actor, film_text, etc. will be ignored.
Under the search result grid as in the Name column, when clicked on the value, the searched objects can be easily located in the ApexSQL server explorer pane:
All results from the search result grid can be exported in one of the available formats like Excel, HTML, CSV, JSON.
On the top right corner of the search result grid, there are icons for exporting values in the above-mentioned formats. Click on the icon for the desired format (e.g., Export to Excel) and in the Sava as window, choose a file location, enter a name for the file and click the Save button:
The exported data will look like this:
Q: Can search be performed on the system databases using the SQL Object search feature?
A: Yes, it can.
Q: I used the Object search feature, but any of the system databases are not shown under the Database drop-down list. What should be done to system databases to appear in the Database drop-down list?
A: To see system databases in the Database drop-down list of the Object search pane, first the Show system databases in server explorer option under the Extensions setting needs to be enabled:
Once enabled the option, the system databases will appear in the Database drop-down list:
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center