Export (0) Print
Expand All

SqlSmoObject.AddDatabaseContext Method (StringCollection, ScriptingOptions)

SQL Server 2008 R2

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft