Mary
Wed Apr 16 09:23:22 CDT 2008
What are you doing with 14 million rows? There are better ways to
export data from SQL Server. If you really want to use a reader, then
supply the nolock query hint to speed things up. See
http://blogs.msdn.com/sqlcat/archive/2007/02/01/previously-committed-rows-might-be-missed-if-nolock-hint-is-used.aspx
for more information.
--Mary
On Wed, 16 Apr 2008 01:04:21 -0700 (PDT), Achim Domma
<domma@procoders.net> wrote:
>Hi,
>
>I have a table containing about 14,5 million records and I want to
>iterate over the complete data. If I execute a "select * from
>mytable", the call to ExecuteReader takes some hours to return. In T-
>SQL I can open a cursor and start reading immediately. As far as I
>understand, ExecuteReader/SqlDataReader should behave the same way -
>but it seems like I'm wrong. Any hint?
>
>regards,
>Achim