Results 1 to 3 of 3

Thread: Database Role Migration

  1. #1
    Join Date
    Mar 2006
    Posts
    127

    Database Role Migration

    Hi All,

    I recently migrated one of the databases I support from SQL Server 2000 to SQL Server 2005 using backup/restore. I didn't have any errors or issues until the time when the application that uses this database tried to execute a stored procedure. The application failed and once I ran a sql profiler, I determined that the reason it failed because the user that tried to execute this sp didn't have execute permission. This user is in the database role. When I compared this database role's permission to database role's permission in SQL Server 2000, then this database role has an execute permissions on this stored procedure in SQL Server 2000. I am not sure what went wrong but somehow the permissions that were assigned to this database role didn't carry over to SQL Server 2005.

    Any ideas?

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Are logins mapped properly to database user?. You can run sp_change_users_login 'report' to see if there are any mismatched logins.

  3. #3
    Join Date
    Sep 2002
    Posts
    5,938
    Did you copy sql logins used from sql2k to sql2k5? If so, you can remap sql login to db user with 'sp_change_users_login auto_fix, user_name'.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •