Export (0) Print
Expand All

User.MakeContained Method

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: Boolean
Copies the earlier mapped login name to the contained user.
disableLogin
Type: Boolean
Disables the earlier mapped login.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft