We help IT Professionals succeed at work.

SQL 2008 - is enabling Hoc Distributed Queries'  Safe??

Medium Priority
Last Modified: 2012-05-06
My DB guy is getting this message below.  I was wondering, is enabling this feature safe. should  i worry about security with this enabled?

Msg 15281, Level 16, State 1, Line 1
SQL Server blocked access to STATEMENT 'OpenRowset/OpenDatasource' of component 'Ad Hoc Distributed Queries' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Ad Hoc Distributed Queries' by using sp_configure. For more information about enabling 'Ad Hoc Distributed Queries', see "Surface Area Configuration" in SQL Server Books Online.
Watch Question

Security implications revolve around your server being used as a means to access other servers or access to an OLE-DB provider that may turn out to be a vulnerability.

Provided all users of your servers are authenticated and audited, enabling this feature should be ok..

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.