Top Banner
15

Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013

Jun 22, 2015

Download

Technology

Learn from Grant Fritchey about the common, repetitive tasks required to administer databases.
Identify tools available to help make the tasks easier.
Automate the resolution of these tasks in order to reduce time spent and errors produced.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013
Page 2: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013

Page 3: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013

• Validate Production Deployment

• Validate Data Load

• Recover Objects From Backups

• Maintain Lookup Data

• Audit Database Structures

Page 4: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013

• Not just Production

• Deployments happen frequently

• Failed deployments are costly

• Recovery may be impossible

• Code creep occurs in databases too

Page 5: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013
Page 6: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013

• Provide a safety net for data movement

• Partial success is hard to identify

• More than just a row count

• Makes immediate recovery possible

Page 7: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013
Page 8: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013

• Oops

• Restore is first choice

• Restore may not be possible

• Not just objects, but data

Page 9: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013
Page 10: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013

• Common data

• Multiple locations

• Consistent behavior

• Accurate data retrieval

Page 11: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013
Page 12: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013

• Others with ‘sa’ priveleges

• Unknown state of server

• No deployment process

• No change log

• Legal compliance

Page 13: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013
Page 14: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013

• Compare works with

– Databases

– Backups

– Scripts

– Snapshots

• Use command line

• Learn PowerShell

Page 15: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013