Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the Author’s Perspective.
Beyond Relational has come up with a very interesting concept – they have converted a few of the questions from my book into the SQL Quiz. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, Vinod Kumar (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.
Have you ever faced a situation when you are trying to retrieve any data and the query keeps on waiting on the data and eventually times out? One of the reasons for this can be locking. What are the different types of locks inside SQL Server 2008 R2?
Locking and Blocking are non-negotiable when it comes to working with Databases. This support article gives great related information.
Locking and Blocking is an interesting concept. I often see people getting confused between them. Deadlock and Livelock are other concepts which keep on getting people confused as well. I think in today’s note, I have not added any more hint but just asked further questions which are add to the confusion. Well, let me make things more interesting AND confusing. I think it will be a good idea to learn when a query times out due to deadlock and due to server time out or when the server is suffering from performance issues.
SQL Server Interview Questions and Answers ISBN: 1466405643 Page#41-43
Simple Example of Snapshot Isolation – Reduce the Blocking Transactions
TRANSACTION, DML and Schema Locks
Introduction to Live Lock – What is Live Lock?
Applying NOLOCK Hint at Query Level – NOLOCK for whole Transaction
Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.
Reference: Pinal Dave (http://blog.sqlauthority.com)