Share via


SqlExecutionModes 列舉

The SqlExecutionModes enumeration contains values that are used to specify whether the commands sent to the referenced connection to the server are executed immediately or saved in a buffer.

此列舉有一個允許其成員值為位元組合的 FlagsAttribute 屬性。

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
<FlagsAttribute> _
Public Enumeration SqlExecutionModes
'用途
Dim instance As SqlExecutionModes
[FlagsAttribute]
public enum SqlExecutionModes
[FlagsAttribute]
public enum class SqlExecutionModes
[<FlagsAttribute>]
type SqlExecutionModes
public enum SqlExecutionModes

成員

成員名稱 說明
CaptureSql Transact-SQL statements that are sent to the referenced connection to the server are saved in a buffer.
ExecuteAndCaptureSql Transact-SQL statements that are sent to the referenced connection to the server are both saved in a buffer and forwarded to the server for immediate execution.
ExecuteSql Transact-SQL statements that are sent to the referenced connection to the server are forwarded to the server for immediate execution.

備註

The SqlExecutionModes enumeration class is served by the SqlExecutionModes property.

請參閱

參考

Microsoft.SqlServer.Management.Common 命名空間