Solved

User access issue

Posted on 2013-11-25
2
196 Views
Last Modified: 2013-11-26
The user complained that he was unable to access 2 out of 20 databases on one of the servers. I checked the user permissions and found that the only difference between the user permissions on those two databases and the rest of them was that the default schema listed was DOMAIN\user1 instead of dbo. Another thing was that in Owned Schemas section the schema DOMAIN\user1 was selected for those two databases in question, all other databases do not even have DOMAIN\user1 listed under schemas.
I did change the default schema to dbo, but I do not know how to remove DOMAIN\user1 schema from the list or uncheck it

Can someone help me fix this issue?
0
Comment
Question by:YZlat
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 350 total points
ID: 39675622
You should just be able to execute the following command from SSMS:
DROP SCHEMA 'DOMAIN\user1'

Open in new window

Although it will error if the schema owns any objects - in which case you will have to change the owner of all of the objects and then drop again.

It would be wise to backup your database before doing this as well :)
0
 
LVL 35

Author Comment

by:YZlat
ID: 39677804
I dropped the schema and reset the default user schema to dbo but user sitll reports he is unable to access those databases
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how the fundamental information of how to create a table.

943 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

10 Experts available now in Live!

Get 1:1 Help Now