fpendino
Registered User.
- Local time
- Today, 07:21
- Joined
- Jun 6, 2001
- Messages
- 73
I'm using Sql Server 2000 and ASP to display this info. My question is, what is the best way to display data w/totals onto a page using a stored procedure. I've built stored procedures before that include totals, but in this case, doing so will cause there to be prob like 100+ columns. I also know that I could call a stored procedure for the detail and output, and then call a stored procedure for the totals and output.
I don't want to go this route though, as on my main summary page, I would have to do that several times and I think that there would be performance issues. There are multiple grouping levels within this page. So basically, I'm wanting the easiest way of outputting multiple columns and rows that include Totals for both, without having a query that has 100+ columns.
Can a stored procedure produce multiple Select statements, to where I can have it output totals and detail separately, but within one stored procedure?
I don't want to go this route though, as on my main summary page, I would have to do that several times and I think that there would be performance issues. There are multiple grouping levels within this page. So basically, I'm wanting the easiest way of outputting multiple columns and rows that include Totals for both, without having a query that has 100+ columns.
Can a stored procedure produce multiple Select statements, to where I can have it output totals and detail separately, but within one stored procedure?