SQL Server cannot drop the user's workaround because the selected user owns the object _mssql

Source: Internet
Author: User


Phenomenon:

restore the previously backed up database to the current SQL database and now delete the user from the database, but the result is that the selected user has the object, so the user cannot be dropped
Solution:

1. Open Enterprise Manager, expand the server, right click on the local service, properties :

To open the SQL Server Properties (configuration) window
2. Select General window
Select the Server Settings window, which will allow the system directory to be directly modified to select, OK.
4. Expand the database, see the Database system table sysusers, right-- open the table -- return all rows :

5. Select the user in the database to delete, find the related row, right-click Delete :


Choice is,
finally , return to the second step to allow the system directory to be directly modified before the hook to remove

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.