Метод ScriptAlter
Runs a Transact-SQL script that updates the objects property changes on the instance of SQL Server.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Protected Overrides Sub ScriptAlter ( _
alterQuery As StringCollection, _
so As ScriptingOptions _
)
'Применение
Dim alterQuery As StringCollection
Dim so As ScriptingOptions
Me.ScriptAlter(alterQuery, so)
protected override void ScriptAlter(
StringCollection alterQuery,
ScriptingOptions so
)
protected:
virtual void ScriptAlter(
StringCollection^ alterQuery,
ScriptingOptions^ so
) override
abstract ScriptAlter :
alterQuery:StringCollection *
so:ScriptingOptions -> unit
override ScriptAlter :
alterQuery:StringCollection *
so:ScriptingOptions -> unit
protected override function ScriptAlter(
alterQuery : StringCollection,
so : ScriptingOptions
)
Параметры
- alterQuery
Тип: System.Collections.Specialized. . :: . .StringCollection
A StringCollection object that contains the update script.
- so
Тип: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object that specifies the scripting options that are associated with the script.