select * into #temp from opendatasource(''Microsoft.Jet.OLEDB.4.0'', ''Excel 8.0;Database=D:\物件編碼.xls'')...[辦公用品編碼$]
select * into #temp from opendatasource(''Microsoft.Jet.OLEDB.4.0'', ''Excel 8.0;Database=D:\物件編碼.xls'')...[零件編碼$]
二、如你的Excel文件是工作表是默認的Sheet命名為Sheet1,Sheet2等。
select * into #temp from opendatasource(''Microsoft.Jet.OLEDB.4.0'', ''Excel 8.0;Database=D:\物件編碼.xls'')...[Sheet1$]