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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Find/Fix orphan database users with SMO

Author  Topic 

drako17
Starting Member

9 Posts

Posted - 2009-05-14 : 08:26:14
Hi All

Is there a way to find/fix orphan database users wiht SMO
(in C# for example)

Thanks
Dan

Zoma
Yak Posting Veteran

76 Posts

Posted - 2009-05-14 : 08:50:17
EXEC sp_change_users_login 'Report'(It will help see the Orphaned users)

EXEC sp_change_users_login 'Auto_Fix', 'user'(This will help fix the orphaned user)

Go to Top of Page

drako17
Starting Member

9 Posts

Posted - 2009-05-14 : 09:14:09
Thanks

But what i want is to use SMO objects and not system SPs of the SQL Server.
Go to Top of Page
   

- Advertisement -