2016-11-23 27 views
0

Ich habe ein Problem mit OPENROWSET in SQL Server 2008SQL Server 2008 OPENROWSET

Ich bin mit der folgenden Codierung:

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

Und bekomme ich folgende Fehlermeldung:

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.)

Antwort

0

Von this thread on DBA.SE, sollten Sie diese Option zuerst aktivieren.

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

HI, Freund. Ich führe bereits den Befehl aber das gleiche bekomme ich immer noch den gleichen Fehler –