SQL Server - Reading information from an EXCEL file using OPENROWSET



Connecting from SQL Server to an Excel File using OPENROWSET

-- Excel File: c:\data.xls
-- Worksheet : Sheet1
SELECT *
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
  'Excel 8.0;Database=c:\data.xls', [Sheet1$])

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.