Solved

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

Posted on 2009-05-06
5
270 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

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

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

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

729 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