July 17, 2002 at 7:05 pm
Hi,
I restored a DB and found that login id for "dbo" user is empty. Please advice me how to assign the "sa" id to user "dbo" again. I have tried the sp_change_users_login. But it doesn't work on "sa" login id. I appreciate
that.
Supernova
July 17, 2002 at 8:43 pm
DId you try sp_change_users_login with the auto_fix action? Or what did you do exactly?
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
July 17, 2002 at 10:03 pm
I typed the following command with sa login id:
exec sp_change_users_login "Update_One", "dbo", "sa"
Server: Msg 15287, Level 16, State 1, Procedure sp_change_users_login, Line 34
Terminating this procedure. 'sa' is a forbidden value for the login name parameter in this procedure.
July 18, 2002 at 6:52 am
Have you tried:
sp_changedbowner 'sa'
If memory serves me right - I think there is an issue with using 'sa" with add user type stored proc
karen
July 18, 2002 at 6:56 pm
Hi Karen,
Thanks for the advice. Can you elaborate a bit on your advice? I don't understand. THanks.
Supernova
July 21, 2002 at 6:36 pm
Does anyone know how to solve this problem?
July 21, 2002 at 6:47 pm
How about sp_addalias?
Andy
July 23, 2002 at 12:22 am
I solve the problem by running sp_changedbowner "sa" . Thanks to all who helps.
Supernova
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply