i have been working on asp.net and charts and i want to run a query that would display data in charts.
however, the query takes a lot of time and every time the error comes that time-out.
the query is :
select Colum,
SUM(CASE WHEN column1 = 1 THEN column2 END)mins,
SUM(column3)AS rev,
SUM(column4)AS qty
from table1
where column5 between Date-10 and Date
group by 1
order by column5;
how can i increase the time out value? please help!