共用方式為


IServerConfigurationFacet.AdHocRemoteQueriesEnabled 屬性

Gets or sets a Boolean value that specifies whether ad hoc remote queries are enabled.

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

語法

'宣告
Property AdHocRemoteQueriesEnabled As Boolean 
    Get 
    Set
'用途
Dim instance As IServerConfigurationFacet 
Dim value As Boolean 

value = instance.AdHocRemoteQueriesEnabled

instance.AdHocRemoteQueriesEnabled = value
bool AdHocRemoteQueriesEnabled { get; set; }
property bool AdHocRemoteQueriesEnabled {
    bool get ();
    void set (bool value);
}
abstract AdHocRemoteQueriesEnabled : bool with get, set
function get AdHocRemoteQueriesEnabled () : boolean 
function set AdHocRemoteQueriesEnabled (value : boolean)

屬性值

型別:System.Boolean
Returns True if ad hoc remote queries are enabled. Returns False if ad hoc remote queries are not enabled.

請參閱

參考

IServerConfigurationFacet 介面

Microsoft.SqlServer.Management.Smo 命名空間