Re: Sql permissions headache
- From: bill <bill@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 22 Aug 2006 14:32:01 -0700
Many of our users, but not all, are in groups (but we are going in that
direction.) Most of the users were created under sql 2000 EM so we have no
scripts as such. Is there significant value to scripting them all? And even
if we do script them, the big problem is knowing was rights to assign them.
(I mentioned stored procs as a particularly painful point.)
Bill
"Mike C#" wrote:
Well, at the bottom of all of the scripts I create for database object.
creation (tables, views, stored procs, etc.), I put a GRANT statement to
apply permissions to that object on creation. Are your users already
grouped together under roles for each application at least? If so, GRANTing
object permissions at the end of your object creation scripts should be a
(fairly) trivial matter.
"bill" <bill@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:30625C86-D80C-494D-AB8E-63566A27AD93@xxxxxxxxxxxxxxxx
We are actually using both. We have some older systems that don't
recognize
Windows authentication.
Bill
"Mike C#" wrote:
Are you using Integrated security or SQL Authentication?
"bill" <bill@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:482EB4F8-7055-405A-AD5F-F2B3A6D68AE1@xxxxxxxxxxxxxxxx
In many of our older sql databases I find that the users were all made
"dbo".
I was told this is because no one really knew the minimum permissions
needed
by the apps that accessed the database. (I'm afraid that this practice
may
creep into production databses.)
Read and write permissons are easy to address but stored procs are
harder.
We are always adding new ones to a DB and, if we don't make all users
dbo,
we
need to explicitly add permissions to each stored proc. At least that's
what
I think we need to do.
Can you suggest a better approach to determine the minimum permissions
needed to access a database?
Bill
- Follow-Ups:
- Re: Sql permissions headache
- From: Mike C#
- Re: Sql permissions headache
- References:
- Re: Sql permissions headache
- From: Mike C#
- Re: Sql permissions headache
- From: Mike C#
- Re: Sql permissions headache
- Prev by Date: Re: OSQL Batch File Problem
- Next by Date: Re: secure query results
- Previous by thread: Re: Sql permissions headache
- Next by thread: Re: Sql permissions headache
- Index(es):
Relevant Pages
|