The suggested duplicate doesn't answer the question in the title.
I want to lock a table so that it can't be written to, but can be read. Is that possible?
Is that what happens in a transaction with IsolationLevel.Serializable
? Or is that only for the rows affected? (And is that a lock on read's as well?)
If it matters: I'm doing this in C#.