This should do...
SELECT *
FROM OPENROWSET(
'Microsoft.ACE.OLEDB.12.0',
'Excel 8.0;HDR=NO;Database=T:empTest.xlsx',
'select * from [sheet1$]')
But we aware, sometimes this just wont work. I had this working for local admins only.
There is a way to do this using SSIS as well.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…