P
Peter Sedman
I have a MS SQL Server database table that contains 5 million records. The
primary key of the table is a GUID.
I need to write an application that reads each of these records and passes
some values to another process.
What's the best way to retrieve the records to be processed?
Reading the records into a DataTable would probably result in far too much
memory usage.
Does using a DataReader pass the load (and hence memory problem) onto SQL
Server instead?
Reading batches of records would be difficult as the primary key is a GUID
and is not sequential.
What about reading the primary key values into a DataTable and then reading
batches of records?
Has anyone had to solve a similar problem?
Thanks,
Peter
primary key of the table is a GUID.
I need to write an application that reads each of these records and passes
some values to another process.
What's the best way to retrieve the records to be processed?
Reading the records into a DataTable would probably result in far too much
memory usage.
Does using a DataReader pass the load (and hence memory problem) onto SQL
Server instead?
Reading batches of records would be difficult as the primary key is a GUID
and is not sequential.
What about reading the primary key values into a DataTable and then reading
batches of records?
Has anyone had to solve a similar problem?
Thanks,
Peter