Re: Security Script

From: Sammy The Bull (NoOne_at_NoWhere.com)
Date: 08/21/03


Date: Thu, 21 Aug 2003 10:46:28 -0400


Don't think that's it.

You when you restore a database, or attach it, SQL Server maintains the
logins but removes all permissions to databases and their objects. There
apparently is a script that assists in restoring access to databases, and
permissions to the objects.

"Dan Guzman" <danguzman@nospam-earthlink.net> wrote in message
news:unobRQ#ZDHA.2032@TK2MSFTNGP10.phx.gbl...
> Are your referring to sp_change_users_login? You can find documentation
> for this procedure in the Books Online
> <tsqlref.chm::/ts_sp_ca-cz_8qzy.htm>.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> -----------------------
> SQL FAQ links (courtesy Neil Pike):
>
> http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
> http://www.sqlserverfaq.com
> http://www.mssqlserver.com/faq
> -----------------------
>
> "Sammy The Bull" <NoOne@NoWhere.com> wrote in message
> news:eZYGmF%23ZDHA.1872@TK2MSFTNGP12.phx.gbl...
> > This has probably been asked a million times but...apparently there is
> a
> > script available on microsoft.com that will assist in re-setting up
> security
> > on SQL Server after a restore/sp_attach_db...does anyone know where I
> can
> > find it, or what to search under?
> >
> > Thanks.
> >
> >
>
>



Relevant Pages

  • Re: Please answer my queries for fresh Installation
    ... You can restore MSDB as well as master. ... > SQL Server, It will create Master, MSDB databases. ...
    (microsoft.public.sqlserver.server)
  • Re: Moving SQL Server 2000 from NT4.0 to Windows 2003
    ... Detach your existing user databases, ... user databases (or RESTORE) to the new server. ... > Hey Steve, ... Windows 2003 will not allow SQL Server SP less than 3. ...
    (microsoft.public.sqlserver.server)
  • Re: Server Migration...
    ... If you have restored all of your databases, ... Columnist, SQL Server Professional ... Does that mean I need to restore all user databases first and I restore ... Master, MSDB, Model. ...
    (microsoft.public.sqlserver.server)
  • Re: Please answer my queries for fresh Installation
    ... Moving SQL Server Databases ... Using WITH MOVE in a Restore to a New Location with Detach/Attach ... Disaster Recovery Articles for SQL Server ...
    (microsoft.public.sqlserver.server)
  • Re: Configuring SQL 2000 for use with ESRI ArcSDE
    ... You can assign SQL Server users to database roles using sp_addrolemember: ... Permissions are entirely application specific. ... vendor for clarification of security requirements. ... I have Two databases 3 Roles ...
    (microsoft.public.sqlserver.server)