I am using an ADO.Net SqlDataReader to read through a rather large query. As I process the data I want to execute an "update set x = y" statement on the database using a different command and a different connection (different connect string, timeout value is different) for the row I just read. At runtime I get an sql exception saying my update command timed out. (timeout expired). But the same "update" statement works fine outside the app!
Does a SqlDataReader lock the all records it is reading? I was hoping that because they are "fastforward read-only" that they would not lock records!
Am I stuck?
Does a SqlDataReader lock the all records it is reading? I was hoping that because they are "fastforward read-only" that they would not lock records!
Am I stuck?