Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of SQL Server prompt & the user selected by quot; owns the object, so the user cannot be removed?

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to solve the SQL Server prompt" the selected user owns the object, so the user's "problem" cannot be removed. In the daily operation, it is believed that many people have doubts about how to solve the problem of "the selected user owns the object, so the user cannot be removed". The editor consulted all kinds of materials and sorted out a simple and useful method of operation. I hope it will be helpful for you to answer the "how to solve the SQL Server prompt" selected user owns the object, so can not remove the user's "problem" doubt! Next, please follow the editor to study!

1. Select the problem database in the query analyzer and type: Exec sp_configure 'allow updates',1-allow system tables to be updated. RECONFIGURE WITH OVERRIDE

two。 Run the following SQL statement: UPDATE sysobjects SET uid=1-- assigns all objects in the database to the user dbo

3. Execute the following SQL statement: Exec sp_configure 'allow updates',0-- close the system table to update RECONFIGURE WITH OVERRIDE

4. Delete the user in the database, and then re-establish the user.

At this point, the user selected by the "how to solve the SQL Server hint" owns the object, so the study that can not remove the user's "problem" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report