Using VB.NET, I have opened an SQLConnection and retrieved an SQLDataReader with the data I want to process. As I am going through each record in the reader, I may want to update the record. What is the best way to go about doing this?
Is it possible to call ExecuteScalar with UPDATE commands while the Reader is still open without the Reader keeping track of where it is?
Will I have to create a second connection?
What is the "best practice" approach?
Thanks!
2006-12-08
04:33:04
·
2 answers
·
asked by
soulblazer28
2
in
Computers & Internet
➔ Programming & Design