They can be used for both I suppose, but here is the way I normally think about them.
Think of schema's as groupings of tables. This way, you can always see the tables grouped together by schema that are related. Also you will probably need a common schema for ones that are shared.
I would use roles for the security portion. The roles can then have privileges to multiple schemas, and you can still see the tables regardless of the roles.
In short, schema is good for organization, roles are good for security.
Reputation Points: 133
Solved Threads: 141
Veteran Poster
Offline 1,162 posts
since Aug 2008