Solved

User access issue

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access SQL Server instance by NONE-admin Windows user 12 27
CDC and AOG on MS SQL 2012 13 23
SQL query and VBA 5 45
Are triggers slow? 7 10
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

840 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