Solved

Login name column empty when creating new users

Posted on 2008-06-16
2
310 Views
Last Modified: 2011-10-19
Hi, I am creating new users in SQL Server through Enterprise Manager. All my users are remote, so I type the domain\user in the login name, and the name is copied automatically. Some of the users are created correctly, and I can see they have information in the name column and in the login name column. The problem is that for some other users, the login name is empty, and these users can't connect to the server, a system message appears saying the user "domain\user" doesn't have access to the server. I checked all the setting in the active directory, and all the users have the same settings, I can't find any difference between the users that display information in the login name column, and the others that don't. I attached a file where you can see how the screen shows a user that has complete the columns, and other which has missing the information in one of the columns. Could you help me to search what is happening?. Thanks.
Document1.JPG
0
Comment
Question by:aviveros
[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
2 Comments
 
LVL 11

Expert Comment

by:dready
ID: 21798901
Are these maybe users that allready existed in a Database that you restored a Backup from? In that case, have a look here:
http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_23001594.html

0
 

Accepted Solution

by:
aviveros earned 0 total points
ID: 21803081
I reviewed the related case, apparently I also have the problem of orphaned users. I created new the database, so it is not possible the accounts have existed previously. I deleted the users and I checked they don't exist in Enterprise Manager > Database > Security, then I created again the users, and the problem still continue, the login name column is empty. If I run the stored procedure suggested for the other case, I get the following results:  
   sp_change_users_login 'AUTO_FIX','CSERNA'  
   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.  
I think it is because the user is a domain user, and this procedure only works for repair SQL users.  
Maybe other solution that can solve the problem, is if I modify the VB code in my program to access the database with the "sa" user instead of the domain user. The code in the program to access the db is the following:  
    cnn.Open "Provider=SQLOLEDB; " & _  
             "Initial Catalog=PRODUCCION; " & _  
             "Data Source=CPZZ400KRONOS01; " & _  
             "integrated security=SSPI; persist security info=True;"  
How do I have to change the code to access the db with the "sa" user?. The code is in VB v.6. Thanks.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

734 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