I'm trying to do something ultra-simple, yet SSMS keeps telling me there's a syntax error in this statement:
CREATE USER oboTest2
I pulled it straight from an example in a Microsoft Tech Ed document. I had previously created a server login of the same name as the user, and was trying to create the database user of the same name. This first piece of code executed fine:
EXEC sp_addlogin oboTest1, pa$$word, myDatabase
EXEC sp_addlogin oboTest2, pa$$word, myDatabase
but when I try to execute this:
CREATE USER oboTest1
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'USER'.
According to what I've read, this should be a perfectly legit syntax for 'CREATE USER' . Any ideas?