J
jankrib
I want to get around 60000 fields from an OLAP cube into a recordSet.
I have a OWC11 PivotTable connected to the Cube. My code worked fine
when I used it on less than 1000 fields.
My Code:
Dim cs As ADODB.Command
cs = New ADODB.Command
cs.ActiveConnection = AxPivotTable1.Connection
cs.CommandText = "SELECT [World].[Town] ON COLUMNS FROM [WorldCube]"
Dim re As ADODB.Recordset
re = cs.Execute()
On the cs.Execute() I get a error:
Memory error: While attempting to store a string, a string was found
that was larger than the page size selected. The operation cannot be
completed.
I have read several places that when collecting more than 1000 records
paging should be used. I tried adding this line before the execute
command:
cs.Properties("Page Size") = 1000
, but I get that 'Item' are 'ReadOnly'. This is strange because I've
seen this line used in a lot of example codes.
I've also tried
cs.Properties("Page Size").value = 1000
,but then I get that Properties("Page Size") doesn't exist.
Very thankful if anyone can help me.
I have a OWC11 PivotTable connected to the Cube. My code worked fine
when I used it on less than 1000 fields.
My Code:
Dim cs As ADODB.Command
cs = New ADODB.Command
cs.ActiveConnection = AxPivotTable1.Connection
cs.CommandText = "SELECT [World].[Town] ON COLUMNS FROM [WorldCube]"
Dim re As ADODB.Recordset
re = cs.Execute()
On the cs.Execute() I get a error:
Memory error: While attempting to store a string, a string was found
that was larger than the page size selected. The operation cannot be
completed.
I have read several places that when collecting more than 1000 records
paging should be used. I tried adding this line before the execute
command:
cs.Properties("Page Size") = 1000
, but I get that 'Item' are 'ReadOnly'. This is strange because I've
seen this line used in a lot of example codes.
I've also tried
cs.Properties("Page Size").value = 1000
,but then I get that Properties("Page Size") doesn't exist.
Very thankful if anyone can help me.