<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LastLSN &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/lastlsn/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Mon, 20 Mar 2017 20:13:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>SQL Server: What is a Log Sequence Number (LSN)?</title>
		<link>https://www.dbrnd.com/2017/03/sql-server-what-is-a-log-sequence-number-lsn/</link>
					<comments>https://www.dbrnd.com/2017/03/sql-server-what-is-a-log-sequence-number-lsn/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 30 Mar 2017 16:16:47 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[CheckpointLSN]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[FirstLSN]]></category>
		<category><![CDATA[LastLSN]]></category>
		<category><![CDATA[Log Sequence Number]]></category>
		<category><![CDATA[LSN]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2603</guid>

					<description><![CDATA[I know this is not a new topic, but many SQL Database Administrator doesn&#8217;t know about the importance of LSNs, so I am sharing one of the important discussion about the SQL Server LSNs which are very necessary for Database backup and restore activities. What is LSN? Every record in the SQL Server transaction log [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&#038;title=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" data-a2a-url="https://www.dbrnd.com/2017/03/sql-server-what-is-a-log-sequence-number-lsn/" data-a2a-title="SQL Server: What is a Log Sequence Number (LSN)?"></a></p><p><em>I know this is not a new topic, but many SQL Database Administrator doesn&#8217;t know about the importance of LSNs, so I am sharing one of the important discussion about the SQL Server LSNs which are very necessary for Database backup and restore activities.</em></p>
<p><strong>What is LSN?</strong></p>
<blockquote><p>Every record in the SQL Server transaction log is uniquely identified by a Log Sequence Number (LSN).<br />
The LSNs are sequential, and in the particular ordered, new LSN is always higher than the old LSN.<br />
The LSN is a type of Numeric(25,0), so we can compare different LSNs using equality operators.
</p></blockquote>
<p><strong>The importance of LSN:</strong></p>
<blockquote><p>Generally, when we are restoring database, we are restoring in this sequence: Full Database backup -> Differential backup -> Transaction Log backup. </p></blockquote>
<blockquote><p>We cannot restore the Differential backup before the Full database backup because LSN is sequentially starting from the full database backup. </p></blockquote>
<blockquote><p>Before restoring of the Differential backup and Transaction Log backup, it checks FirstLSN, LastLSN, CheckpointLSN, DatabaseBackupLSN columns.</p>
<p>If LastLSN of the first file and FirstLSN of the second file doesn&#8217;t match, it fails to restore Differential backup and Transaction log backup.</p></blockquote>
<p><em>The sequence of LSNs is critical to restoring your database because all different database backup files virtually connected with each other. </em></p>
<blockquote><p>The first full database backup will always have a DatabaseBackupLSN of zero and FirstLSN is same as CheckpointLSN.</p>
<p>The Full database backup CheckpointLSN is a<br />
DatabaseBackupLSN for all differential databases. </p>
<p>The LastLSN of Differential backup will be between FirstLSN and LastLSN of the Transaction Log backup.
</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/03/sql-server-what-is-a-log-sequence-number-lsn/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
