I have a Development SQL Server that I'm managing with Active Directory Groups, sometimes when I do my checks on the server I find that some users were "automatically" added to SQL Server Database with their schema as default…
I noticed this because one user created a view and it was created with on his own schema…
Is there any configuration parameter that is allowing this? How can this be avoided?
Thanks,
Jimm
Best Answer
This is expected / documented behavior as noted in the documentation for CREATE SCHEMA (in the Remarks section):
I emphasized part of that final statement: you / they need to specify a schema name when creating objects (i.e.
CREATE TABLE Sales.TableName
instead ofCREATE TABLE TableName
). The schema name that you specify does not need to bedbo
, it just needs to already exist.