SELECT   top 10 *
FROM      OPENDATASOURCE(
         'SQLOLEDB',
         'Data Source=SUS;User ID=SA;Password=109401'
         ).Northwind.dbo.orders
我用的是SQL 2005
錯誤提示如下:
Msg 15281, Level 16, State 1, Line 2
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.
 
望大家幫我看看,謝謝了