In what version of SQL Server were synonyms released, what do synonyms do and when could you make the case for using them?

Technology CommunityCategory: T-SQLIn what version of SQL Server were synonyms released, what do synonyms do and when could you make the case for using them?
VietMX Staff asked 3 years ago
  • Synonyms were released with SQL Server 2005.
  • Synonyms enable the reference of another object (View, Table, Stored Procedure or Function) potentially on a different server, database or schema in your environment. In short, this means that the original object that is referenced in all of your code is really using a completely different underlying object, but no coding changes are necessary. Think of this as an alias as a means to simplify migrations and application testing without the need to make any dependent coding changes.
  • Synonyms can offer a great deal of value when converting underlying database objects without breaking front end or middle tier code.  This could be useful during a re-architecture or upgrade project.