<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Learning To Program</title>
	<atom:link href="http://letopro.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://letopro.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 08 Aug 2008 10:01:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='letopro.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Learning To Program</title>
		<link>http://letopro.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://letopro.wordpress.com/osd.xml" title="Learning To Program" />
	<atom:link rel='hub' href='http://letopro.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Learning to Compile, Unix Style</title>
		<link>http://letopro.wordpress.com/2008/08/08/learning-to-compile-unix-style/</link>
		<comments>http://letopro.wordpress.com/2008/08/08/learning-to-compile-unix-style/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 10:01:24 +0000</pubDate>
		<dc:creator>letopro</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://letopro.wordpress.com/?p=14</guid>
		<description><![CDATA[Have installed Ubuntu on a virtual box, and am starting to have fun.  First, went to compile something using the &#8220;make&#8221; file included, and received a bunch of happy fun errors like this: error: stdio.h: No such file or directory Resolved this issue with this command: sudo apt-get install build-essential Found on this useful web [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=letopro.wordpress.com&amp;blog=4099409&amp;post=14&amp;subd=letopro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have installed Ubuntu on a virtual box, and am starting to have fun.  First, went to compile something using the &#8220;make&#8221; file included, and received a bunch of happy fun errors like this:</p>
<pre>error: stdio.h: No such file or directory

Resolved this issue with this command:

sudo apt-get install build-essential

Found on this useful web site:

http://www.spiration.co.uk/post/1291</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/letopro.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/letopro.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/letopro.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/letopro.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/letopro.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/letopro.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/letopro.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/letopro.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/letopro.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/letopro.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/letopro.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/letopro.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/letopro.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/letopro.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/letopro.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/letopro.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=letopro.wordpress.com&amp;blog=4099409&amp;post=14&amp;subd=letopro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://letopro.wordpress.com/2008/08/08/learning-to-compile-unix-style/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/94c017e2f57ed416adda2c0d8c2d8883?s=96&#38;d=identicon" medium="image">
			<media:title type="html">letopro</media:title>
		</media:content>
	</item>
		<item>
		<title>Why you SHOULD comment.</title>
		<link>http://letopro.wordpress.com/2008/07/28/why-you-should-comment/</link>
		<comments>http://letopro.wordpress.com/2008/07/28/why-you-should-comment/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 09:51:45 +0000</pubDate>
		<dc:creator>letopro</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://letopro.wordpress.com/?p=12</guid>
		<description><![CDATA[Nice article on commenting your code.  Please comment your code, if for no other reason than I can at least see what you were trying to do when I come in to fix your bugs.  Yes, you have bugs in your code (and so do I).  If I&#8217;m not even sure what you were trying [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=letopro.wordpress.com&amp;blog=4099409&amp;post=12&amp;subd=letopro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Nice article on commenting your code.  <a href="http://blog.uncommons.org/2008/07/25/no-your-code-is-not-so-great-that-it-doesnt-need-comments/" target="_self">Please comment your code</a>, if for no other reason than I can at least see what you were trying to do when I come in to fix your bugs.  Yes, you have bugs in your code (and so do I).  If I&#8217;m not even sure what you were trying to do, I&#8217;m more likely to rewrite it, <a href="http://www.joelonsoftware.com/articles/fog0000000069.html" target="_self">which has wasted both of our time</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/letopro.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/letopro.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/letopro.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/letopro.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/letopro.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/letopro.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/letopro.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/letopro.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/letopro.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/letopro.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/letopro.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/letopro.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/letopro.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/letopro.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/letopro.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/letopro.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=letopro.wordpress.com&amp;blog=4099409&amp;post=12&amp;subd=letopro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://letopro.wordpress.com/2008/07/28/why-you-should-comment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/94c017e2f57ed416adda2c0d8c2d8883?s=96&#38;d=identicon" medium="image">
			<media:title type="html">letopro</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server: Transacation Log Restore Sample</title>
		<link>http://letopro.wordpress.com/2008/07/27/sql-server-transacation-log-restore-sample/</link>
		<comments>http://letopro.wordpress.com/2008/07/27/sql-server-transacation-log-restore-sample/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 18:14:50 +0000</pubDate>
		<dc:creator>letopro</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://letopro.wordpress.com/?p=6</guid>
		<description><![CDATA[Some snippets of sample code showing how to backup and restore from transaction logs. &#8211; FULL BACK UP BACKUP DATABASE [AdventureWorks] TO DISK = N&#8217;H:\SQLServer2008_RC0\MSSQL10.MSSQLSERVER\MSSQL\Backup\AdventureWorks.bak&#8217; WITH NOFORMAT, INIT, NAME = N&#8217;AdventureWorks-Full Database Backup&#8217; , SKIP, NOREWIND, NOUNLOAD, COMPRESSION, STATS = 10 GO declare @backupSetId as int select @backupSetId = position from msdb..backupset where database_name=N&#8217;AdventureWorks&#8217; and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=letopro.wordpress.com&amp;blog=4099409&amp;post=6&amp;subd=letopro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some snippets of sample code showing how to backup and restore from transaction logs.</p>
<p><span style="font-size:10pt;"><span style="font-family:'Courier New',monospace;"><span style="color:#008000;">&#8211;</span></span></span><span style="font-family:'Courier New',monospace;"><span style="color:#008000;"><span style="font-size:10pt;"> FULL BACK UP</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="color:#0000ff;"><span style="font-size:10pt;">BACKUP</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">DATABASE</span></span><span style="font-size:10pt;"> [AdventureWorks]</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
TO</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">DISK</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">= </span></span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;H:</span><span style="font-size:10pt;">\SQLServer2008_RC0</span><span style="font-size:10pt;">\MSSQL10.MSSQLSERVER</span><span style="font-size:10pt;">\MSSQL</span><span style="font-size:10pt;">\Backup</span><span style="font-size:10pt;">\AdventureWorks.bak&#8217;</span></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
WITH</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOFORMAT</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">INIT</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> NAME </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> </span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;AdventureWorks-</span><span style="font-size:10pt;">Full Database Backup&#8217;</span></span><span style="color:#808080;"><span style="font-size:10pt;"><br />
,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">SKIP</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOREWIND</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOUNLOAD</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">COMPRESSION</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#008000;"><span style="font-size:10pt;">STATS</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> 10</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
GO</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="color:#0000ff;"><span style="font-size:10pt;">declare</span></span><span style="font-size:10pt;"> @backupSetId </span><span style="color:#0000ff;"><span style="font-size:10pt;">as</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">int<br />
select</span></span><span style="font-size:10pt;"> @backupSetId </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> position</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
from</span></span><span style="font-size:10pt;"> msdb</span><span style="color:#808080;"><span style="font-size:10pt;">..</span></span><span style="font-size:10pt;">backupset</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
where</span></span><span style="font-size:10pt;"> database_name</span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;AdventureWorks&#8217;</span></span><span style="color:#808080;"><span style="font-size:10pt;"><br />
and</span></span><span style="font-size:10pt;"> backup_set_id</span><span style="color:#808080;"><span style="font-size:10pt;">=(</span></span><span style="color:#0000ff;"><span style="font-size:10pt;">select</span></span><span style="font-size:10pt;"> </span><span style="color:#ff00ff;"><span style="font-size:10pt;">max</span></span><span style="color:#808080;"><span style="font-size:10pt;">(</span></span><span style="font-size:10pt;">backup_set_id</span><span style="color:#808080;"><span style="font-size:10pt;">)</span></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
from</span></span><span style="font-size:10pt;"> msdb</span><span style="color:#808080;"><span style="font-size:10pt;">..</span></span><span style="font-size:10pt;">backupset</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
where</span></span><span style="font-size:10pt;"> database_name</span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;AdventureWorks&#8217;</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">)</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="color:#0000ff;"><span style="font-size:10pt;">if</span></span><span style="font-size:10pt;"> @backupSetId </span><span style="color:#808080;"><span style="font-size:10pt;">is</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">null</span></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
begin</span></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
raiserror</span></span><span style="color:#808080;"><span style="font-size:10pt;">(</span></span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;Verify failed. Backup information for database &#8221;AdventureWorks&#8221; not found.&#8217;</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> 16</span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> 1</span><span style="color:#808080;"><span style="font-size:10pt;">)<br />
</span></span><span style="color:#0000ff;"><span style="font-size:10pt;">end</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="color:#0000ff;"><span style="font-size:10pt;">RESTORE</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">VERIFYONLY</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">FROM</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">DISK</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="color:#ff0000;"><span style="font-size:10pt;"> N&#8217;H:</span><span style="font-size:10pt;">\SQLServer2008_RC0</span><span style="font-size:10pt;">\MSSQL10.MSSQLSERVER</span><span style="font-size:10pt;">\MSSQL</span><span style="font-size:10pt;">\Backup</span><span style="font-size:10pt;">\AdventureWorks.bak&#8217;<br />
</span></span><span style="color:#0000ff;"><span style="font-size:10pt;">WITH</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">FILE</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> @backupSetId</span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOUNLOAD</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOREWIND<br />
GO</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="font-size:10pt;"><span style="color:#008000;">&#8211;</span></span><span style="color:#008000;"><span style="font-size:10pt;"> TRANSACTION LOG BACKUP</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="color:#0000ff;"><span style="font-size:10pt;">BACKUP</span></span><span style="font-size:10pt;"> </span><span style="color:#ff00ff;"><span style="font-size:10pt;">LOG</span></span><span style="font-size:10pt;"> [AdventureWorks]</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
TO</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">DISK</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="color:#ff0000;"><span style="font-size:10pt;"> N&#8217;H:</span><span style="font-size:10pt;">\SQLServer2008_RC0</span><span style="font-size:10pt;">\MSSQL10.MSSQLSERVER</span><span style="font-size:10pt;">\MSSQL</span><span style="font-size:10pt;">\Backup</span><span style="font-size:10pt;">\AdventureWorks.bak&#8217;</span></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
WITH</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOFORMAT</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOINIT</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> NAME </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> </span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;AdventureWorks-</span><span style="font-size:10pt;">Transaction Log  Backup&#8217;</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">SKIP</span></span><span style="color:#808080;"><span style="font-size:10pt;"><br />
,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOREWIND</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOUNLOAD</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#008000;"><span style="font-size:10pt;">STATS</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> 10</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
GO</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="color:#0000ff;"><span style="font-size:10pt;">declare</span></span><span style="font-size:10pt;"> @backupSetId </span><span style="color:#0000ff;"><span style="font-size:10pt;">as</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">int<br />
select</span></span><span style="font-size:10pt;"> @backupSetId </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> position</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
from</span></span><span style="font-size:10pt;"> msdb</span><span style="color:#808080;"><span style="font-size:10pt;">..</span></span><span style="font-size:10pt;">backupset</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
where</span></span><span style="font-size:10pt;"> database_name</span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;AdventureWorks&#8217;</span></span><span style="color:#808080;"><span style="font-size:10pt;"><br />
and</span></span><span style="font-size:10pt;"> backup_set_id</span><span style="color:#808080;"><span style="font-size:10pt;">=(</span></span><span style="color:#0000ff;"><span style="font-size:10pt;">select</span></span><span style="font-size:10pt;"> </span><span style="color:#ff00ff;"><span style="font-size:10pt;">max</span></span><span style="color:#808080;"><span style="font-size:10pt;">(</span></span><span style="font-size:10pt;">backup_set_id</span><span style="color:#808080;"><span style="font-size:10pt;">)</span></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
from</span></span><span style="font-size:10pt;"> msdb</span><span style="color:#808080;"><span style="font-size:10pt;">..</span></span><span style="font-size:10pt;">backupset</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
where</span></span><span style="font-size:10pt;"> database_name</span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;AdventureWorks&#8217;</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">)</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="font-size:10pt;"> </span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="color:#0000ff;"><span style="font-size:10pt;">if</span></span><span style="font-size:10pt;"> @backupSetId </span><span style="color:#808080;"><span style="font-size:10pt;">is</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">null</span></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
begin</span></span><span style="font-size:10pt;"></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
raiserror</span></span><span style="color:#808080;"><span style="font-size:10pt;">(</span></span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;Verify failed. Backup information for database &#8221;AdventureWorks&#8221; not found.&#8217;</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> 16</span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> 1</span><span style="color:#808080;"><span style="font-size:10pt;">)<br />
</span></span><span style="color:#0000ff;"><span style="font-size:10pt;">end</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="color:#0000ff;"><span style="font-size:10pt;">RESTORE</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">VERIFYONLY<br />
</span></span><span style="color:#0000ff;"><span style="font-size:10pt;">FROM</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">DISK</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">= </span></span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;H:</span><span style="font-size:10pt;">\SQLServer2008_RC0</span><span style="font-size:10pt;">\MSSQL10.MSSQLSERVER</span><span style="font-size:10pt;">\MSSQL</span><span style="font-size:10pt;">\Backup</span><span style="font-size:10pt;">\AdventureWorks.bak&#8217;</span></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
WITH</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">FILE</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> @backupSetId</span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOUNLOAD</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOREWIND<br />
GO</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="font-size:10pt;"><span style="color:#008000;">&#8211;</span></span><span style="color:#008000;"><span style="font-size:10pt;"> RESTORING FROM FULL, APPLYING TRANSACTION LOGS.</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="color:#0000ff;"><span style="font-size:10pt;">RESTORE</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">DATABASE</span></span><span style="font-size:10pt;"> [AdventureWorks]</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
FROM</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">DISK</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">= </span></span><span style="color:#ff0000;"><span style="font-size:10pt;">N&#8217;H:</span><span style="font-size:10pt;">\SQLServer2008_RC0</span><span style="font-size:10pt;">\MSSQL10.MSSQLSERVER</span><span style="font-size:10pt;">\MSSQL</span><span style="font-size:10pt;">\Backup</span><span style="font-size:10pt;">\AdventureWorks.bak&#8217;</span></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
WITH</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">FILE</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> 1</span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NORECOVERY</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOUNLOAD</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#ff00ff;"><span style="font-size:10pt;">REPLACE</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#008000;"><span style="font-size:10pt;">STATS</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> 10</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
GO</span></span></span></p>
<p><span style="font-family:'Courier New',monospace;"><span style="color:#0000ff;"><span style="font-size:10pt;">RESTORE</span></span><span style="font-size:10pt;"> </span><span style="color:#ff00ff;"><span style="font-size:10pt;">LOG</span></span><span style="font-size:10pt;"> [AdventureWorks] </span><span style="color:#0000ff;"><span style="font-size:10pt;">FROM</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">DISK</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="color:#ff0000;"><span style="font-size:10pt;"> N&#8217;H:</span><span style="font-size:10pt;">\SQLServer2008_RC0</span><span style="font-size:10pt;">\MSSQL10.MSSQLSERVER</span><span style="font-size:10pt;">\MSSQL</span><span style="font-size:10pt;">\Backup</span><span style="font-size:10pt;">\AdventureWorks.bak&#8217;</span></span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
WITH</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">FILE</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> 2</span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#0000ff;"><span style="font-size:10pt;">NOUNLOAD</span></span><span style="color:#808080;"><span style="font-size:10pt;">,</span></span><span style="font-size:10pt;"> </span><span style="color:#008000;"><span style="font-size:10pt;">STATS</span></span><span style="font-size:10pt;"> </span><span style="color:#808080;"><span style="font-size:10pt;">=</span></span><span style="font-size:10pt;"> 10</span><span style="color:#0000ff;"><span style="font-size:10pt;"><br />
GO</span></span></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/letopro.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/letopro.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/letopro.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/letopro.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/letopro.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/letopro.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/letopro.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/letopro.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/letopro.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/letopro.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/letopro.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/letopro.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/letopro.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/letopro.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/letopro.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/letopro.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=letopro.wordpress.com&amp;blog=4099409&amp;post=6&amp;subd=letopro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://letopro.wordpress.com/2008/07/27/sql-server-transacation-log-restore-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/94c017e2f57ed416adda2c0d8c2d8883?s=96&#38;d=identicon" medium="image">
			<media:title type="html">letopro</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.Net &#8211; A fresh beginning</title>
		<link>http://letopro.wordpress.com/2008/06/29/aspnet-a-fresh-beginning/</link>
		<comments>http://letopro.wordpress.com/2008/06/29/aspnet-a-fresh-beginning/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 14:38:20 +0000</pubDate>
		<dc:creator>letopro</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://letopro.wordpress.com/?p=5</guid>
		<description><![CDATA[So, started trying to pick up ASP.Net.  Some things I learned: A decent tutorial site: http://www.functionx.com/aspnet_csharp/Lesson05.htm The &#8220;rel&#8221; html tag establishes a &#8220;relationship&#8221; between pages.  Most notably, this is used for establishing a relationship to a stylesheet. Some simple code that demonstrates a clever string to int conversion: if (TextBox1.Text == "") { TextBox1.Text = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=letopro.wordpress.com&amp;blog=4099409&amp;post=5&amp;subd=letopro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, started trying to pick up ASP.Net.  Some things I learned:</p>
<p>A decent tutorial site: http://www.functionx.com/aspnet_csharp/Lesson05.htm</p>
<p>The &#8220;rel&#8221; html tag establishes a &#8220;relationship&#8221; between pages.  Most notably, this is used for establishing a relationship to a stylesheet.</p>
<p>Some simple code that demonstrates a clever string to int conversion:</p>
<p><code><br />
if (TextBox1.Text == "")<br />
{<br />
TextBox1.Text = "2";<br />
}<br />
else<br />
{<br />
try<br />
{<br />
int val;<br />
val = int.Parse("0" + TextBox1.Text); ;<br />
val = val * 2;<br />
TextBox1.Text = val.ToString();<br />
}<br />
catch (Exception myException)<br />
{<br />
}<br />
}<br />
</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/letopro.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/letopro.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/letopro.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/letopro.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/letopro.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/letopro.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/letopro.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/letopro.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/letopro.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/letopro.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/letopro.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/letopro.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/letopro.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/letopro.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/letopro.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/letopro.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=letopro.wordpress.com&amp;blog=4099409&amp;post=5&amp;subd=letopro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://letopro.wordpress.com/2008/06/29/aspnet-a-fresh-beginning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/94c017e2f57ed416adda2c0d8c2d8883?s=96&#38;d=identicon" medium="image">
			<media:title type="html">letopro</media:title>
		</media:content>
	</item>
	</channel>
</rss>
