virtual techdays INDIA │ 9-11 February 2011 virtual techdays Auditing Made Easy: Change Tracking and Change Data Capture Pinal Dave │ Technology Evangelist, Microsoft
Technology Evangelist (DB and BI) – Microsoft India Founder – MCT, MCTS, MCP, MCDBA, MCAD Follow me - LinkedIn - MVP (2008 – 2011) virtual techdays INDIA │ 9-11 February 2011 About Pinal Dave 2
Introduction to Auditing Change Tracking Change Data Capture Auditing Demo virtual techdays INDIA │ 9-11 February 2011 S E S S I O N A G E N D A 3
If I had my original data, I can give you difference between values. What was the value of this particular field? How many times this column was updated? I want all of my deleted data back? What happened? Who did it? virtual techdays INDIA │ 9-11 February 2011 A Common Conversation 4
virtual techdays INDIA │ 9-11 February 2011 Who is he? What does he do? 5
Original Data virtual techdays INDIA │ 9-11 February 2011 What is more important? Data Modifier 6
virtual techdays INDIA │ 9-11 February 2011 Story of Audit What? How? Who? CT CDC Audit 7
SQL Profiler SQL Trace Table Trigger Custom T-SQL Solution virtual techdays INDIA │ 9-11 February 2011 Common Practices 8
Change Tracking (CT) Change Data Capture (CDC) SQL Audit virtual techdays INDIA │ 9-11 February 2011 SQL Server 2008 Technologies 9
Which rows are changed? Synchronous Process Available in All Versions virtual techdays INDIA │ 9-11 February 2011 Difference Side By Side Which rows are changed and How? Asynchronous Process Available in Enterprise Edition Change Tracking Change Data Capture 10
Least Performance Impact Least Database Size Usage: Change Tracking, ETL, Rollback data virtual techdays INDIA │ 9-11 February 2011 Similarity Side By Side Less Performance Impact Less Database Size Usage: Change Tracking, ETL, Rollback data Change Tracking Change Data Capture 11
virtual techdays INDIA │ 9-11 February 2011 virtual techdays Demo Change Tracking - WHAT
virtual techdays INDIA │ 9-11 February 2011 virtual techdays Demo Change Data Capture – HOW
Who did it? and How? Based on Extended Events Enterprise Edition Feature Security Feature virtual techdays INDIA │ 9-11 February 2011 SQL Audit 14
virtual techdays INDIA │ 9-11 February 2011 virtual techdays Demo SQL Audit - WHO
Change Tracking – WHAT has changed? Change Data Capture – HOW was ‘what’ changed? SQL Audit – WHO changed ‘what’ ‘how’? virtual techdays INDIA │ 9-11 February 2011 Summary 16
Download Code: Try out CT, CDC and SQL Audit Follow me: Read: Win! – Quiz at the End virtual techdays INDIA │ 9-11 February 2011 Thank YOU! 17
virtual techdays INDIA │ 9-11 February 2011 virtual techdays Thank You!