RE: Execute permission lost for nonadmin user after db migration with

From: Mike Epprecht (SQL MVP) (mike_at_epprecht.net)
Date: 10/12/04


Date: Mon, 11 Oct 2004 22:57:04 -0700

Hi

Your problem is that users are stored in master. You moved your DB from one
server to another one that does not have the same users in it's master.

Generally, before you detach and attach, script out the users and
permissions, remove the permissions, detach the DB, attach the DB and then
re-apply the users and permissions from the script.

The user ID between syslogings and sysusers in the master and user DB must
match exactly, the name is not a good enough match.

You can also copy users between servers by creating a new DTS task using the
'Transfer Logins Task' and running it.

Regards
Mike

"dimitrie" wrote:

> I have moved a SQL2000 database from one machine to another by detaching and
> attaching the database from enterprise manager.
> All went well except that I have lost execute permissions on a bunch of
> stored procedures for non admin users. I have not lost the user.
>
> Has anyone else has experienced this problem?
> Is this normal? How can I avoid this happening?
> Is there a way I can compare permissions with the old db without going and
> manually check each and every sp?
>
> The first machine was a Win 2000 machine and the target was Windows 2003.
> I'm not sure that it matters
>
>
> Thanks,
> Dimitrie
>
>
>



Relevant Pages

  • Re: Saving an ADO Result Set
    ... --user permissions ... use master ... EXEC sp_addlinkedserver 'MYSERVER2', N'SQL Server' ... --than do query with INTO ...
    (borland.public.delphi.database.ado)
  • Re: write with cURL
    ... execute permissions. ... of potential security risks from other users on the same server. ... I made this suggestion because their web host appears to run Apache ... risk to allow Apache's group write access, since all PHP scripts ran ...
    (alt.php)
  • RE: Windows 2003 Server - Everyone Group
    ... this folder only accessable by the users in the "special" group. ... Configure User and Group Access on an Intranet in Windows Server ... NTFS files system permissions control ... group that you want to set permissions for, click Check Names to verify the ...
    (microsoft.public.win2000.networking)
  • Fail DBD::Mysql 4.003 installation
    ... This test requires a running server and write permissions. ... permissions, then retry. ... Failed 9/9 tests, 0.00% okay ...
    (perl.dbi.users)
  • Re: write with cURL
    ... execute permissions. ... of potential security risks from other users on the same server. ... I made this suggestion because their web host appears to run Apache ... risk to allow Apache's group write access, since all PHP scripts ran ...
    (alt.php)