Solved

user is not in db user table but it is in sysxlogins table

Posted on 2009-05-06
5
269 Views
Last Modified: 2012-05-06
expert,

One user login it is in sysxlogins but It is not in the db user table, how can I
map this user from sysxlogins to user table? it was in db user table before.
I used,
EXEC sp_change_users_login 'Report', ( this user is not in report list)
EXEC sp_change_users_login 'Auto_Fix', 'LLCK\usr1'
EXEC sp_change_users_login 'Auto_Fix', 'usr1', ''LLCK\usr1'', 'password'

but none of work. Please help!!!!

0
Comment
Question by:yrcdba7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 24319883
are you sure you run it on the user database /
0
 

Author Comment

by:yrcdba7
ID: 24320388
EXEC sp_change_users_login 'Auto_Fix', 'LLCK\usr1'

output is:
The number of orphaned users fixed by updating users was 0.
The number of orphaned users fixed by adding new logins and then updating users was 0.

2. then I ran this one,
sp_change_users_login 'update_one', 'LLCK\usr1', 'LLCK\usr1'

output is like,
Server: Msg 15291, Level 16, State 1, Procedure sp_change_users_login, Line 88
Terminating this procedure. The User name "LLCK\usr1' is absent or invalid.
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 24321688
are you sure you haven't forgotten to create the user in the database?

0
 

Author Comment

by:yrcdba7
ID: 24326211

Yes, I checked that DB, the user is in the DB.  If the user is not with domain I usually delete the user in DB and security login, then create it again, but I can not del it.  If I do, I have to ask windows team to create it again. I think it should have some idear to fix it.  but I tired above, it did not work.
0
 

Author Comment

by:yrcdba7
ID: 24326231

Is any way to map sysxlogins user to db users ?
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question