User.MakeContained Method (Boolean, Boolean)

 

Converts a login mapped user to a contained user with password using the sys.sp_copy_password_to_user stored procedure.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public void MakeContained(
	bool copyLoginName,
	bool disableLogin
)

Parameters

copyLoginName
Type: System.Boolean

Copies the earlier mapped login name to the contained user.

disableLogin
Type: System.Boolean

Disables the earlier mapped login.

Return to top
Show: