Vignesh Murali
Vignesh Murali

Reputation: 11

"OPENROWSET" function keeps Executing without any Output

I am trying to SELECT from an Excel file through SSMS. I am using the OPENROWSET Function to Select the Excel file into SSMS

I have already done everything I have found on Google


SELECT *
FROM
OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'EXCEL 12.0; 
DATABASE=C:\Users\XXXX\Documents\Power BI Projects\XXXXX\XXXX\
Input Files\Processed\Daywise Rating.xlsx;HDR=YES','SELECT * FROM [Customer$]')

The Excel file should be shown inside SSMS when I run the above query.

Upvotes: 1

Views: 593

Answers (1)

Hugo Salaun
Hugo Salaun

Reputation: 206

I'm clearly not an expert in OPENROWSET but I remember having a similar issue. Can you try the same request based on a .xls file instead of a .xlsx file ?

Upvotes: 0

Related Questions