Re: Creating new user default to DB_owner role



Jacques (Jacques@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
When I create a new SQL login via SSMS the user gets assigned db_owner
role by default. This only happens on the one database.

Removing the db_owner role during creation of the user causes SSMS to
fail with an error because it tries to remove the user that is being
created from the db_owner role.

A DDL trigger that adds all new users to db_owner?

Does the same happen if you run CREATE USER from a query window?


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Enter Todays Date in SSMS Open Table Grid View
    ... If you don't want to consult your watch, you will have to write an INSERT ... Is there an SSMS ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: View Columns do not show in Object Explorer
    ... up in SSMS, and that's where Object Explorer lives. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: SSMS Query Editor... Vs Query Analyser
    ... > close SSMS. ... > I'm just venting my frustration with the SQL 2005 tools. ... >> Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... >> Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: Allow users to only see their mapped DBs
    ... When they open up SSMS today, ... see all the DBs; I want to restrict their view to only the DBs that ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)
  • Re: Create One Trigger For Both Update and Delete
    ... Permit me to point that your example exhibits ... the INSERT statement will fail. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)