Microsoft SQL Server multiple locks
-
08-07-2021 - |
Domanda
I'm currently running Microsoft SQL Express Server. When one user performs a query without committing it, it locks the entire table. The problem is that malicious users might "ruin" the database by doing so on purpose. How can I prevent this from happening?
Soluzione
You need to understand database isolation levels http://en.wikipedia.org/wiki/Isolation_(database_systems). Most likely you are running queries as seralizable which will have that effect. Try submitting some code.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow