LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default copyfromrecordset performance

I have a VB app that produces a number of Excel documents from a SQL view. I am using the copyfromrecordset method to transfer my adodb recordset. I am trying to fine tune the system and am trying to find out if the performance I am seeing is normal or not. I have about 56 different queries that go through this process but will just site 2 at the moment. The queries are complex queries on complex views. The first query returns 441 records 20 columns wide and takes about 89 seconds to be transfered into excell using the copyfromrecordset method. The second query returns 791 records 26 columns wide and takes 247 to transfer to excel, only after prompting me about five times that excel is waiting for another application to complete an OLE process. Both queries contain mostly dates and currency values in the columns. The VB application and SQL 2000 server are both running locally on my laptop. The queries are rather complex, basically a pivot table off a view based on about 14 tables. The first one takes about 67 seconds to open, then the additional 89 seconds to be transfered the second query takes about 75 seconds to open before calling the copyfromrecordset. Is the complexity of the queries affecting how long it takes to transfer the opened recordset or is this typical performance for transfering recordsets of these sizes? Any help would be greatly appreciated. Thanks in advance.
 
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
CopyFromRecordset Problem sunzj Excel Discussion (Misc queries) 0 August 2nd 07 06:32 PM
Format data in Excel after using copyfromrecordset jj Excel Discussion (Misc queries) 2 June 13th 07 06:48 AM
CopyFromRecordset - Is there a way to filter data that's copied? Mark[_22_] Excel Programming 1 November 6th 03 05:10 AM
CopyFromRecordset only pastes 1823 characters in a cell!? Julian Milano Excel Programming 5 August 11th 03 12:45 AM
Copyfromrecordset Bug ? news.btx.dtag.de Excel Programming 1 August 1st 03 07:44 PM


All times are GMT +1. The time now is 08:34 PM.

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

About Us

"It's about Microsoft Excel"