What do u mean by orphan users, how will u list them in the
DB

Answer Posted / karthik

Orphan User : NO login id or password are not associated
with user.

exec sp_change_users_login 'Report' (It helps to find the
orphan user)

Exec sp_change_user_login 'auto_fix','loginname',null(It
helps to map the user with login)

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I determine how many instances of sql server are installed on a computer?

618


what's the difference between delete table and truncate table commands? : Sql server database administration

564


What does truncate do?

624


What are the differences between char and nchar in ms sql server?

607


Do you know how to send email from database?

632






can a database be shrunk to 0 bytes, if not, why? : Sql server administration

699


What is the syntax to execute the sys.dm_db_missing_index_details?

653


Can you insert NULL in unique column?

730


What is the fastest way to permanently delete a 1 million row table named customers?

733


How to drop an existing table with "drop table" statements in ms sql server?

627


can a table be moved to different filegroup? : Sql server administration

618


what are the different stages of Report Processing?

105


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

596


What does ss stand for sexually?

679


Difference between Inner vs outer joins?

607