Re: sp_detach_db when not using a system administrator role



If you are using SQL 2005, you can create a procedure and give RUN AS
permissions.

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous


"Dave" <Dave@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:856A3066-B973-4710-94E7-3AE47C11D278@xxxxxxxxxxxxxxxx
I am working on a system where I create an archive file using a modified
sp_create_removable that allows non sysadmin to run it.

The file can be created fine as db_owner but when I attempt to detach
using
sp_detach_db I cannot because I have to be a system administrator to use
that
procedure which calls sp_updatestats and DBCC DETACHDB.

Anybody ever get around this before?
--
Regards,
Dave


.



Relevant Pages

  • Re: View Permissions by User
    ... Arnie Rowland, Ph.D. ... Most good judgment comes from experience. ... How do I view permissions by user in SQL Server 2005. ...
    (microsoft.public.sqlserver.security)
  • Re: View permissions
    ... Read up in Books on Line about 'cross database ownership chaining'. ... Arnie Rowland, Ph.D. ... Most good judgment comes from experience. ... In the past we have assigned permissions to just ...
    (microsoft.public.sqlserver.security)
  • Re: Domain or Workgroup
    ... Arnie Rowland, Ph.D. ... Most good judgment comes from experience. ... to connect to a server and not being properly configured. ... installed, since better security is now available, file storage may be ...
    (microsoft.public.sqlserver.clients)
  • Re: Domain or Workgroup
    ... comments which contradict others' suggestions or material in a ... Arnie Rowland, Ph.D. ... Most good judgment comes from experience. ... to connect to a server and not being properly configured. ...
    (microsoft.public.sqlserver.clients)
  • Re: Domain or Workgroup
    ... Arnie Rowland, Ph.D. ... Most good judgment comes from experience. ... to connect to a server and not being properly configured. ... installed, since better security is now available, file storage may be ...
    (microsoft.public.sqlserver.clients)