Tuesday, March 27, 2012

Server blocked access to STATEMENT 'OpenRowset/OpenDatasource' of component 'Ad Hoc Distributed Queries' because this component is turned off

Issue: 

One of my BI developer sent me request that she can't run a SP. It through error:


Msg 15281, Level 16, State 1, Procedure spReport_eCPM_Snapshot, Line 32 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.


Solution: On SQL server 2008 R2 server you can make the change from facets. Right click on the server/instance. Select Facets - 


Change the facets property 'AdhocRemoteQueriesEnabled' to True.  OK, Done.


No comments:

Post a Comment