Re: ddl admin privilage



MO (MO@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
I have an existing production archive/copyback process. Using 'sa'
authority, it archives records from one db to another archive server. In
some cases buisness can request us to "copyback" some of the archived
records from archive server. Tables have identity columns on it. I set
the identity_insert on and then do this copyback funtion using 'sa' id.
In order to set the identity property, one needs ddl_admin or sysadmin
priv.

Problem is I need to transfer this whole process to a developer who
does not have sa authrity or ddl_admin rights. I don't want to give
those rights to him. How can I accomplish this w/o compromising on
security ?

The obvious suggestion is that you should change the table so that it
does not use IDENTITY, but you would generate your surrogate keys on
your own. The one case where this is not recommendable is when you
have a high insertion rate from multiple sources. In this case, rolling
your own leads easily leads to contention.

If you are on SQL 2005 you can put the process into a procedure that you
sign with a certificate. I have an article on my web site that discusses
this in detail: http://www.sommarskog.se/grantperm.html.

--
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: Virtual Directory - Permission Denied with fso CopyFile
    ... I configured IIS on another machine to use that UNC share as its website ... I set both ConnectAs and AnonymousUser to this user credential ... web server where ASP executes to a separate remote server. ... with a shared credential between IIS and the archive server, ...
    (microsoft.public.inetserver.iis)
  • Re: Virtual Directory - Permission Denied with fso CopyFile
    ... CopyFile does not have permissions on the named remote resource. ... from the web server to the archive server). ... Set the ACLs of the FileSystem namespace to allow Write & Modify access ...
    (microsoft.public.inetserver.iis)
  • Re: ssh back to the same server
    ... > and act upon other servers, one of which is an archive server. ... the jobs server and archive server have been ... I'm using open ssh 3.4p1. ...
    (SSH)
  • Re: Questions about Exchange 2003 & Archiving Email
    ... it sounds like Exchange has similar requirements to SQL Server would I ... Thinking about moving from our current mail server MDaemon with MDaemon ... Archive Server to Exchange. ...
    (microsoft.public.exchange.setup)
  • RE: SBS 2003 Unable to connect to database STS_Config
    ... Uninstall the SQL server from the SBS 2k3 server from add/remove programs ... Uninstall Microsoft SQL Server Desktop Engine (SHAREPOINT) ... If AV software install any extra IIS virtual directory, ...
    (microsoft.public.windows.server.sbs)