SQL Server blocked access to STATEMENT 'OpenRowset/OpenDatasource’

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

 

ROZWIĄZANIE:

EXEC sp_configure 'allow updates’, 0
RECONFIGURE

EXEC sp_configure 'show advanced options’, 1
RECONFIGURE WITH OVERRIDE –really reconfigure
GO
EXEC sp_configure 'ad hoc distributed queries’, 1
RECONFIGURE WITH OVERRIDE –really reconfigure
GO

Możesz również polubić…