In this topic, you will learn how to create, edit, delete, duplicate, and manage synonyms from Database Explorer.
1. In Database Explorer, right-click a synonym or Synonyms node and select New Synonym.
2. In a SQL document, enter the CREATE SYNONYM statement. For more information, see Synonym Designer.
3. At the bottom of the SQL document, click Apply Changes.
1. In Database Explorer, right-click the synonym you want to edit and select Open Editor.
2. In a SQL document, edit the synonym.
3. At the bottom of the SQL document, click Apply Changes.
Alternatively, in the top menu, select File > Save, or press Ctrl+S.
1. In Database Explorer, right-click the synonym you want to delete and select Delete, or press Delete.
2. Click Yes to confirm the deletion.
Note
You cannot undo the drop synonym operation, as this action permanently deletes the synonym. To avoid data loss, back up the database before deleting the synonym.
1. In Database Explorer, right-click the required synonym and select Duplicate Object.
2. In the Duplicate Object dialog, configure the object settings:
3. Click OK.
1. In Database Explorer, right-click the required synonym and select Generate Script As, then select the statement type.
2. Select one of the following output options:
For more information, see Generate the DDL and DML statements for database objects.
To add to Query Builder: In Database Explorer, right-click the required synonym and select Send To > Query Builder.
To add to Master-Detail Browser: In Database Explorer, right-click the required synonym and select Send To > Master-Detail Browser.
To view synonym properties, in Database Explorer, right-click the synonym or Synonyms node and select Show Details.
Object Viewer opens, displaying detailed information about the synonym.
To update the synonym to reflect the latest changes, in Database Explorer, right-click the synonym or Synonyms node and select Refresh, or press F5.
To open the Properties pane, in Database Explorer, right-click the synonym and select Properties, or press F4.
1. In Database Explorer, right-click the Synonyms node and select Filter.
2. In the Filter Settings dialog, configure the filter parameters.
3. Click OK to apply the filter.
Note
When you open the Synonyms node, the number of objects it contains appears in parentheses next to the node name. This number changes based on your filter settings.