Solved

User access issue

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

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…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

617 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