INSERT INTO excel SELECT * FROM OPENROWSET('MICROSOFT.JET.OLEDB.4.0' ,'Excel 5.0;HDR=YES;DATABASE=D:\Book1.xls',无公式$)
//开启Ad Hoc Distributed Queries EXEC sp_configure 'show advanced options', 1 GO RECONFIGURE with override GO EXEC sp_configure 'Ad Hoc Distributed Queries', 1 GO RECONFIGURE with override