ScriptingOptions.IncludeDatabaseRoleMemberships Property
Gets or sets a value that indicates whether the database role memberships are included.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Property Value
Type: System.BooleanTrue if the database role memberships are included; otherwise, false.
Visual Basic
Dim scOps As New ScriptingOptions() scOps.IncludeDatabaseRoleMemberships = true
PowerShell
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions $scOps.IncludeDatabaseRoleMemberships = $TRUE
Show: