When I run a query with OPENROWSET
in SQL Server 2000 it works.
But the same query in SQL Server 2008 generates the following error:
See Question&Answers more detail:osSQL 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