After running exec sp_lock on one of our databases we found there’s close to 3000 locks present, however we’re able to access and write to all tables.
We’re using NHibernate in our app layer. Is this normal?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Most databases have some locks on them, most of them you do not have to worry about.
Locks often are used to prevent data corruption and invalid data by not allowing multiple users to modify the same data at the same time.
There are different types of locks, most of the time optimistic locks are used, which are only activated when a user actually updates the data.