I am getting the following error when with SQL Express.
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.
While I was very please to see such a verbose error and directions on where to find the answer I have yet to figure out how to turn this option on...
I tried sp_configure'Ad Hoc Distributed Queries', 1 but got the following error
The configuration option 'Ad Hoc Distributed Queries' does not exist, or it may be an advanced option.
If I execute only sp_configure it does not list Ad Hoc Distributied Queries as an option. I checked the sql Books Online and it tells me to use the Surface configuration tool which SQL Express does not seem to have...
Could someone help me out with this?
Thanks - Mark
As 'Ad Hoc Distributed Queries' is an advanced option, you need to turn on advanced options. Try the statements below:
sp_configure 'show advanced options',1
reconfigure with override
go
sp_configure 'Ad Hoc Distributed Queries',1
reconfigure with override
go
|||
FANTASTIC! Quick and easy!
That works - Thanks
No comments:
Post a Comment