i have an SProc which returns the avg of all columns between two times, ie 04:00 to 04:14. I want to have an option to return results for 24hr at that same interval (in this case the interval is 15mins. 04:14 - 04:00) So the results would look like the following:
00:00 - 00:14 = x.xxx
00:15 - 00:29 = x.xxx
....
im assuming i cant change the sqlcommand (specifically the parameters for the SProc) inside the using statement, and would need to put the for loop before, thus creating a new SqlCommand object each time?
for(int i = x; .....)
{
using (SqlCommand cmd = new SqlCommand())
{
}
}
Thanks