SqlSmoObject.AddDatabaseContext Method (StringCollection, ScriptingOptions)

Add the database context to the collection of queries identified by the queries parameter, and using the specified scripting options.

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

protected void AddDatabaseContext(
	StringCollection queries,
	ScriptingOptions so
)

Parameters

queries
Type: System.Collections.Specialized.StringCollection
A StringCollection of queries.
so
Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object describing the scripting options set for the database.

Example

Community Additions

ADD
Show: