NHibernate - Stream large result sets?

Posted by Dan Black on Stack Overflow See other posts from Stack Overflow or by Dan Black
Published on 2010-05-24T13:43:43Z Indexed on 2010/05/24 14:01 UTC
Read the original article Hit count: 371

Filed under:
|
|
|
|

Hi,

I have to read in a large record set, process it, then write it out to a flat file.

The large result set comes from a Stored Proc in SQL 2000.

I currently have:
var results = session.CreateSQLQuery("exec usp_SalesExtract").List();

I would like to be able to read the result set row by row, to reduce the memory foot print

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about database