I need to import details from Excel but the worksheet names are not always what is expected. Is there a way to determine the worksheet name using sql?
Query used to import where sheet name = data
SELECT * INTO tmp_test2
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=c:datatest2.xls', 'SELECT * FROM [data$]')
Thanks
Software/Hardware used:
ASKED:
April 17, 2008 3:52 PM
UPDATED:
April 19, 2008 7:19 AM