I am using devexpress grid view. I have 2,800,000 records in sql database. I gave a query like below:
SELECT
YEAR(Time) Year
,MONTH(Time) Month
,[StoreID]
,[TransactionNumber]
,[BatchNumber]
,[CustomerID]
,[CashierID]
,[Total]
FROM [HQMatajer].[dbo].[Transaction]
where YEAR(Time)=2015
this query executed and it tooks 15 sec to give result in sql server. But when i try to run in asp.net grid view either by using sqldatasource or dynamically it gave me system.OutOfMemoryException
.
.
second error
this is will not display all the records in single page. This result will display in 1000's of pages