用excel导入到sql2005中 雨

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

原文地址:https://www.cnblogs.com/manage/p/2482734.html