How to solve the problem of SQL Server prompt & the user selected by quot; owns the object, so the user cannot be removed?
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!