Sei sulla pagina 1di 2

How to enable the use of 'Ad Hoc Distributed Queries' by using

sp_configure

1. set the advanced options

sp_configure 'show advanced options', 1

on successful run you will get the return message as


-Configuration option 'show advanced options' changed from 0 to 1. Run
the RECONFIGURE statement to install.

Now run reconfigure

2. enable a SQL Server configuration parameter

sp_configure 'Ad Hoc Distributed Queries', 1

on successful run you will get the return message as


-Configuration option 'Ad Hoc Distributed Queries' changed from 0 to 1.
Run the RECONFIGURE statement to install.

Now run reconfigure

3. run sp_configure to confirm

4. use the SQL Server Surface Area Configuration Tool to enable and/or
disable "Ad Hoc Remote Queries".

Potrebbero piacerti anche