共用方式為


DynamicParameters 屬性

Gets or sets the Boolean property value that specifies whether the provider allows '?' parameter marker syntax for parameterized queries.

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

語法

'宣告
<SfcPropertyAttribute> _
Public Property DynamicParameters As Boolean
    Get
    Set
'用途
Dim instance As OleDbProviderSettings
Dim value As Boolean

value = instance.DynamicParameters

instance.DynamicParameters = value
[SfcPropertyAttribute]
public bool DynamicParameters { get; set; }
[SfcPropertyAttribute]
public:
property bool DynamicParameters {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute>]
member DynamicParameters : bool with get, set
function get DynamicParameters () : boolean
function set DynamicParameters (value : boolean)

屬性值

型別:System. . :: . .Boolean
A Boolean value that specifies whether SQL Server allows parameterized queries with the OLE DB provider.
If True, parameterized queries are allowed.
If False (default), parameterized queries are not allowed.

備註

Setting this option allows SQL Server to execute parameterized queries against the OLE DB provider. The ability to execute parameterized queries against the OLE DB provider can yield better performance for certain queries.