共用方式為


DisallowAdHocAccess 屬性

Gets or sets the Boolean property value that specifies whether SQL Server allows ad hoc access to data by using OPENROWSET and OPENDATASOURCE functions with the OLE DB provider.

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

語法

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

value = instance.DisallowAdHocAccess

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

屬性值

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