6
Locking Internals By Amit R S Bansal Director, Principal Consultant & Trainer www.PeoplewareIndia.com | www.amitbansal.net MVP, MCT, MCTS, MCITP etc.. www.facebook.com/groups/theSQLGeeks Follow me on twitter now @A_Bansal http :// www.facebook.com/amit.r.bansal

Locking Internals By Amit R S Bansal Director, Principal Consultant & Trainer

Embed Size (px)

DESCRIPTION

Locking Internals By Amit R S Bansal Director, Principal Consultant & Trainer www.PeoplewareIndia.com | www.amitbansal.net MVP, MCT, MCTS , MCITP etc .. www.facebook.com/groups/theSQLGeeks Follow me on twitter now @ A_Bansal http :// www.facebook.com/amit.r.bansal. Amit R S Bansal. - PowerPoint PPT Presentation

Citation preview

Page 1: Locking Internals By Amit R S Bansal Director, Principal Consultant & Trainer

Locking InternalsBy

Amit R S BansalDirector, Principal Consultant & Trainer

www.PeoplewareIndia.com | www.amitbansal.netMVP, MCT, MCTS, MCITP etc..

www.facebook.com/groups/theSQLGeeks

Follow me on twitter now @A_Bansalhttp://www.facebook.com/amit.r.bansal

Page 2: Locking Internals By Amit R S Bansal Director, Principal Consultant & Trainer

Technical Director, eDominer Systems & Peopleware India

Corporate Trainer/Consultant & Evangelist

Conducted more than 450+ workshops on SQL Server & BI for top notch IT companies world wide

Microsoft MVP for SQL Server

Speaker at TechED India, TechED US & TechED Europe

Speaking at SQLBITs this March in London

Technical Reviewer/SME – MSL courses & certifications on SQL Server

Founder & President – SQLServerGeeks.com

Amit R S Bansal

Page 3: Locking Internals By Amit R S Bansal Director, Principal Consultant & Trainer

Lock escalation Row/Page -> Table (default) or Row/Page -> Partition (if table is partitioned and partition-level locking

is enabled) Never from Row -> Page & Never from Partition -> Table

Update Locks TRAN A is locking rec1. TranB wants to update rec1, rec2 & rec3. TRANB will wait for an U lock on rec1, but will not lock rec2 & rec3

(thus increasing concurrency)PAGE locks

Mysterious (watch the demo)

Locking Myths debunked

Page 4: Locking Internals By Amit R S Bansal Director, Principal Consultant & Trainer

Be a member - www.SQLServerGeeks.comwww.FaceBook.com/SQLServerGeeksTwitter @SQLServerGeeksPresentation & Scripts uploaded on www.SQLServerGeeks.com/files

Continue your learning…

Page 5: Locking Internals By Amit R S Bansal Director, Principal Consultant & Trainer

www.AmitBansal.netLinkedIN, FB, Twitter, GuestBookTwitter: @A_Bansal

Join my networkPersonal Site – http://www.amitbansal.netLinkedIn – http://www.linkedin.com/in/AmitBansal2010Forum – www.FaceBook.com/groups/theSQLGeeksFaceBook – http://www.facebook.com/people/Amit.R.BansalTwitter – http://www.twitter.com/A_BansalBlog – www.SQLServerGeeks.com

Connect with Amit Bansal

Page 6: Locking Internals By Amit R S Bansal Director, Principal Consultant & Trainer

Thank you

for suggestions, please email at [email protected]