Re: Chain of ownership
From: Wayne Snyder (wayne.nospam.snyder_at_mariner-usa.com)
Date: 06/23/04
- Next message: Kevin3NF: "Re: Synch two databases..."
- Previous message: Wayne Snyder: "Re: Trigger Error"
- In reply to: Alan: "Chain of ownership"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Jun 2004 07:59:04 -0400
The first thing is ... individuals should NOT own objects... You must have a
really good reason to allow John to own any object...Because you are hard
coding his user name is all of your Sps, views, and client apps...
What will you do when John leaves the company?...
In any case, the front end app can use ANY login, which maps to a user in
the database which has permissions on the Stored procedure AND permissions
on Johns table..
IF you had an unbroken chain of ownership... ie DBO OWNS Everything... You
would ONLY have to have permission on the SP... So the permission structure
gets much simpler...
If you are in a position where you might re-think allowing broken chains of
ownership - please consider enforcing a 'DBO OWNS EVERYTHING' policy.
you will find your apps will be easier to maintain, less error prone, and
that security in SQL will also be easier, and performance will improve...
-- Wayne Snyder, MCDBA, SQL Server MVP Mariner, Charlotte, NC www.mariner-usa.com (Please respond only to the newsgroups.) I support the Professional Association of SQL Server (PASS) and it's community of SQL Server professionals. www.sqlpass.org "Alan" <NOSPAMalan_pltse@yahoo.com.au> wrote in message news:u35yL2OWEHA.2844@TK2MSFTNGP11.phx.gbl... > In our development environment, I am writing a stored procedure using > another's table like 'John.Customer', so John need to grant me the select, > insert...ect access, right ? > > Can someone explain when there is client application like VB, VC++ or Delphi > (I think it does not matter what languages) connect to the SQL Server, if > that client application needs to call this stored procedure, what > login/password it needs ? > >
- Next message: Kevin3NF: "Re: Synch two databases..."
- Previous message: Wayne Snyder: "Re: Trigger Error"
- In reply to: Alan: "Chain of ownership"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|