V
VB Programmer
I have a datareader that I am using in my VB.NET code. I loop through it
once "processing" each row.
On the 2nd "pass" I want to get the newest data in the database (stored into
a 2nd datareader) and compare each record (compare dr1 and dr2) to see what
has changed. If a row remains the same I don't "process" it again.
What is the best/easiest way to do this? Should I use a DataSet instead?
Is it possible to clone the 1st datareader before we read it so we have it
for reference for the next time?
Thanks!
once "processing" each row.
On the 2nd "pass" I want to get the newest data in the database (stored into
a 2nd datareader) and compare each record (compare dr1 and dr2) to see what
has changed. If a row remains the same I don't "process" it again.
What is the best/easiest way to do this? Should I use a DataSet instead?
Is it possible to clone the 1st datareader before we read it so we have it
for reference for the next time?
Thanks!