Connect with life Vinod Kumar Technology Evangelist - Microsoft

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Bijoy Singhal Developer Evangelist | Microsoft India |
Co- location Mass Market Managed Hosting ISV Hosting.
Connect with life Vinod Kumar M Technology Evangelist | Microsoft
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Ian Ellison-Taylor General Manager Microsoft Corporation PC27.
Connect with life Vinod Kumar Technology Evangelist | Microsoft
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
Feature: Void Historical/Open Transaction Updates © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Praveen Srivatsa Director| AstrhaSoft Consulting blogs.asthrasoft.com/praveens |

Connect with life Bijoy Singhal Microsoft India Jadeja Dushyantsinh A Microsoft India.
IoCompleteRequest (Irp);... p = NULL; …f(p);
Ctrl-K, X Ctrl-K, S
MIX 09 4/17/2018 4:41 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Возможности Excel 2010, о которых следует знать
Title of Presentation 11/22/2018 3:34 PM
Title of Presentation 12/2/2018 3:48 PM
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Title of Presentation 5/12/ :53 PM
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Title of Presentation 7/24/2019 8:53 PM
Presentation transcript:

Connect with life Vinod Kumar Technology Evangelist - Microsoft

Agenda How database snapshots work Database snapshot creation steps Performance considerations with write- intensive workloads Restoring from a database snapshot

Row-1 Tran2 (Select) Tran1 (Update) X-Lock S-LockBlocked Row-1 Reader Writer Blocking

Database Snapshot – How it really works 1 Pages CreditSS1 – Read-Only Database Snapshot CREATE DATABASE CreditSS1 (…) AS SNAPSHOT OF Credit Credit – Database USE Credit UPDATE… ( pages 4, 9, 10 ) USE CreditSS1 SELECT… ( pages 4, 6, 9, 10, 14 )

About Database Snapshots (1) Database snapshots are read only You can not change any data You can not create any new object Transactional consistent Consistent as of a particular point-in-time Includes all metadata, tables, indexes, stored procs, etc. If you create an index on a table in the source database after creating the database snapshot, the index will not be there in the database snapshot Database snapshots have no transaction log One data file for each corresponding data file in the source database You can create more than one database snapshot on the same source database You can create a database snapshot on a mirror database (not part of the discussion today)

About Database Snapshots (2) Enterprise Edition and Developer Edition only Must reside on The same instance as the source db NTFS filesystem Cannot Backup / Restore Detach / Attach Drop (or RESTORE WITH REPLACE) the source database if any database snapshot(s) exists on it. Need to drop the database snapshot(s) first. Reside on Fat32 filesystem / Raw Partitions Be a source for another database snapshot Be source for Scalable Shared Database (SSD) Create db snapshots on model, master, and tempdb databases (but can create on msdb)

Sparse Files Database snapshots use sparse files as data files Sparse files require NTFS Logical size of the sparse file is equal to the size of the corresponding data file of the source database, at the time of creating the database snapshot But the sparse file doesn’t reserve all the space Physical size is only the amount of space consumed by the original pages copied from the source database To find the physical size of a sparse file properties → size on disk select * from fn_virtualfilestats(db_id(), null); and look for the column BytesOnDisk You may over-allocate your disk space due to the fact that sparse files not actually reserve all the space they might need

Copy On Write Database snapshots use the “COW” technology to maintain point-in-time data Copy on FIRST write ONLY Only the first change to a page will cause the page to be copied; the next billion changes are ‘free’

Database Snapshots Usage Scenarios Point-in-time reporting Offloading reporting to mirror server Restoring in a test environment in order to restart a test from the same initial database state Safeguard against human / machine errors Administrative errors: before executing a large batch job, schema change, etc. User errors

Database Snapshot creation steps

Database Snapshot Creation Steps CREATE DATABASE … AS SNAPSHOT command issued Checkpointing occurs Database snapshot files opened Database snapshot startup Recovery starts Analysis phase Redo phase Undo phase Recovery finished

How many Database Snapshots can my system handle? On a given source database There is no built-in limit Factors to consider: IO load (especially writes) Database size Database activity (especially writes) RAM

When is the database snapshot data current?

When is the database snapshot data current? Time CREATE DATABASE … AS SNAPSHOT command issued Database Snapshot creation completed Data in the DB snapshot is current as of this time Data that is committed in the source database as of the beginning of the analysis phase of the database snapshot recovery will be present in the database snapshot

Restoring from a Database Snapshot aka “Reverting to a Database Snapshot” RESTORE DATABASE AdventureWorks FROM DATABASE_SNAPSHOT = 'AdvWorks_DBSS1' Before restoring from a database snapshot, all other database snapshots must be dropped Even though you can restore from a database snapshot, it is not an alternative to regular database backups Not useful in media failure The transaction log is rebuilt during restore Can not roll forward using previous transaction log backups after restoring from a database snapshot

Querying a Database Snapshot Querying a database snapshot requires reading pages from the Source database Database snapshot sparse file The database snapshot is a separate database for all practical purposes The same physical pages on disk are loaded and stored separately in the buffer pool for the source database and the database snapshot

Querying a DB Snapshot

Feedback / QnA Your Feedback is Important! Please take a few moments to fill out our online feedback form at: > For detailed feedback, use the form at Or us at Use the Question Manager on LiveMeeting to ask your questions now!

© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.