Configuration.AdHocDistributedQueriesEnabled Configuration.AdHocDistributedQueriesEnabled Configuration.AdHocDistributedQueriesEnabled Property

Definition

Gets the ConfigProperty object that is used to set the ad hoc distributed queries configuration option.

public:
 property Microsoft::SqlServer::Management::Smo::ConfigProperty ^ AdHocDistributedQueriesEnabled { Microsoft::SqlServer::Management::Smo::ConfigProperty ^ get(); };
public Microsoft.SqlServer.Management.Smo.ConfigProperty AdHocDistributedQueriesEnabled { get; }
Public ReadOnly Property AdHocDistributedQueriesEnabled As ConfigProperty
Property Value

A ConfigProperty object that specifies the settings for the ad hoc distributed queries configuration option.

Examples

Configuring SQL Server in SMO

Remarks

The AdHocDistributedQueriesEnabled property sets the ad hoc distributed queries configuration option. This property is used to allow ad hoc access through the OPENROWSET and OPENDATASOURCE functions on an OLE DB provider.

Applies to