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 |
|
drako17
Starting Member
9 Posts |
Posted - 2009-05-14 : 08:26:14
|
| Hi AllIs there a way to find/fix orphan database users wiht SMO (in C# for example)ThanksDan |
|
|
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) |
 |
|
|
drako17
Starting Member
9 Posts |
Posted - 2009-05-14 : 09:14:09
|
| ThanksBut what i want is to use SMO objects and not system SPs of the SQL Server. |
 |
|
|
|
|
|