DatabaseOptions.Alter 方法 (TimeSpan)

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub Alter ( _
    transactionTerminationTime As TimeSpan _
)
用法
Dim instance As DatabaseOptions 
Dim transactionTerminationTime As TimeSpan

instance.Alter(transactionTerminationTime)
public void Alter(
    TimeSpan transactionTerminationTime
)
public:
void Alter(
    TimeSpan transactionTerminationTime
)
member Alter : 
        transactionTerminationTime:TimeSpan -> unit
public function Alter(
    transactionTerminationTime : TimeSpan
)

参数

  • transactionTerminationTime
    类型:System.TimeSpan
    A TimeSpan object value that specifies a period of time to allow transactions to complete before persisting the property changes with the Alter method.

注释

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.

示例

设置属性

请参阅

参考

DatabaseOptions 类

Alter 重载

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

数据库选项