I created two schemas inside the same database by right-clicking the Security node and selecting New -> Schema. They are both owned by dbo.
In SSMS new query window I am able to create tables (using T-SQL) making the table owned by one of these schemas:
CREATE TABLE MYDB.SCHEMA1.CATS ...
but when I try to do the same with the other schema it is not allowed:
CREATE TABLE MYDB.SCHEMA2.DOGS ...
In SSMS new query window, the word SCHEMA2 is underlined in red and when I hover the mouse on it, an error message appears saying that the schema does not exist in the current database or I don't have the permission to use it.
I am confused because I created these schemas using the identical procedure, one right after the other.
P.S. I first tried the names ALL and GLOB (intending to make a schema that contained tables that were company-wide rather than limited to a specific application) and then thought maybe these names were reserved words and that was the source of the error. But then I created the second schema with the name EALL and that had the same error.
How do I see who has permission to use a schema?