V
Vinod
Hi All,
I've an issue with database size exceeding 2GB while the macro generating
xml through the following process:
1. tblUsers - consists of 1000 users
2. tblMasterData (225 colums) - consists of weekly sales detailes for region
wise of all employees (users)
Step1: Getting user name's through recordset
Step2: Copy tblMasterData (all regions detail for each user) to tblTmpCalc
table (clear pre-existed data) for user name retrieved from Step1
Step3: Perfrom some calculations in tblTmpCalc (225 columns)
Step4: Copy each record (calculated each region sales) from tblTmpCalc to
tblTmpXML table (clear pre-existed data) which consists of 36 rows(metrics
part of 225 columns in tblTmpCalc )
Step5: Export tblTmpXML as XML with UserName_Region
Step6: Repeate Step4 & 5 to generate XMLs with all regions specifice to the
user comes from step1
Step7: Do the same process from Step2 through Step6 for each user from
recordset (step1)
i.e., If a user belongs to 10 regions 10 XMLs for that user and tblTmpCalc
includes aggregation of 10 regions. In this scenarios 11 (10+1 - aggregate)
XMLs will be generated.
After generating 5000 XMLs I'm getting an error 'Invalid Argument' this time
I noticed that access database has reached to 2GB it was 130MB before start
of XML generation.
To overcome this I'm dropping and recreating the temp tables (tblTmpCalc
and tblTmpXML) instead of deleting pre-existed records in step 2 and 4 but
I'm unable to resolve the issue. Also I'm closing the recordset where ever I
opened after performing required steps (except step1) i.e., closing the
recordset which is opend after genertion of xmls for one user to another user.
I came to know that memory exceeding will be resolved if the database is
compacted. To do this user needs to stop the macro and perform compact disc
which causes to discontinue the sequence of user XMLs from where it stopped.
This process is quite against to the requirement where user doesn't want to
stop in the middle.
Please help me in resolving above said issue which will be appreciated.
Advanced Thanks
Vinod
I've an issue with database size exceeding 2GB while the macro generating
xml through the following process:
1. tblUsers - consists of 1000 users
2. tblMasterData (225 colums) - consists of weekly sales detailes for region
wise of all employees (users)
Step1: Getting user name's through recordset
Step2: Copy tblMasterData (all regions detail for each user) to tblTmpCalc
table (clear pre-existed data) for user name retrieved from Step1
Step3: Perfrom some calculations in tblTmpCalc (225 columns)
Step4: Copy each record (calculated each region sales) from tblTmpCalc to
tblTmpXML table (clear pre-existed data) which consists of 36 rows(metrics
part of 225 columns in tblTmpCalc )
Step5: Export tblTmpXML as XML with UserName_Region
Step6: Repeate Step4 & 5 to generate XMLs with all regions specifice to the
user comes from step1
Step7: Do the same process from Step2 through Step6 for each user from
recordset (step1)
i.e., If a user belongs to 10 regions 10 XMLs for that user and tblTmpCalc
includes aggregation of 10 regions. In this scenarios 11 (10+1 - aggregate)
XMLs will be generated.
After generating 5000 XMLs I'm getting an error 'Invalid Argument' this time
I noticed that access database has reached to 2GB it was 130MB before start
of XML generation.
To overcome this I'm dropping and recreating the temp tables (tblTmpCalc
and tblTmpXML) instead of deleting pre-existed records in step 2 and 4 but
I'm unable to resolve the issue. Also I'm closing the recordset where ever I
opened after performing required steps (except step1) i.e., closing the
recordset which is opend after genertion of xmls for one user to another user.
I came to know that memory exceeding will be resolved if the database is
compacted. To do this user needs to stop the macro and perform compact disc
which causes to discontinue the sequence of user XMLs from where it stopped.
This process is quite against to the requirement where user doesn't want to
stop in the middle.
Please help me in resolving above said issue which will be appreciated.
Advanced Thanks
Vinod