Udostępnij przez


DatabaseOptions.Alter Method (TerminationClause)

Updates any DatabaseOptions object property changes on the instance of SQL Server.

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

Syntax

'Deklaracja
Public Sub Alter ( _
    terminationClause As TerminationClause _
)
public void Alter (
    TerminationClause terminationClause
)
public:
void Alter (
    TerminationClause terminationClause
)
public void Alter (
    TerminationClause terminationClause
)
public function Alter (
    terminationClause : TerminationClause
)

Parameters

  • terminationClause
    A TerminationClause object value that specifies what to with any open transactions that are affected by the Alter method.

Remarks

The Alter method updates any changes that have been made to the DatabaseOptions object's properties since the DatabaseOptions object was created or since the last Alter statement. The modifications are combined and sent to the instance of SQL Server in a single network trip to the instance of SQL Server.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.