SQL Internals, Recovery Models, & Backups! OH MY!

By Bradley Ball MCTS, MCITP

Speaker Introduction Bradley Ball      

Over 10 Years IT Experience Previous experience DBA, for the U.S. Army, The Executive Office of the President Currently a Sr. SQL DBA Staff Specailist at Publix MCITP SQL 2005 DBA, MCTS SQL 2008 DBA Blog: http://www.SQLBalls.com Twitter: @SQLBalls

Agenda Internal Components  Internal Storage Structures  Recovery Models 



Backups Types

Why Learn the Internals

http://www.flickr.com/photos/billtimmins/26794483/sizes/z/in/photostream/

ACID

http://www.flickr.com/photos/sammyblot/5360856791/

Atomicity

Consistency Isolation Durability

Transaction Isolation Levels Serializable  Read Committed  Read Uncommitted  Repeatable Read  Snapshot Isolation 

Demo

On The Inside SNI

Relational Engine Command Parser

Optimizer Query Executor

Buffer Pool Storage Engine Transaction Manager

Plan Cache Access Methods

Buffer Manager

Data Cache DATA DATA

SQL OS

USER

SQL OS 

Preemptive Scheduling (OS)



Cooperative Scheduling (SQL)

Locks, Latches, Waits Locks (show a stop light)  Row, Page, and Table Escalation  Latches (who watches the watchmen)  Locks for Locks  Waits Cooperative Scheduling  Giving up our place in line willingly 

What Did We Just Cover 

SQL Internal Components

SQL Data Hierarchy IAM Chains and Allocation Units

Allocation Bit Maps

Extents

Pages

Records

What in the Shire Do Hobts Have to Do With My Data?! 

Allocation Units are made of 3 types  IN_ROW_DATA ○ Also known as HoBTs  Stands for Heap or B-Trees

 LOB_DATA ○ Also known as LOBs  Stands for Large Object Data

 ROW_OVERFLOW_DATA ○ Also known as SLOBs  Small Large Object Data

 Partitions

Heaps vs. Tables

B-Tree

Demo

What Did We Just Cover  SQL Internal

Components  Internal Storage Structures

Recovery Models Full  Bulk Logged  Simple 

Demo 

Show Recovery Model section in SSMS

What Did We Just Cover  Internal

Components  Internal Storage Structures  Recovery Models

Transaction Log

http://www.flickr.com/photos/jo-ah-chim/2350979305/sizes/z/in/photostream/

Transaction Log In Action In Simple Recovery

Virtual Log File

Demo

Backups Full  Transaction Log  Differential  Filegroup 

Demo

What Did We Just Cover  Internal

Components  Internal Storage Structures  Recovery Models 

Backups Types

Don’t Beat Yourself Up Nobody Knows everything  Nobody can know everything  Do your best  Never stop learning 

Resources

References   



Paul Randal MCM Video Series Data Structures http://bit.ly/hQO8ln Paul Randal MCM Video Series Log Files Internals & Maintenance http://bit.ly/hQO8ln Kalen Delaney, Paul Randal, Kimberly Tripp, Conor Cunningham, Adam Machanic Microsoft SQL Server 2008 Internals http://amzn.to/obxJim Christian Bolton, Justin Langford, Brent Ozar, James Rowland-Jones, Jonathan Kehayias, Cindy Gross, Steven Wort Professional SQL Server 2008 Internals and Troubleshooting http://amzn.to/na4idG

Questions

?

Pragmatic Works SQL Internals, Recovery Modes, & Backups! OH MY!.

Pragmatic Works SQL Internals, Recovery Modes, & Backups! OH MY!.pdf. Pragmatic Works SQL Internals, Recovery Modes, & Backups! OH MY!.pdf. Open.

2MB Sizes 0 Downloads 148 Views

Recommend Documents

oh my god 2015 1080p.pdf
Loading… Page 1. Whoops! There was a problem loading more pages. oh my god 2015 1080p.pdf. oh my god 2015 1080p.pdf. Open. Extract. Open with.

oh my god 2015 1080p.pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. oh my god 2015 1080p.pdf. oh my god 2015 1080p.pdf. Open.

Change my heart oh God.pdf
|Dm7 ||||||||||||||||||G ||||||||||C2. I am the clay. |E7sus/B |||||||||E7 ||||||||||||||||||||||||||Am. Mold me and make me. |D9sus ||||||||||||||||||||||D7 |Gsus |. This is what I pray. Page 1 of 1. Change my heart oh God.pdf. Change my heart oh Go

Oh My Lord is.pdf
Page 1 of 1. &. &. #. #. 4. 3. 4. 3. Guitar 1. Guitar 2. (echo). Adagio like a Spiritual. f. œ. œ œ. G. ∑. p(echo). ̇. œ. œ œ. œ. œ. œ. E m. ∑. ̇. œ. œ. œ. œ œ œ.

PGP, GPG, and Enigmail... Oh My! - GitHub
People use PGP to sign, encrypt, and decrypt emails, files, folders, and even whole disk partitions. PGP allows you to specify a recipient to encrypt a message for.

Oh, Hush Thee, My Baby.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Oh, Hush Thee ...

Wrox - Professional SQL Server 2012 Internals And Troubleshooting ...
Page 3 of 580. Wrox - Professional SQL Server 2012 Internals And Troubleshooting.pdf. Wrox - Professional SQL Server 2012 Internals And Troubleshooting.pdf.

Wrox - Professional SQL Server 2012 Internals And Troubleshooting.pdf
Wrox - Professional SQL Server 2012 Internals And Troubleshooting.pdf. Wrox - Professional SQL Server 2012 Internals And Troubleshooting.pdf. Open. Extract.

Oh, My Darling Clementine in D.pdf
Ruby lips above the water, blowing bubbles soft and fine,. But, alas, I was no swimmer, so I lost my Clementine. 2. tine---------. tine------. "Lower" Version. Verses:.

Watch Omg Oh My God! (2012) Full Movie Online Free ...
Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Watch Omg Oh My God! (2012) Full Movie Online Free .Mp4_______________.pdf. Watch Omg Oh My God! (20

PDF Oh My Aching Back (Signet) Online Ebook
PDF Oh My Aching Back (Signet) Online. Ebook. Download Oh My Aching Back (Signet), Download Oh My Aching Back (Signet) PDF, Download Oh My Aching Back (Signet) , Download Oh My Aching Back (Signet) Android, Download Oh My Aching Back (Signet) Full Eb

hindi movi oh my god is_safe:1.pdf
... apps below to open or edit this item. hindi movi oh my god is_safe:1.pdf. hindi movi oh my god is_safe:1.pdf. Open. Extract. Open with. Sign In. Main menu.

PE Second Nature 16.8 Unicorn, Caterpillar, Moth - Oh My!.pdf ...
Luna Moth. Page 1 of 2 .... PE Second Nature 16.8 Unicorn, Caterpillar, Moth - Oh My!.pdf. PE Second Nature 16.8 Unicorn, Caterpillar, Moth - Oh My!.pdf. Open.

©2011 by Selena of Oh My Aches and Pains!
activity types during the day to help conserve energy and pace yourself. ... more activities can be done sitting, or if you can alternate between sitting and standing ... monitor, or simply taking your pulse rate throughout the day, is another way to

©2011 by Selena of Oh My Aches and Pains!
HEART RATE: ​Wearing a heart rate monitor, or simply taking your pulse ... ©2011 by Selena of Oh My Aches and Pains! http:///www.ohmyachesandpains.info.

Building a Microsoft SQL Server Disaster Recovery Plan with Google ...
Starting with SQL Server 2012, you must be licensed with Software .... ​Google Cloud Platform Console​, click ​Manage project settings​ in the project box. 10 ...