Hello,
I would like to chart running totals. I have a stored procedure (SQL Server 2005) that returns this in a temp table but the Data property of the Chart doesn’t seem to like it coming from a temp table. Error Message:
Exception: Error running query:
SQLQuery(query=EXEC usp_Overview_Hourly_Shift_Data_Chart
5,
22,
2,
2011,
8,
1,
22,
1062.5, database=)@5000ms
On: Window.Root Container.Chart.Data
caused by GatewayException: Gateway Error 500: The statement did not return a result set.
caused by SQLServerException: The statement did not return a result set.
So I have a couple questions:
- Is it true that I can’t use a temp table?
- If so, is there any kind of functionality in your charts to tabulate running totals?
My temp table results are as follows:
Date_Time_Stamp RunningQuantity RunningTarget
2011-02-22 05:00:00 7423 8500.00
2011-02-22 04:00:00 6964 7437.50
2011-02-22 03:00:00 6223 6375.00
2011-02-22 02:00:00 5158 5312.50
2011-02-22 01:00:00 4216 4250.00
2011-02-22 00:00:00 3075 3187.50
2011-02-21 23:00:00 2452 2125.00
2011-02-21 22:00:00 1617 1062.50
And they come from these results from a select statement that is then inserted into my temp table and totaled:
Date_Time_Stamp Quantity Target
2011-02-22 05:00:00 459 1062.50
2011-02-22 04:00:00 741 1062.50
2011-02-22 03:00:00 1065 1062.50
2011-02-22 02:00:00 942 1062.50
2011-02-22 01:00:00 1141 1062.50
2011-02-22 00:00:00 623 1062.50
2011-02-21 23:00:00 835 1062.50
2011-02-21 22:00:00 1617 1062.50
Thanks!
Steve