Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
vchopade
Starting Member
2 Posts |
Posted - 2006-11-16 : 11:30:15
|
Hello ,I am facing a problem related to database user.I have restored the database and when i tries to delete the User from restored database it does not allow me to delete and message pop up " The selected user cannot be dropped because user owns the object "Please help to resolve this issue.Thanking youRegardsVivek ChopadeNagpur.( India ) |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-11-16 : 11:47:28
|
drop objects owned by the user and then rop the user.Is that so hard?  -- get all objects owned by the user:SELECT name, xtype FROM dbo.sysobjects WHERE uid = USER_ID(yourUserName') Go with the flow & have fun! Else fight the flow blog thingie: http://weblogs.sqlteam.com/mladenp |
 |
|
|
|
|