Solved

Login name column empty when creating new users

Posted on 2008-06-16
2
306 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
Comment Utility
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
Comment Utility
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MS SQL + Default Value + Row Above 13 53
Group by correlation 4 43
SQL help 5 46
Query - which index being used? 2 36
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…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

15 Experts available now in Live!

Get 1:1 Help Now