ADO.NET 2.0 and ExecutePageReader

I was reading about some new features of ADO.NET 2.0 and, when reading about the new ExecutePageReader method, a question comes in my mind...

Normally, for paging I currently use stored procedures with temporary tables that pages data with the ROWCOUNT I want (I pass it as a parameter to the stored procedure).

This new method obviously simplifies me the work: the paging is done by the method and I've not to write SQL Code on my stored to to the paging task... wow... but... the ExecutePageReader method use server cursors and I'm not sure this is a more efficient way for paging than the SQL Server way (stored). Is there a real advantage on performance or not? I'm not so sure...

However, I've listen from a friend of mine that maybe ExecutePageReader will be dropped from the future... is it true? And why? I think that it could be a useful method however... no drop it please!

 

Print | posted on Saturday, July 24, 2004 8:07 AM

Comments on this post

# RE: ADO.NET 2.0 and ExecutePageReader

Requesting Gravatar...
From what I can tell, SQL cursors can affect the performance ( http://www.sql-server-performance.com/cursors.asp ) as they lock the table access until the operation has completed.
Left by Ashutosh Nilkanth on Jul 24, 2004 4:32 AM

# re: ADO.NET 2.0 and ExecutePageReader

Requesting Gravatar...
Sure, cursors lock table, not too good for performances. However, a method for paging I think is a must to do for a new version of ADO.NET.
Left by Stefano Demiliani on Jul 24, 2004 10:20 AM

# replica jewelry

Requesting Gravatar...
Sure, cursors lock table, not too good for performances. However, a method for paging I think is a must to do for a new version of ADO.NET.
Left by Stefano Demiliani on Jul 24, 2004 10:20 AM
Left by replica jewelry on Apr 29, 2010 4:39 AM

# Gucci for cheap

Requesting Gravatar...
not too good for performances
Left by Gucci for cheap on Aug 15, 2011 3:15 AM

Your comment:

 (will show your gravatar)
 
Please add 5 and 7 and type the answer here: