Code:
ALTER TABLE Foo
ADD CONSTRAINT fk_bar FOREIGN KEY
bar(nvarchar(255), null)
REFERENCES herp.derp(foobar);
Nets me a
Code:
Msg 102, Level 15, State 1, Line 3
Incorrect syntax near 'bar'.
I've tried multiple variations of the command but I keep getting a similar error message. This is on SQL Server 2008. Its a test db so I'm not too concerned about messing up.