Re: Tie down developer security



thejamie (thejamie@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
Our system runs production on 2000 and OLAP on 2005. I have just
glanced through Erland Sommarskog text for understanding schemas and
question that it may be possible to stop the user from altering
dbo.spMyProcedure but still enabling them to create
myuserlogon.spMyProcedure for testing purposes. This may not be worded
correctly - this works on tables... as in dbo.table1 and
myuserlong.table1.

GRANT CREATE PROCEDURE TO user1

should cut it. Note that user1 should not be added to any prededined
role.

By the way, there is yet one alternative for the really evil sysadmin:
the developer could be left to stick with temporary stored procedures:

CREATE PROCEDURE #mytempproc ... AS

If possible, is there a way to seed the permission process on 2000 so
that when the permissions are carried across to SQL 2005, very little
maintenence will need to occur to sync up restored databases from 2000
on the 2005 server?

I haven't tested what happens, but if you restore the database on
SQL 2005, everything should be like before. The user has permissions
to create procedures, but he only has access to the schema he owns
himself.



--
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: Grant access to applications only
    ... but to deny a direct user login e.g. via management studio. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)
  • Re: ALTER PARTITION FUNCTION PartFunc() MERGE RANGE & blocking
    ... I hope MS fix this livelock problem in the next service pack. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: IDENT_CURRENT and empty table
    ... >> And there is no definition what the result will be after fixing the bug. ... Books Online for 2005 is wrong and will be updated. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (comp.databases.ms-sqlserver)
  • Re: sorting twice?!
    ... So I run a query to select the top 20 when ordered by datemodified ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Rolling up spans without breaks between them
    ... CREATE TABLE periods (start datetime NOT NULL, ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)