Re: sp_change_users_login use after restore
From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 12/07/03
- Next message: Dan Guzman: "Re: Security model"
- Previous message: Don R. Watters: "Re: sp_change_users_login use after restore"
- In reply to: Ken: "sp_change_users_login use after restore"
- Next in thread: Ken: "Re: sp_change_users_login use after restore"
- Reply: Ken: "Re: sp_change_users_login use after restore"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 6 Dec 2003 19:56:36 -0600
To add to the other responses, perhaps the login us a member of the sysadmin
role on the new server. In that case the login will will be 'dbo' in the
database instead of the normal userid and will need to qualify the table
name.
-- Hope this helps. Dan Guzman SQL Server MVP "Ken" <raidken@yahoo.com> wrote in message news:f1d5649d.0312061424.49641d12@posting.google.com... > Hello, > > I restored a sql server 2000 database to a new server. After the > restore, I used sp_change_users_login to correct orphaned users. > > Here's the problem, now I am having to prefix all objects with the > owner name. > > Even though I am logged in as the user who owns the employee table. > select * from employee ---does not work > select * from <owner>.employee -- works > > The sysxlogin table and the sysuser table have the identical SID for > the user, so I would assume SQL Server should be able to associate the > database user with the login name. > > Any help will be highly appreciated. > > Thanks > > Ken
- Next message: Dan Guzman: "Re: Security model"
- Previous message: Don R. Watters: "Re: sp_change_users_login use after restore"
- In reply to: Ken: "sp_change_users_login use after restore"
- Next in thread: Ken: "Re: sp_change_users_login use after restore"
- Reply: Ken: "Re: sp_change_users_login use after restore"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|