Solved

Login name column empty when creating new users

Posted on 2008-06-16
2
309 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
execute a MS SQL script as a schedule SQL job 72 144
Need help with a query 6 81
Database maintenance 36 108
Better way to filter date  - Query 5 25
There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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