Re: SQL Server 2005 Security Schema Naming



Matt Sonic (MattSonic@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
I don't have any experience working with existing databases and am having
trouble fathoming what SQL Server 2005 Schemas would be named and what
exactly they would represent.

A schema is essentially a name space. Say that you have a large database,
and there are several groups that work independently with different
applications. If each group have their own schema, they can avoid unexpected
name clashes. Since privileges can be assigned schema level, schemas can
also be used to make sure that one group does not fiddle with the tables
or procedures of other groups.

Oh, my database has about 10 - 15 major business objects. It doesn't
make sence to put each into it's own schema. An then what about the
minor ones?

There will be many databases where it will be very reasonable to have
everything in the dbo schema.


--
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

  • xSQL Object 2.5.2.7
    ... synchronizing SQL Server databases. ... Server 2000 database with a SQL Server 2005 database and generate ... history of the schema changes and provide for safe and ... differences, view the scripts of objects, filter results and more; ...
    (comp.software.shareware.announce)
  • Re: SQL Server Express
    ... GRANT CREATE DATABASE on DATABASE::xxx to SAM ... The Windows users have rights because they are administrators. ... "SQL Server and Windows authentication mode".. ... database users, and then define the schema, and this is working. ...
    (microsoft.public.sqlserver.msde)
  • Re: string from column value
    ... Pro SQL Server 2000 Database Design ... What is wrong with the schema? ... >> Pro SQL Server 2000 Database Design ...
    (microsoft.public.sqlserver.programming)
  • Re: multiple cascade paths
    ... You should not have them if your schema is designed properly. ... make you understand that I tried to show that a proper design can have ... am a SQL Server MVP, for crying out loud - you can safely assume that I ...
    (comp.databases.ms-sqlserver)
  • Re: Need help on how to organize users and objects
    ... Yes Oracle is a bit different than Sql Server, but I think you will get the ... It doesnt become part of any schema until you assign it. ... a new developer started to work. ... need the COMMON database which stores tables with generic data and generic ...
    (microsoft.public.sqlserver.security)