4

How to backup or script all the Synonyms of the database in SSMS?

Neeraj Kumar
  • 771
  • 2
  • 16
  • 37

1 Answers1

5

Right click your database in the object Explorer, and select "Tasks" -> "Generate Scripts...". On the Choose Objects window, select the "Select specific database objects" and tick "Synonyms" (like below):

enter image description here

Choose whether you want to save file to disc, clipboard or a new query window. Click Next and the next.

Done.

Thom A
  • 88,727
  • 11
  • 45
  • 75