Skip to content

Instantly share code, notes, and snippets.

@iainelder
Last active August 29, 2015 14:10
Show Gist options
  • Save iainelder/3dd92d4add5e1ff0b754 to your computer and use it in GitHub Desktop.
Save iainelder/3dd92d4add5e1ff0b754 to your computer and use it in GitHub Desktop.
Repro for "Synonym chaining is not allowed".
CREATE SYNONYM first_link FOR second_link;
CREATE SYNONYM second_link FOR third_link;
CREATE TABLE third_link (a INT);
-- Msg 470, Level 16, State 1, Line 7
-- The synonym "first_link" referenced synonym "second_link". Synonym chaining is not allowed.
SELECT *
FROM first_link;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment