Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
mb mb is offline
external usenet poster
 
Posts: 4
Default How can I merge multiple files using SQL?

Hi there,

I try to merge a few dozens of .csv files into one worksheet. This works
well with a query like:
SELECT * from file1 UNION SELECT * from file2 ...
However, the querytable.command does not seem to accept more then 40 files
(may be path-length dependent).

Is there some other SQL method to merge files. I also tried the "SELECT
INTO" command but that only resulted errors.

Any ideas?

Best Regards,
Marc



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default How can I merge multiple files using SQL?

Wow, a query with 39 UNIONs seems like a lot to me! Perhaps it's a
limit for the data provider. Anyhow, as a workaround, can you use more
than one querytable?

--

"mb" wrote in message ...
Hi there,

I try to merge a few dozens of .csv files into one worksheet. This works
well with a query like:
SELECT * from file1 UNION SELECT * from file2 ...
However, the querytable.command does not seem to accept more then 40 files
(may be path-length dependent).

Is there some other SQL method to merge files. I also tried the "SELECT
INTO" command but that only resulted errors.

Any ideas?

Best Regards,
Marc

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I merge multiple csv files in one Excel file? Nedulous Excel Worksheet Functions 4 May 17th 09 04:07 PM
merge multiple worksheets from multiple excel files into oneworksheet Shamoun Ilyas Excel Discussion (Misc queries) 5 November 19th 08 09:48 PM
How do I merge multiple xls files into one file? Steve Excel Discussion (Misc queries) 5 April 26th 07 08:28 PM
How do I merge multiple xls files into one file? Gianni Excel Discussion (Misc queries) 3 June 14th 05 02:09 PM
How can I merge multiple sheets from different Excel files workbo. jones021 Excel Worksheet Functions 0 April 20th 05 08:48 PM


All times are GMT +1. The time now is 10:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"