Hello Dear Reader! My lastest blog on our Azure FastTrack blog for Microsoft is live, Monitoring Deadlocks in Azure SQL Managed Instance.
Here's a little from the blog:
To paraphrase Annie, Deadlocks ARE JUST AWFUL! When they occur, it means one transaction was the victim and rolled back, the other succeeded. You have a couple different ways to monitor them in Azure SQL Managed Instance. Let's review those together.
What is a deadlock? To quote our MS Learn Documentation, "Deadlocks occur when two or more processes or transactions block each other from continuing because each has locked a database resource that the other transaction needs".
In layman's terms a deadlock occurs when two queries are blocking one another and neither could ever complete its transaction. Pretend two people need to use the same door. They cannot fit through at the same time. One must stop and let the other proceeded first. Now add on top of that they both reached for the door knob and grabbed it at the same time, both pulling the door in an opposite direction.
Instead of simply waiting, one must let go of the door knob. In this case the door knob is a table, the hands reaching out are attempting to gain a lock. In SQL Server, all versions of the database engine, this is accomplished by the Lock Manager it uses a process called FIFO, first in first out, to determine who has to let go.
In the case of SQL one transaction is a deadlock victim, it is killed and the transaction is rolled back. So if this is occurring on your system fixing it is very important. First you have to find out if they are occurring, and that's what we will cover in this blog post today!
Hello Dear Reader! I've realized something writting this blog. I don't like to sit still. It is very rare that I have a down weekend, and this weekend was no different. My amazing wife did something really cool for me for Christmas.
You see I'm hard to shop for, or at least that's what I've been told. I don't mean to be, but I am. My birthday is in January. When I was a kid you got presents on your bithrday and on Christmas. Even though they are in different years, mine are so close together that for 10 months of the year there is nadda, then 2 months PRESENTS!
So with that in mind, if I want something I tend to buy it. At this point in my adult life I'm just used to that. So Sue came up with something cool. I love giving people experiences be it with food, giving advice or tips on Orlando, Disney, or Universal Studios or even when peoplke come over playing bartender, setting up events with friends (see last week).
Sue got me experiences, and what a time we've had. That included this Saturday seeing Steve Martin & Martin Short live. I was laughing so hard throughout the event, but it wasn't just comedy. They are story tellers, showmen, and presetors. I couldn't help of people I know like Buck Woody (@Twitter | @BuckWoodyMSFT ), Patrick LeBlanc (Twitter | @PatrickDBA), or so many other amazing people in our community.
The timing and the comfort of doing a show with someone you know well. That made me think of Josh Ludeman (Twitter | @JoshLuedeman). There is no one in this world that I've presented with as much as Josh. As I enjoyed the banter back and forth you could see the comfort that comes from time and practice.
It was a great time and a great day. On Sunday we had that unusual down day. I did some work in the office, getting ready for our soon to be move, and when it came to dinner I wanted out of the house. I snapped a picture while we were out at bartaco. It has be come more and more rare to have all five of us at dinner together. Looking at the picture afterwards I realized something importiant. Serenity is now at the teenage point of making goofy faces in every family photo.
....it'll be a long two years, but I have plenty of her brother's from that period in time. As the youngest this is the last time I'll have to go through this. That acknowledgement came with a bittersweet feeling.
All right enough about the weekend, let's get to the round up!
MONDAY 4-24-2023
On Monday Daniel Taylor (Twitter | @DBABulldog) dropped his first video on the channel. Congratulations Dan! He had a really great point of view, working with a customer he needed to solve the problem of teaching them how to backup SQL Server via URL. The twist is the DBA's do not have rights to get SAS tokens, and so he had to teach the Azure Admins how to do that portion.
On Friday Neeraj Jhaveri, Daniel Taylor, and myself will be teaching our DBA 101: A Full Day of Fundamentals, but Andres Padilla & Josh Luedeman will be presenting at the event as well. The whole Tales from the Field crew is together live for the first time at a conference.
This is going to be a lot of fun. We have 8 sessions on the agenda so come and attend, have a conversation with us, or grab a sticker while we have them!
We hope to see you in Jacksonville, but more than anything Dear Reader thank you for stopping by!