ScriptingOptions.DriNonClustered Property
SQL Server 2008
Gets or sets the Boolean property value that specifies whether dependency relationships that are defined in non-clustered indexes that have enforced declarative referential integrity are included in the script.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Property Value
Type: System.BooleanA Boolean value that specifies whether to script non-clustered indexes that have enforced declarative referential integrity.
If True, non-clustered indexes are included in the script. Otherwise, False (default).