Solved

User access issue

Posted on 2013-11-25
2
193 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

760 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

17 Experts available now in Live!

Get 1:1 Help Now