Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
 
Posts: n/a
Default pivot table from recordset - very slow performance

I'm recoding a spreadsheet to use SQL server, instead of local SAS
table/files, and although the data coming from the server via ADO and
stored procs is retrieved rapidly, the pivot table I build from the
recordset takes a very long time, about 3 times as long as before (now
taking approx 2 minutes), and although the recordset size is 86000 rows
by 25 columns, the data is not the issue, just how long it takes to
build the table.

Since the recordset via ADO is not the problem, I'll just display the
basic text of building the pivot table from the data:


'sets pivot cache, in prep for table, and then chart
Set objpcache = ActiveWorkbook.PivotCaches.Add(SourceType:=xlExter nal)

Set objpcache.Recordset = rstSQLServer
With objpcache
.CreatePivotTable TableDestination:=DestinRange,
TableName:="level_1"
End With


The lline that is taking so long is the With/End With code. I've tried
modifying the recordset values, changing various options, but none make
a difference. Any suggestions?


James Igoe || ||
http://code.comparative-advantage.com

  #2   Report Post  
Posted to microsoft.public.excel.charting
 
Posts: n/a
Default pivot table from recordset - very slow performance


I eventually solved my own problem or at least found out what the issue
was. It was not an issue with code, but an issue of locations and data
transmission. The application was in Boston, but the SQL server was in
NY.

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
Linking to a pivot table from a formatted invoice Spaceman Spiff Links and Linking in Excel 1 January 1st 06 10:02 PM
Using a Pivot Table Calculated Field to get a Unique Count Mike Struckman Excel Worksheet Functions 1 November 22nd 05 05:32 PM
pivot table created from another pivot table Kreed Excel Worksheet Functions 6 October 26th 05 04:16 PM
how to delete/clean out the row list in pivot table john² Excel Worksheet Functions 1 May 26th 05 04:56 AM
Internet explorer is very slow in opening Excel Pivot Table lists balkee Excel Discussion (Misc queries) 0 May 20th 05 03:58 PM


All times are GMT +1. The time now is 04:31 PM.

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"