2016-11-23 13 views
0

私は、次のエンコード実行している2008年SQL Server 2008のOPENROWSET

SQL ServerでOPENROWSETに問題があります。

SELECT * 
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 12.0;Database=C:\Procesos\PRUEBA.xlsx', [Hoja1$]) 

をそして、私は次のエラーを取得:

The OLE DB Provider 'Microsoft.ACE.OLEDB.12.0' Can not be used for distributed queries Because it is configured to run on the Simple controlled threading mode.

(El proveedor OLE DB 'Microsoft.ACE.OLEDB.12.0' no puede usarse para consultas distribuidas porque está configurado para ejecutarse en el modo de subprocesamiento controlado simple.)

答えて

0

this thread on DBA.SEから、このオプションを有効にする必要があります。

EXEC sp_configure 'show advanced options', 1; 
GO 
RECONFIGURE; 
GO 
EXEC sp_configure 'Ad Hoc Distributed Queries', 1; 
GO 
RECONFIGURE; 
GO 
+0

HI、friend。 私はすでにコマンドを実行していますが、同じエラーが表示されます –