Solved

Login name column empty when creating new users

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pivot Query Problem 9 38
CONVERT date time to a different time zone. 2 46
SQL Backup skipping a few tables 7 36
How to simplify my SQL statement? 14 50
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

Need Help in Real-Time?

Connect with top rated Experts

29 Experts available now in Live!

Get 1:1 Help Now