Magicool
Thanks for watching!
Going Further
If this is the kind of SQL Server stuff you love learning about, you’ll love my training. I’m offering a 75% discount to my blog readers if you click from here. I’m also available for consulting if you just don’t have time for that and need to solve performance problems quickly.
Thanks for the video! Stumbled upon sp_getapplock and found your video which helped confirm it was how i was going to solve for a major production bug. You video was the first place i saw the concept of locking a non-object…very cool. In my case i used it to create a lock on a block of code within a stored proc as only this one segment required concurrency to be blocked.Thx!
Glad you found it useful! It’s a bit of an edge case, sure, but it can really help in situations like yours.
Thanks!
Much appreciated for making the video. Had come across the docs on sp_getapplock but wasn’t positive if it worked this way or not. I’ve used pretty much the same thing in Coldfusion for locking specific sections of code by IP address. I’ll have a general name describing the event and just append the IP address to the end, and then lock based on the concatenated string. Needed to do the same thing her but for a specific row in a table, and this should let me do that.
Thanks!
Interesting current use case! I’d love to see how you get that done.
Thanks!