Edit synonyms in MS SQL Server 2005

Margaret picture Margaret · Jul 3, 2009 · Viewed 14.2k times · Source

Out of curiousity, is there any way to edit an existing synonym? That is, change which table the synonym is pointing to...

Thus far I seem to have had to delete and re-create them, because they're locked from being edited. It's not a big deal, but at the same time it's a little irritating.

GUI or scripting, but preferably GUI.

Answer

jn29098 picture jn29098 · Jul 3, 2009

There is no

ALTER SYNONYM

You have to drop and recreate the synonym. See this article.