D
dcmetro
Hi,
I have a search page which will display the results in a datagrid. The
grid's nature is, except the first column, every cell in every row is
an aggregate value. The grid will always have the same number of rows
and columns no matter what the search criteria is. It's only the values
in the cells that change.
I'm rewriting the existing application; At present they have the entire
calculation is done in the stored procedure and the result of the
stored procedure is simply displayed to the user. This approach
timesout most of the time.
Here's a sample datagrid I'm trying to achieve:
CITY ERRORS FAILURES
Austin 10 25
Boston 23 2
Chicago 13 16
No City Mentioned 2 3
Total 48 46
Please note there may be different kind of Errors and different kind of
Failures. We aggregate all Errors and Failures display the total errors
and total failures respectively against each city.
In the present DB model, they have a separate table for the city, a
table for the event names -(Errors and/or Failures) and a transaction
table that links those two tables with the station code and event code.
My question is, how much and what can we do in the stored procedure,
and what can we do in ADO.NET for the above case?
If my question doesn't make sense, please let me know I'll try to
rephrase it.
Thank you.
I have a search page which will display the results in a datagrid. The
grid's nature is, except the first column, every cell in every row is
an aggregate value. The grid will always have the same number of rows
and columns no matter what the search criteria is. It's only the values
in the cells that change.
I'm rewriting the existing application; At present they have the entire
calculation is done in the stored procedure and the result of the
stored procedure is simply displayed to the user. This approach
timesout most of the time.
Here's a sample datagrid I'm trying to achieve:
CITY ERRORS FAILURES
Austin 10 25
Boston 23 2
Chicago 13 16
No City Mentioned 2 3
Total 48 46
Please note there may be different kind of Errors and different kind of
Failures. We aggregate all Errors and Failures display the total errors
and total failures respectively against each city.
In the present DB model, they have a separate table for the city, a
table for the event names -(Errors and/or Failures) and a transaction
table that links those two tables with the station code and event code.
My question is, how much and what can we do in the stored procedure,
and what can we do in ADO.NET for the above case?
If my question doesn't make sense, please let me know I'll try to
rephrase it.
Thank you.