G
Guest
Hi experts,
I have an application which will retrieve data from database and extract the
data to Excel file.
My working mechanism is to create a while loop to loop at every criteria/key
which will execute a MSSQL stored procedure to retrieve the data based on
particular key/criteria. The results will be returned to my application once
the stored procedure is finish executed.
Problem happens when results to be returned consist of many rows (says few
tens of thousand rows). The asp.net worker process will grow tremendously
until reaching 800++MB and the CPU usage hits 90% which cause the server in
crawl.
Any workaround I can take to cope this problem? Any help would be much
appreciated. Thanks
I have an application which will retrieve data from database and extract the
data to Excel file.
My working mechanism is to create a while loop to loop at every criteria/key
which will execute a MSSQL stored procedure to retrieve the data based on
particular key/criteria. The results will be returned to my application once
the stored procedure is finish executed.
Problem happens when results to be returned consist of many rows (says few
tens of thousand rows). The asp.net worker process will grow tremendously
until reaching 800++MB and the CPU usage hits 90% which cause the server in
crawl.
Any workaround I can take to cope this problem? Any help would be much
appreciated. Thanks