NamedSmoObject.ScriptOwner Method
Alters the script owner authorization.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Protected Sub ScriptOwner ( _
queries As StringCollection, _
so As ScriptingOptions _
)
'Usage
Dim queries As StringCollection
Dim so As ScriptingOptions
Me.ScriptOwner(queries, so)
protected void ScriptOwner(
StringCollection queries,
ScriptingOptions so
)
protected:
void ScriptOwner(
StringCollection^ queries,
ScriptingOptions^ so
)
member ScriptOwner :
queries:StringCollection *
so:ScriptingOptions -> unit
protected function ScriptOwner(
queries : StringCollection,
so : ScriptingOptions
)
Parameters
- queries
Type: System.Collections.Specialized.StringCollection
A StringCollection object that contains the queries.
- so
Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object that contains the scripting options.