Fastest way to transfer Excel table data to SQL 2008R2

后端 未结 6 759
囚心锁ツ
囚心锁ツ 2021-02-15 01:52

Does anyone know the fastest way to get data from and Excel table (VBA Array) to a table on SQL 2008 without using an external utility (i.e. bcp)? Keep in mind my datas

6条回答
  •  故里飘歌
    2021-02-15 02:24

    works pretty fine, on the other hand to improve speed we may still modify the query:

    Instead: Source = "SELECT * FROM " & Table

    We can use: Source = "SELECT TOP 1 * FROM " & Table

    Here is we only need column names. So no need to maka a query for entire table, which is extending the process as long as new data imported.

提交回复
热议问题