34,590
社区成员
发帖
与我相关
我的任务
分享
declare @temptable_sql varchar(2000)
set @temptable_sql = '
select * into ##a from OPENROWSET
(''Microsoft.Ace.OLEDB.12.0'',''Excel 12.0;HDR=NO;DATABASE='+@fileUrl+';IMEX=1;'',
''SELECT * FROM ['+@sheetName+'$]'') A '
exec(@temptable_sql)
http://au81.com/jYVZJ3