EXEC sp_configure 'show advanced options',1RECONFIGUREEXEC sp_configure 'Ad Hoc Distributed Queries',1RECONFIGURE