How to write an ADODB.RecordSet (made from an Excel Range) to a SQL Server temporary table

人走茶凉 提交于 2019-12-11 07:56:54

问题


Using VBA Excel I generate various ADODB.RecordSet objects. I would like to harness the power of temp table generation in SQL Server, e.g.

select * into #temp1 from Test1 --create temporary table on the fly

In particular, I'm interested in the automatic column generation, and would like to have have the ability to transfor my RecordSet objects into temporary tables in SQL Server.

来源:https://stackoverflow.com/questions/25867442/how-to-write-an-adodb-recordset-made-from-an-excel-range-to-a-sql-server-tempo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!