SELECT *
FROM OPENROWSET(‘SQLOLEDB’,’SQLSERVER’;’sa’;’LOGO’,
‘exec SQLDATASI.dbo.PROSEDURADI’) AS TABLO

ilgili sorgu çalışması için sql konfigürasyonunun ayarlanması gerekmektedir. Aşağıdaki sorgu ile yapılabilir

sp_configure ‘show advanced options’, 1;
RECONFIGURE;
GO
sp_configure ‘Ad Hoc Distributed Queries’, 1;
RECONFIGURE;
GO