{"id":498,"date":"2012-04-17T09:43:00","date_gmt":"2012-04-17T09:43:00","guid":{"rendered":"\/blogs\/paul\/post\/Bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-05MB.aspx"},"modified":"2017-04-13T09:50:18","modified_gmt":"2017-04-13T16:50:18","slug":"bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/","title":{"rendered":"Bug: reverting from a database snapshot shrinks the transaction log to 0.5MB"},"content":{"rendered":"<p>I&#8217;ve blogged about problems with database snapshots a few times previously (see my <a href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/category\/database-snapshots\/\" target=\"_blank\">Database Snapshots<\/a> category) but here&#8217;s a new one that I&#8217;ve been meaning to blog for a while that you need to know about.<\/p>\n<p>One of the cool uses of database snapshots is to be able to create one, make a bunch of changes to the source database, and if you want to go back to the prior state of the source database then instead of doing a potentially long restore operation from scratch, you can revert to the snapshot. In other words, you&#8217;re winding the source database back in time to the instant that you created the database snapshot. Sounds cool, right?<\/p>\n<p>It is &#8211; except for a hidden behavior that I discovered. When you revert to the database snapshot, the transaction log file of the source database is ripped out and replace with a 0.5MB log file with two 0.25MB VLFs. This means that after the revert you&#8217;re going to have to manually reset the log file to the size it used to be, waiting for the zero initialization of the log file to occur (see <a href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-24-why-cant-the-transaction-log-use-instant-initialization\/\">Search Engine Q+A #24: Why can&#8217;t the transaction log use instant initialization?<\/a>), or if you don&#8217;t realize this behavior has occurred, your log will grow itself and your workload will suffer performance hits waiting for the log to zero initialize during each log growth.<\/p>\n<p><strong><u>This is horrible behavior and is a nasty\u00a0bug.<\/u><\/strong><\/p>\n<p>Let me show you on SQL Server 2008R2 SP1. Using the <em>SalesDB<\/em> database that you can download from our <a href=\"http:\/\/www.sqlskills.com\/sql-server-resources\/sql-server-demos\/\" target=\"_blank\">Resources section<\/a>\u00a0(see top section of that link), I&#8217;ll restore the database, create a snapshot, and examine the log file of the <em>SalesDB<\/em> database:<\/p>\n<pre class=\"brush: sql; title: ; toolbar: true; wrap-lines: true; notranslate\" title=\"\">\r\nUSE &#x5B;master];\r\nGO\r\nIF DATABASEPROPERTYEX (N'SalesDB_Snapshot', N'Version') &gt; 0\r\n    DROP DATABASE &#x5B;SalesDB_Snapshot];\r\nGO\r\n\r\nRESTORE DATABASE &#x5B;SalesDB] FROM DISK = N'D:\\SQLskills\\Backups\\SalesDB.bak'\r\nWITH STATS = 10, REPLACE;\r\nGO\r\n\r\n-- Create the snapshot\r\nCREATE DATABASE &#x5B;SalesDB_Snapshot] ON (\r\n    NAME = N'SalesDBData',\r\n    FILENAME = N'C:\\SQLskills\\test\\SalesDBData.mdfss')\r\nAS SNAPSHOT OF &#x5B;SalesDB];\r\nGO\r\n\r\nDBCC LOGINFO (N'SalesDB');\r\nDBCC SQLPERF (LOGSPACE);\r\nGO\r\n<\/pre>\n<pre class=\"brush: plain; gutter: false; title: ; toolbar: true; wrap-lines: true; notranslate\" title=\"\">\r\nFileId\u00a0\u00a0\u00a0\u00a0\u00a0 FileSize\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 StartOffset\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 FSeqNo\u00a0\u00a0\u00a0\u00a0\u00a0 Status\u00a0\u00a0\u00a0\u00a0\u00a0 Parity CreateLSN\r\n----------- -------------------- -------------------- ----------- ----------- ------ ----------\r\n2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10420224\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 8192\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 64\u00a0\u00a0\u00a0\u00a0 0\r\n2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10420224\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10428416\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 64\u00a0\u00a0\u00a0\u00a0 0\r\n2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10420224\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 20848640\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 373\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 64\u00a0\u00a0\u00a0\u00a0 0\r\n2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10674176\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 31268864\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 128\u00a0\u00a0\u00a0 0\r\n\r\nDatabase Name\u00a0 Log Size (MB) Log Space Used (%) Status\r\n-------------- ------------- ------------------ -----------\r\nmaster\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 6.742188\u00a0\u00a0\u00a0\u00a0\u00a0 21.86414\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\ntempdb\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.492188\u00a0\u00a0\u00a0\u00a0\u00a0 52.35602\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nmodel\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 11.49219\u00a0\u00a0\u00a0\u00a0\u00a0 12.27056\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nmsdb\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 23.80469\u00a0\u00a0\u00a0\u00a0\u00a0 11.8149\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nMail\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4.617188\u00a0\u00a0\u00a0\u00a0\u00a0 91.64552\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nSalesDB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 39.99219\u00a0\u00a0\u00a0\u00a0\u00a0 8.934851\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\n<\/pre>\n<p>Now I&#8217;ll revert to the snapshot and examine the log again:<\/p>\n<pre class=\"brush: sql; title: ; toolbar: true; wrap-lines: true; notranslate\" title=\"\">\r\nRESTORE DATABASE &#x5B;SalesDB] FROM DATABASE_SNAPSHOT = N'SalesDB_Snapshot';\r\nGO\r\n\r\nDBCC LOGINFO (N'SalesDB');\r\nDBCC SQLPERF (LOGSPACE);\r\nGO\r\n<\/pre>\n<pre class=\"brush: plain; gutter: false; title: ; toolbar: true; wrap-lines: true; notranslate\" title=\"\">\r\nFileId\u00a0\u00a0\u00a0\u00a0\u00a0 FileSize\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 StartOffset\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 FSeqNo\u00a0\u00a0\u00a0\u00a0\u00a0 Status\u00a0\u00a0\u00a0\u00a0\u00a0 Parity CreateLSN\r\n----------- -------------------- -------------------- ----------- ----------- ------ ----------\r\n2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 253952\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 8192\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1398\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 64\u00a0\u00a0\u00a0\u00a0 0\r\n2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 253952  \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0262144\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\n\r\nDatabase Name\u00a0 Log Size (MB) Log Space Used (%) Status\r\n-------------- ------------- ------------------ -----------\r\nmaster\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 6.742188\u00a0\u00a0\u00a0\u00a0\u00a0 21.92932\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\ntempdb\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.492188\u00a0\u00a0\u00a0\u00a0\u00a0 52.35602\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nmodel\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 11.49219\u00a0\u00a0\u00a0\u00a0\u00a0 12.27056\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nmsdb\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 23.80469\u00a0\u00a0\u00a0\u00a0\u00a0 11.8149\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nMail\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4.617188\u00a0\u00a0\u00a0\u00a0\u00a0 91.64552\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\nSalesDB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.484375\u00a0\u00a0\u00a0\u00a0\u00a0 45.3629\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\r\n<\/pre>\n<p>WOW! Check out the VLF sizes and the total log size.<\/p>\n<p>I&#8217;ve been asked before whether the revert is copying the log from the model database, but you can clearly see that it&#8217;s not as model&#8217;s log is 11.5MB. And none of the databases on my instance have VLFs with sequence numbers anywhere near 1398 (the <em>FSeqNo<\/em> column in the <em>DBCC LOGINFO<\/em> output) so I&#8217;ve got no idea where that is coming from.<\/p>\n<p>This behavior exists in all versions up to and including SQL Server 2016.<\/p>\n<p>Be careful out there!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve blogged about problems with database snapshots a few times previously (see my Database Snapshots category) but here&#8217;s a new one that I&#8217;ve been meaning to blog for a while that you need to know about. One of the cool uses of database snapshots is to be able to create one, make a bunch of [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-498","post","type-post","status-publish","format-standard","hentry","category-database-snapshots"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bug: reverting from a database snapshot shrinks the transaction log to 0.5MB - Paul S. Randal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bug: reverting from a database snapshot shrinks the transaction log to 0.5MB - Paul S. Randal\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve blogged about problems with database snapshots a few times previously (see my Database Snapshots category) but here&#8217;s a new one that I&#8217;ve been meaning to blog for a while that you need to know about. One of the cool uses of database snapshots is to be able to create one, make a bunch of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/\" \/>\n<meta property=\"og:site_name\" content=\"Paul S. Randal\" \/>\n<meta property=\"article:published_time\" content=\"2012-04-17T09:43:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-13T16:50:18+00:00\" \/>\n<meta name=\"author\" content=\"Paul Randal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Randal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/\",\"name\":\"Bug: reverting from a database snapshot shrinks the transaction log to 0.5MB - Paul S. Randal\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\"},\"datePublished\":\"2012-04-17T09:43:00+00:00\",\"dateModified\":\"2017-04-13T16:50:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bug: reverting from a database snapshot shrinks the transaction log to 0.5MB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\",\"name\":\"Paul S. Randal\",\"description\":\"In Recovery...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\",\"name\":\"Paul Randal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"caption\":\"Paul Randal\"},\"sameAs\":[\"http:\/\/3.209.169.194\/blogs\/paul\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bug: reverting from a database snapshot shrinks the transaction log to 0.5MB - Paul S. Randal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/","og_locale":"en_US","og_type":"article","og_title":"Bug: reverting from a database snapshot shrinks the transaction log to 0.5MB - Paul S. Randal","og_description":"I&#8217;ve blogged about problems with database snapshots a few times previously (see my Database Snapshots category) but here&#8217;s a new one that I&#8217;ve been meaning to blog for a while that you need to know about. One of the cool uses of database snapshots is to be able to create one, make a bunch of [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/","og_site_name":"Paul S. Randal","article_published_time":"2012-04-17T09:43:00+00:00","article_modified_time":"2017-04-13T16:50:18+00:00","author":"Paul Randal","twitter_misc":{"Written by":"Paul Randal","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/","name":"Bug: reverting from a database snapshot shrinks the transaction log to 0.5MB - Paul S. Randal","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website"},"datePublished":"2012-04-17T09:43:00+00:00","dateModified":"2017-04-13T16:50:18+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/bug-reverting-from-a-database-snapshot-shrinks-the-transaction-log-to-0-5mb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/paul\/"},{"@type":"ListItem","position":2,"name":"Bug: reverting from a database snapshot shrinks the transaction log to 0.5MB"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/","name":"Paul S. Randal","description":"In Recovery...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce","name":"Paul Randal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","caption":"Paul Randal"},"sameAs":["http:\/\/3.209.169.194\/blogs\/paul"],"url":"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/comments?post=498"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/498\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/media?parent=498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/categories?post=498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/tags?post=498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}