Uneven Technology
Friday, January 9, 2015
MSSQL - Addhoc Select from An Excel File
To read data from external Excel file:
SELECT
*
FROM
OPENROWSET
(
'Microsoft.ACE.OLEDB.12.0'
,
'Excel 12.0;Database=C:\Temp\SomeExcelFile.xlsx;HDR=YES;IMEX=1',
'SELECT * FROM [Sheet1$]'
)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment