<?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>IT Pro</title>
	<atom:link href="http://sqlhero.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlhero.wordpress.com</link>
	<description>More IT Technical Topics</description>
	<lastBuildDate>Sun, 12 Jun 2011 20:10:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sqlhero.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>IT Pro</title>
		<link>http://sqlhero.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sqlhero.wordpress.com/osd.xml" title="IT Pro" />
	<atom:link rel='hub' href='http://sqlhero.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Microsoft SQL Server 2008 : High Availability Always On Technologies</title>
		<link>http://sqlhero.wordpress.com/2009/11/28/microsoft-sql-server-2008-high-availability-always-on-technologies/</link>
		<comments>http://sqlhero.wordpress.com/2009/11/28/microsoft-sql-server-2008-high-availability-always-on-technologies/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 18:51:26 +0000</pubDate>
		<dc:creator>Mohamad Tantawy</dc:creator>
				<category><![CDATA[Disaster recovery]]></category>
		<category><![CDATA[Partitioning]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQLAdmin]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[Always On Technologies]]></category>
		<category><![CDATA[High Availabilty]]></category>

		<guid isPermaLink="false">http://sqlhero.wordpress.com/?p=171</guid>
		<description><![CDATA[Here are the list of options that can help you in deciding and managing high availabilty options in SQL Server 2008 Increased Availability Database Mirroring Log Shipping Failover Clustering Geographically Dispersed Failover Clustering Peer-to-Peer Replication Decreased Downtime Fast Database Recovery Backup and Restore Checksum on Data Pages Online Index Operations Online, Piecemeal, and Page-Level Restore [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=171&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here are the list of options that can help you in deciding and managing high availabilty options in SQL Server 2008</p>
<p><strong>Increased Availability</strong></p>
<ul>
<li>Database Mirroring</li>
<li>Log Shipping</li>
<li>Failover Clustering</li>
<li>Geographically Dispersed Failover Clustering</li>
<li>Peer-to-Peer Replication</li>
</ul>
<p><strong>Decreased Downtime</strong></p>
<ul>
<li>Fast Database Recovery</li>
<li>Backup and Restore</li>
<li>Checksum on Data Pages</li>
<li>Online Index Operations</li>
<li>Online, Piecemeal, and Page-Level Restore</li>
<li>Partial Database Availability</li>
<li>Snapshot Isolation</li>
</ul>
<p><strong>Dynamic Configuration</strong></p>
<ul>
<li>Enhanced Manageability</li>
<li>Database Snapshots</li>
<li>Table and Index Partitioning</li>
<li>Backup and Restore</li>
<li>Dedicated Administrator Connection</li>
<li>Resource Governor</li>
</ul>
<p>for More info please check the white paper of Microsoft SQL Server 2008 High Availabilty &#8211; Always on Technologies<br />
<a href="http://www.microsoft.com/sqlserver/2008/en/us/wp-sql-2008-high-availability.aspx">http://www.microsoft.com/sqlserver/2008/en/us/wp-sql-2008-high-availability.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlhero.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlhero.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlhero.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlhero.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlhero.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlhero.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlhero.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlhero.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlhero.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlhero.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlhero.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlhero.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlhero.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlhero.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=171&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlhero.wordpress.com/2009/11/28/microsoft-sql-server-2008-high-availability-always-on-technologies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e813cfffbbdaa6b0d9c50af04babbb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohtantawy</media:title>
		</media:content>
	</item>
		<item>
		<title>How to migrate data from Excel Sheet to any type of database using sqlserver2008 integration services</title>
		<link>http://sqlhero.wordpress.com/2009/06/30/how-to-migrate-data-from-excel-sheet-to-any-type-of-database-using-sqlserver2008-integration-services/</link>
		<comments>http://sqlhero.wordpress.com/2009/06/30/how-to-migrate-data-from-excel-sheet-to-any-type-of-database-using-sqlserver2008-integration-services/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 13:44:25 +0000</pubDate>
		<dc:creator>seleman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sqlhero.wordpress.com/?p=142</guid>
		<description><![CDATA[My Issue When I try to make the packages responsible for migrating the lookups tables from the source database to my data warehouse  for my bi-solution I found that some lookups tables are not  located in database but in the code as ENUMS Solution I fill the lookups tables in Excel sheets and make package [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=142&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><br />
</strong></p>
<p><span style="text-decoration:underline;">My Issue</span></p>
<ul>
<li>When I try to make the packages responsible for migrating the lookups tables from the source database to my data warehouse  for my bi-solution I found that some lookups tables are not  located in database but in the code as ENUMS</li>
</ul>
<p><span style="text-decoration:underline;">Solution</span></p>
<p><span style="text-decoration:underline;"> </span></p>
<ol>
<li>I fill the lookups tables in Excel sheets and make package responsible for migrating data from the excel to my data warehouse database</li>
</ol>
<p><span style="text-decoration:underline;">Steps</span><strong> </strong></p>
<p><strong>1. </strong><strong>I fill the lookups tables from the ENUMS  file in to Excel sheet every sheet in excel file present  one table</strong><strong> </strong></p>
<p><strong>2. </strong><strong><span style="text-decoration:underline;">Sample for ENUMS  file</span></strong></p>
<p>namespace REMS.Business</p>
<p>{</p>
<p>public enum UnitBookingResult</p>
<p>{</p>
<p>CanBeBooked = 0,</p>
<p>BookingExists = 1,</p>
<p>ContractExists = 2,</p>
<p>SalesBookingExists = 3,</p>
<p>SalesContractExists = 4,</p>
<p>NotMarkedForSale = 5,</p>
<p>IsVirtual,</p>
<p>NotEnoughArea,</p>
<p>SubMergedUnit,</p>
<p>InActiveUnit</p>
<p>}</p>
<p><strong>2. </strong><strong><span style="text-decoration:underline;">The Excel Sheet Screenshot I Create</span></strong></p>
<p><img class="alignnone size-medium wp-image-157" title="6-19-2009 12-53-17 AM" src="http://sqlhero.files.wordpress.com/2009/06/6-19-2009-12-53-17-am2.jpg?w=300&#038;h=293" alt="6-19-2009 12-53-17 AM" width="300" height="293" /></p>
<p><strong>3. </strong><strong><span style="text-decoration:underline;">Open new integration services project from SQL Server Business Intelligence Development Studio</span></strong></p>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-medium wp-image-158" title="present" src="http://sqlhero.files.wordpress.com/2009/06/present2.jpg?w=300&#038;h=206" alt="present" width="300" height="206" /><br />
</span></strong></p>
<p><strong>4. </strong><strong><span style="text-decoration:underline;">Select Excel source</span></strong></p>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-medium wp-image-159" title="1" src="http://sqlhero.files.wordpress.com/2009/06/12.jpg?w=296&#038;h=300" alt="1" width="296" height="300" /><br />
</span></strong></p>
<p><strong>5. </strong><strong><span style="text-decoration:underline;">Select Excel File Path</span></strong></p>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-medium wp-image-160" title="browse-for" src="http://sqlhero.files.wordpress.com/2009/06/browse-for1.jpg?w=300&#038;h=282" alt="browse-for" width="300" height="282" /><br />
</span></strong></p>
<p><strong> </strong><strong>6. </strong><strong><span style="text-decoration:underline;">Select Table or View and choose the table you want it as your source from excel file</span></strong></p>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-medium wp-image-161" title="2" src="http://sqlhero.files.wordpress.com/2009/06/22.jpg?w=300&#038;h=293" alt="2" width="300" height="293" /><br />
</span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong> </strong><strong>7. </strong><strong><span style="text-decoration:underline;">Add OLEDB Destination and connect it with the Excel source</span></strong></p>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-full wp-image-162" title="3" src="http://sqlhero.files.wordpress.com/2009/06/32.jpg?w=450" alt="3"   /><br />
</span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong> </strong><strong>8. </strong><strong><span style="text-decoration:underline;">Create  A New Connection</span></strong></p>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-medium wp-image-163" title="4" src="http://sqlhero.files.wordpress.com/2009/06/42.jpg?w=274&#038;h=300" alt="4" width="274" height="300" /><br />
</span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong> </strong><strong>9. </strong><strong><span style="text-decoration:underline;">Select the database you want to transfer  the data to it</span></strong></p>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-medium wp-image-164" title="5" src="http://sqlhero.files.wordpress.com/2009/06/52.jpg?w=300&#038;h=217" alt="5" width="300" height="217" /><br />
</span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong> </strong><strong>10. </strong><strong><span style="text-decoration:underline;">Choose the destination table</span></strong></p>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-medium wp-image-165" title="7" src="http://sqlhero.files.wordpress.com/2009/06/71.jpg?w=300&#038;h=292" alt="7" width="300" height="292" /><br />
</span></strong></p>
<p><strong> </strong><strong> </strong></p>
<p><strong>11. </strong><strong><span style="text-decoration:underline;">Map the columns from source table to the destination table</span></strong></p>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-medium wp-image-166" title="8" src="http://sqlhero.files.wordpress.com/2009/06/81.jpg?w=300&#038;h=284" alt="8" width="300" height="284" /><br />
</span></strong></p>
<p><strong> </strong><strong> </strong></p>
<p><strong>12. </strong><strong><span style="text-decoration:underline;">Make previous steps for the rest of the lookups table</span></strong></p>
<p><strong><span style="text-decoration:underline;"><img class="alignnone size-medium wp-image-169" title="6" src="http://sqlhero.files.wordpress.com/2009/06/63.jpg?w=300&#038;h=179" alt="6" width="300" height="179" /><br />
</span></strong></p>
<p><strong><span style="text-decoration:underline;"><br />
</span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<ul>
<li><strong> </strong></li>
</ul>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<ul>
<li><strong> </strong></li>
</ul>
<ul>
<li><strong> </strong><strong> </strong></li>
</ul>
<p><strong> </strong></p>
<p align="center"><strong>Finally Run the Package</strong></p>
<p><strong> </strong></p>
<p><strong><span style="text-decoration:underline;"> </span></strong></p>
<p><span style="text-decoration:underline;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlhero.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlhero.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlhero.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlhero.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlhero.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlhero.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlhero.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlhero.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlhero.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlhero.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlhero.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlhero.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlhero.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlhero.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=142&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlhero.wordpress.com/2009/06/30/how-to-migrate-data-from-excel-sheet-to-any-type-of-database-using-sqlserver2008-integration-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/343de644e2d73230f93b6f61a8effeec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">seleman</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/6-19-2009-12-53-17-am2.jpg?w=300" medium="image">
			<media:title type="html">6-19-2009 12-53-17 AM</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/present2.jpg?w=300" medium="image">
			<media:title type="html">present</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/12.jpg?w=296" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/browse-for1.jpg?w=300" medium="image">
			<media:title type="html">browse-for</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/22.jpg?w=300" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/32.jpg" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/42.jpg?w=274" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/52.jpg?w=300" medium="image">
			<media:title type="html">5</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/71.jpg?w=300" medium="image">
			<media:title type="html">7</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/81.jpg?w=300" medium="image">
			<media:title type="html">8</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/63.jpg?w=300" medium="image">
			<media:title type="html">6</media:title>
		</media:content>
	</item>
		<item>
		<title>Change Data Capture -Part2</title>
		<link>http://sqlhero.wordpress.com/2009/06/17/change-data-capture-part2/</link>
		<comments>http://sqlhero.wordpress.com/2009/06/17/change-data-capture-part2/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 09:10:22 +0000</pubDate>
		<dc:creator>saidsalah</dc:creator>
				<category><![CDATA[SQLAdmin]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://sqlhero.wordpress.com/2009/06/17/change-data-capture-part2/</guid>
		<description><![CDATA[How To Process Change Data Capture (CDC) in SQL Server Integration Services SSIS 2008 Assume that we have a customer table and we want to store all changes to our customer table in a customer_audit table.&#160; We&#8217;ll write an SSIS package to query the CDC data and copy it to the customer_audit table.&#160; We would [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=136&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b>How To Process Change Data Capture (CDC) in SQL Server Integration Services SSIS 2008</b></p>
<p>Assume that we have a customer table and we want to store all changes to our <i>customer table</i> in a <i>customer_audit table</i>.&#160; We&#8217;ll write an SSIS package to query the CDC data and copy it to the <i>customer_audit table</i>.&#160; We would like the option of running the SSIS package on demand and/or on a schedule (e.g. a SQL Agent job).&#160; Each time we run the SSIS package we want to pickup whatever changed since the last time we ran the package.</p>
<p><b><i>Customer Tables</i></b></p>
<p>We will use the following customer table:</p>
<p>create table dbo.customer (</p>
<p>customer_id int identity primary key not null</p>
<p>, name nvarchar(50) not null</p>
<p>, sales_rep nvarchar(50) not null</p>
<p>, region nvarchar(50) not null</p>
<p>, credit_limit int not null</p>
<p>)</p>
<p>We will use the following customer_audit table to store changes to the customer table:</p>
<p>create table dbo.customer_audit (</p>
<p>customer_audit_id int identity primary key not null</p>
<p>, customer_id int not null</p>
<p>, name nvarchar(50) not null</p>
<p>, sales_rep nvarchar(50) not null</p>
<p>, region nvarchar(50) not null</p>
<p>, credit_limit int not null</p>
<p>, effective_date datetime not null</p>
<p>, __$start_lsn binary(10) not null</p>
<p>, __$seqval binary(10) not null</p>
<p>, __$operation int not null</p>
<p>, __$update_mask varbinary(128) not null</p>
<p>)</p>
<p><b><i></i></b></p>
<p><b><i>Enabling CDC</i></b></p>
<p>As we see before.</p>
<p><b><i>Logging</i></b></p>
<p>In order to allow our SSIS package to pickup just the changes since the last time it was run, we&#8217;ll populate a log table with the data we need.&#160; We&#8217;ll use the following log table:</p>
<p>create table dbo.cdc_capture_log (</p>
<p>cdc_capture_log_id int identity not null</p>
<p>, capture_instance nvarchar(50) not null </p>
<p>, start_time datetime not null </p>
<p>, min_lsn binary(10) not null</p>
<p>, max_lsn binary(10) not null</p>
<p>, end_time datetime null</p>
<p>, insert_count int not null default 0</p>
<p>, update_count int not null default 0</p>
<p>, delete_count int not null default 0</p>
<p>, status_code int not null default 0</p>
<p>)</p>
<p>We&#8217;ll create two stored procedures to maintain the log:</p>
<ul>
<li>init_cdc_capture_log will create a new row. </li>
<li>end_cdc_capture_log will update the row. </li>
</ul>
<p>The init_cdc_capture_log is called at the beginning of our SSIS package.&#160; It is shown below:</p>
<p>create procedure dbo.init_cdc_capture_log</p>
<p>@capture_instance nvarchar(50)</p>
<p>as</p>
<p>begin</p>
<p>set nocount on;</p>
<p>declare </p>
<p>@begin_lsn binary(10)</p>
<p>, @end_lsn binary(10)</p>
<p>, @prev_max_lsn binary(10)</p>
<p>&#8211; get the max LSN for the capture instance from</p>
<p>&#8211; the last extract</p>
<p>select @prev_max_lsn = max(max_lsn)</p>
<p>from dbo.cdc_capture_log</p>
<p>where capture_instance = @capture_instance</p>
<p>&#8211; if no row found in cdc_capture_log get the min lsn </p>
<p>&#8211; for the capture instance</p>
<p>if @prev_max_lsn is null</p>
<p>set @begin_lsn = sys.fn_cdc_get_min_lsn(@capture_instance)</p>
<p>else</p>
<p>set @begin_lsn = sys.fn_cdc_increment_lsn(@prev_max_lsn)</p>
<p>&#8211; get the max lsn</p>
<p>set @end_lsn = sys.fn_cdc_get_max_lsn()</p>
<p>insert into dbo.cdc_capture_log</p>
<p>(capture_instance,start_time,min_lsn,max_lsn)</p>
<p>values</p>
<p>(@capture_instance,getdate(),@begin_lsn,@end_lsn) </p>
<p>select cast(scope_identity() as int) cdc_capture_log_id</p>
<p>end</p>
<p>The end_cdc_capture_log stored procedure updates the row created&#160; by the init_cdc_capture_log stored procedure.&#160; It is shown below:</p>
<p>create procedure dbo.end_cdc_capture_log</p>
<p>@cdc_capture_log_id int</p>
<p>, @insert_count int</p>
<p>, @update_count int</p>
<p>, @delete_count int</p>
<p>as</p>
<p>begin</p>
<p>set nocount on;</p>
<p>update dbo.cdc_capture_log set</p>
<p>end_time = getdate()</p>
<p>, insert_count = @insert_count</p>
<p>, update_count = @update_count</p>
<p>, delete_count = @delete_count</p>
<p>, status_code = 1</p>
<p>where cdc_capture_log_id = @cdc_capture_log_id</p>
<p>end</p>
<p><b><i>Creating the SSIS Package</i></b></p>
<p>We will create an SSIS package that has the following control flow:</p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/clip_image001.jpg"><img style="display:inline;border-width:0;" title="clip_image001" border="0" alt="clip_image001" src="http://sqlhero.files.wordpress.com/2009/06/clip_image001_thumb.jpg?w=244&#038;h=243" width="244" height="243" /></a></p>
<p>The main points about the above control flow are:</p>
<ul>
<li>Init Log is an Execute SQL task; it calls the init_cdc_capture_log stored procedure (described above) and saves the identity value of the created cdc_capture_log row in a package variable. </li>
<li>Process Changes is a Data Flow task that retrieves the latest changes from the CDC table and copies them to our audit table. </li>
<li>End Log is an Execute SQL task that calls the end_cdc_capture_log stored procedure (described above) to update the cdc_capture_log row. </li>
</ul>
<p>The Process Changes Data Flow task is implemented as shown below:</p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/clip_image002.jpg"><img style="display:inline;border-width:0;" title="clip_image002" border="0" alt="clip_image002" src="http://sqlhero.files.wordpress.com/2009/06/clip_image002_thumb.jpg?w=244&#038;h=211" width="244" height="211" /></a></p>
<p>The main points about the above data flow are:</p>
<ul>
<li>Extract Customer Changes is an OLE DB Source that executes the stored procedure extract_customer_capture_log to retrieve the customer changes since the last run. </li>
<li>Count Inserts Updates and Deletes is a Script Component Transform task that just counts the number of inserts, updates and deletes in the change data. </li>
<li>Save Customer Changes to Custom Audit Table is an OLE DB Destination used to insert each change row into the customer_audit table. </li>
</ul>
<p>The extract_customer_capture_log stored procedure is shown below:</p>
<p>create procedure dbo.extract_customer_capture_log</p>
<p>@cdc_capture_log_id int</p>
<p>as</p>
<p>begin</p>
<p>set nocount on;</p>
<p>declare </p>
<p>@begin_lsn binary(10)</p>
<p>, @end_lsn binary(10)</p>
<p>&#8211; get the lsn range to process</p>
<p>select </p>
<p>@begin_lsn = min_lsn</p>
<p>, @end_lsn = max_lsn</p>
<p>from dbo.cdc_capture_log</p>
<p>where cdc_capture_log_id = @cdc_capture_log_id</p>
<p>&#8211; extract and return the changes</p>
<p>select m.tran_end_time modified_ts, x.* </p>
<p>from cdc.fn_cdc_get_all_changes_customer_all(</p>
<p>@begin_lsn, @end_lsn, &#8216;all&#8217;</p>
<p>) x</p>
<p>join cdc.lsn_time_mapping m </p>
<p>on m.start_lsn = x.__$start_lsn ; </p>
<p>end</p>
<p>The main points about the above stored procedure are:</p>
<ul>
<li>The cdc_capture_log_id parameter value is the value returned from the call to the init_cdc_capture_log stored procedure (described above in the Logging section). </li>
<li>Retrieve the LSN range from the cdc_capture_log table row.&#160; The LSN range represents all changes that have occurred since the last run of the SSIS package. </li>
<li>The cdc.fn_cdc_get_all_changes_customer_all function is generated when you enable CDC.&#160; The function name includes the capture instance.&#160; The function returns the changes that occurred in the LSN range. </li>
<li>The cdc.lsn_time_mapping table is populated by CDC with the mapping of transaction times to LSNs.&#160; The join retrieves the transaction time.&#160; This alleviates the need to manually track this in the source table. </li>
</ul>
<p><b><i>Testing the SSIS Package</i></b></p>
<p>Before running the SSIS package, we need to execute a script that performs some inserts, updates and deletes.&#160; We&#8217;ll use the following script:</p>
<p>use SqlHero</p>
<p>go</p>
<p>insert into dbo.customer </p>
<p>(name,sales_rep,region,credit_limit)</p>
<p>values</p>
<p>(N&#8217;BGM Systems&#8217;, N&#8217;Cane&#8217;, N&#8217;South&#8217;, 2500) </p>
<p>update dbo.customer </p>
<p>set sales_rep = N&#8217;Smith&#8217;</p>
<p>where [name] = N&#8217;BGM Systems&#8217;</p>
<p>update dbo.customer </p>
<p>set credit_limit = 3000</p>
<p>where [name] = N&#8217;BGM Systems&#8217;</p>
<p>delete dbo.customer</p>
<p>where [name] = N&#8217;BGM Systems&#8217;</p>
<p>delete dbo.customer</p>
<p>where [name] = N&#8217;BGM Systems&#8217;</p>
<p>After running the above script, execute the SSIS package, then check the customer_audit table to see that there are four rows; one for each change made in the script.&#160; The partial contents of the customer_audit table are shown below:</p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/clip_image003.jpg"><img style="display:inline;border-width:0;" title="clip_image003" border="0" alt="clip_image003" src="http://sqlhero.files.wordpress.com/2009/06/clip_image003_thumb.jpg?w=327&#038;h=92" width="327" height="92" /></a></p>
<p>The main points about the above table are:</p>
<ul>
<li>effective_date is the date and time of the transaction, as retrieved from the cdc.lsn_time_mapping table. </li>
<li>Row 1 shows the insert; __$operation=2 for an insert. </li>
<li>Row 2 shows the update of the sales_rep; __$operation=4 for the update showing the values after the update. </li>
<li>Row 3 shows the update of the credit_limit. </li>
<li>Row 4 shows the delete; __$operation=1 for a delete. </li>
</ul>
<p>The effective_date column provides the ability to query the customer_audit table and see the customer values at any point in time by filtering on the maximum effective_date that is less than or equal to some value.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlhero.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlhero.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlhero.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlhero.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlhero.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlhero.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlhero.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlhero.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlhero.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlhero.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlhero.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlhero.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlhero.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlhero.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=136&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlhero.wordpress.com/2009/06/17/change-data-capture-part2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bd87f18aef37b2823e949a72e44e377d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saidsalah</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/clip_image001_thumb.jpg" medium="image">
			<media:title type="html">clip_image001</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/clip_image002_thumb.jpg" medium="image">
			<media:title type="html">clip_image002</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/clip_image003_thumb.jpg" medium="image">
			<media:title type="html">clip_image003</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create time Dimension Table using T-SQL Query between two years</title>
		<link>http://sqlhero.wordpress.com/2009/06/16/how-to-create-time-dimension-table-using-t-sql-query-between-two-years/</link>
		<comments>http://sqlhero.wordpress.com/2009/06/16/how-to-create-time-dimension-table-using-t-sql-query-between-two-years/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 18:03:48 +0000</pubDate>
		<dc:creator>seleman</dc:creator>
				<category><![CDATA[Business intelligence]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[Warehouse]]></category>
		<category><![CDATA[BI]]></category>

		<guid isPermaLink="false">http://sqlhero.wordpress.com/?p=93</guid>
		<description><![CDATA[How to create time Dimension Table using T-SQL Query from year 2000 to 2029 My Issue I try to create a new olap solution  using  Microsoft sqlserver 2008 and I need to create the time dimension table  by using the time dimension in adventure works  but I find that  it’s from year 2000 to 2007 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=93&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How to create time Dimension Table using T-SQL Query from year 2000 to 2029</p>
<p><span style="text-decoration:underline;">My Issue</span></p>
<ul>
<li>I try to create a new olap solution  using  Microsoft sqlserver 2008 and I need to create the time dimension table  by using the time dimension in adventure works  but I find that  it’s from year 2000 to 2007 and we are now 2009</li>
</ul>
<p><span style="text-decoration:underline;">Solution</span></p>
<p> </p>
<ul>
<li>I Write a simple query to create the time dimension table  frbetween two years </li>
</ul>
<p><span style="text-decoration:underline;">The Query</span></p>
<p> 
<div style='width:400px;height:400px;overflow:scroll;border-style:solid;'>
<p>CREATE TABLE dimDate</p>
<p>(</p>
<p>dateID int IDENTITY(1,1) PRIMARY KEY NOT NULL,</p>
<p>fullDate datetime NOT NULL,</p>
<p>dayNumOfWeek tinyint NOT NULL,</p>
<p>dayNameOfWeek char(9) NOT NULL, &#8212; dayName is reserved word</p>
<p>dayNumOfMonth tinyint NOT NULL,</p>
<p>dayNumOfYear smallint NOT NULL,</p>
<p>monthNumOfYear tinyint NOT NULL,</p>
<p>monthNameOfYear char(12) NOT NULL,</p>
<p>monthOfQuarter tinyint NOT NULL,</p>
<p>calendarQuarter tinyint NOT NULL,</p>
<p>calendarSemester tinyint NOT NULL,</p>
<p>calendarYear char(4) NOT NULL</p>
<p>)</p>
<p>&#8211;*/</p>
<p>DECLARE @maxDateAlreadyLoaded datetime</p>
<p>DECLARE @dayNumOfWeek tinyint</p>
<p>DECLARE @dayNameOfWeek char(9) &#8212; dayName is reserved word</p>
<p>DECLARE @dayNumOfMonth tinyint</p>
<p>DECLARE @dayNumOfYear smallint</p>
<p>DECLARE @monthNumOfYear tinyint</p>
<p>DECLARE @monthNameOfYear char(12)</p>
<p>DECLARE @monthOfQuarter tinyint</p>
<p>DECLARE @calendarQuarter tinyint</p>
<p>declare @calendarSemester tinyint</p>
<p>DECLARE @calendarYear char(4)</p>
<p>DECLARE @endDate datetime</p>
<p>&#8211; Preload the date by check the data in the table for highest date already</p>
<p>&#8211;loaded</p>
<p>IF EXISTS(SELECT fullDate FROM dimDate)</p>
<p>SET @maxDateAlreadyLoaded = (SELECT TOP 1 DATEADD(day,1,fullDate) FROM</p>
<p>dimDate ORDER BY dateID DESC)</p>
<p>ELSE</p>
<p>&#8211; here you Initialize the startdate of the Time Table</p>
<p>SET @maxDateAlreadyLoaded = &#8217;1/1/2000&#8242;</p>
<p>&#8211; Initialize the endDate to one year beyond the start value</p>
<p>&#8211; here you can Initialize the end year from the startdate in these case it will be 2029</p>
<p>SET @endDate = DATEADD(year, 29, @maxDateAlreadyLoaded)</p>
<p>&#8211; Initialize loop to load one year worth of data</p>
<p>WHILE (@maxDateAlreadyLoaded &lt; @endDate)</p>
<p>BEGIN</p>
<p>&#8211; Calculate each of the fields (simplifies INSERT statement)</p>
<p>SET @dayNumOfWeek = DATEPART(weekDay, @maxDateAlreadyLoaded)</p>
<p>SET @dayNameOfWeek = (SELECT CASE</p>
<p>WHEN DATEPART(weekDay, @maxDateAlreadyLoaded)= 1 THEN &#8216;Sunday&#8217;</p>
<p>WHEN DATEPART(weekDay, @maxDateAlreadyLoaded)= 2 THEN &#8216;Monday&#8217;</p>
<p>WHEN DATEPART(weekDay, @maxDateAlreadyLoaded)= 3 THEN &#8216;Tuesday&#8217;</p>
<p>WHEN DATEPART(weekDay, @maxDateAlreadyLoaded)= 4 THEN &#8216;Wednesday&#8217;</p>
<p>WHEN DATEPART(weekDay, @maxDateAlreadyLoaded)= 5 THEN &#8216;Thursday&#8217;</p>
<p>WHEN DATEPART(weekDay, @maxDateAlreadyLoaded)= 6 THEN &#8216;Friday&#8217;</p>
<p>WHEN DATEPART(weekDay, @maxDateAlreadyLoaded)= 7 THEN &#8216;Saturday&#8217;</p>
<p>END)</p>
<p>SET @dayNumOfMonth = DAY(@maxDateAlreadyLoaded)</p>
<p>SET @dayNumOfYear = DATEPART(dayOfYear, @maxDateAlreadyLoaded)</p>
<p>SET @monthNumOfYear = MONTH(@maxDateAlreadyLoaded)</p>
<p>SET @monthNameOfYear = (SELECT CASE</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 1 THEN &#8216;January&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 2 THEN &#8216;February&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 3 THEN &#8216;March&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 4 THEN &#8216;April&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 5 THEN &#8216;May&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 6 THEN &#8216;June&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 7 THEN &#8216;July&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 8 THEN &#8216;August&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 9 THEN &#8216;September&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 10 THEN &#8216;October&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 11 THEN &#8216;November&#8217;</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) = 12 THEN &#8216;December&#8217;</p>
<p>END)</p>
<p>SET @monthOfQuarter = (SELECT CASE</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) IN(1,4,7,10) THEN 1</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) IN(2,5,8,11) THEN 2</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) IN(3,6,9,12) THEN 3</p>
<p>END)</p>
<p>SET @calendarQuarter = DATEPART(quarter, @maxDateAlreadyLoaded)</p>
<p>SET @calendarSemester = (SELECT CASE</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) IN(1,2,3,4,5,6) THEN 1</p>
<p>WHEN MONTH(@maxDateAlreadyLoaded) IN(7,8,9,10,11,12) THEN 2</p>
<p>end)</p>
<p>SET @calendarYear = YEAR(@maxDateAlreadyLoaded)</p>
<p>&#8211;/*</p>
<p>&#8211; Used the PRINTS to test values as script designed</p>
<p>PRINT &#8216;&#8212;&#8212;&#8212;&#8211; New Row &#8212;&#8212;&#8212;&#8211;&#8217;</p>
<p>PRINT &#8216;@maxDateAlreadyLoaded &#8216; + CAST(@maxDateAlreadyLoaded as varchar(20))</p>
<p>PRINT &#8216;@dayNumOfWeek &#8216; + CAST(@dayNumOfWeek as varchar(20))</p>
<p>PRINT &#8216;@dayNameOfWeek &#8216; + CAST(@dayNameOfWeek as varchar(20))</p>
<p>PRINT &#8216;@dayNumOfMonth &#8216; + CAST(@dayNumOfMonth as varchar(20))</p>
<p>PRINT &#8216;@dayNumOfYear &#8216; + CAST(@dayNumOfYear as varchar(20))</p>
<p>PRINT &#8216;@monthNumOfYear &#8216; + CAST(@monthNumOfYear as varchar(20))</p>
<p>PRINT &#8216;@monthNameOfYear &#8216; + CAST(@monthNameOfYear as varchar(20))</p>
<p>PRINT &#8216;@monthOfQuarter &#8216; + CAST(@monthOfQuarter as varchar(20))</p>
<p>PRINT &#8216;@calendarQuarter &#8216; + CAST(@calendarQuarter as varchar(20))</p>
<p>PRINT &#8216;@calendarYear &#8216; + CAST(@calendarYear as varchar(20))</p>
<p>PRINT &#8216;@endDate &#8216; + CAST(@endDate as varchar(20))</p>
<p>PRINT &#8221;</p>
<p>&#8211;*/</p>
<p>&#8211; Load row into database</p>
<p>INSERT INTO dimDate</p>
<p>(fullDate, dayNumOfWeek, dayNameOfWeek, dayNumOfMonth, dayNumOfYear,</p>
<p>monthNumOfYear, monthNameOfYear, monthOfQuarter, calendarQuarter,</p>
<p>calendarSemester,</p>
<p>calendarYear)</p>
<p>VALUES</p>
<p>(@maxDateAlreadyLoaded, @dayNumOfWeek, @dayNameOfWeek, @dayNumOfMonth,</p>
<p>@dayNumOfYear,</p>
<p>@monthNumOfYear, @monthNameOfYear, @monthOfQuarter, @calendarQuarter,</p>
<p>@calendarSemester,</p>
<p>@calendarYear)</p>
<p>&#8211; Increase the date to load by one</p>
<p>SET @maxDateAlreadyLoaded = DATEADD(day, 1, @maxDateAlreadyLoaded)</p>
<p>END</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlhero.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlhero.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlhero.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlhero.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlhero.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlhero.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlhero.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlhero.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlhero.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlhero.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlhero.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlhero.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlhero.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlhero.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=93&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlhero.wordpress.com/2009/06/16/how-to-create-time-dimension-table-using-t-sql-query-between-two-years/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/343de644e2d73230f93b6f61a8effeec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">seleman</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server Recovery Model Types</title>
		<link>http://sqlhero.wordpress.com/2009/06/16/sql-server-recovery-model-types/</link>
		<comments>http://sqlhero.wordpress.com/2009/06/16/sql-server-recovery-model-types/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 07:44:58 +0000</pubDate>
		<dc:creator>Ahmed Mousa</dc:creator>
				<category><![CDATA[Disaster recovery]]></category>
		<category><![CDATA[SQLAdmin]]></category>
		<category><![CDATA[SQLServer]]></category>

		<guid isPermaLink="false">http://sqlhero.wordpress.com/2009/06/16/sql-server-recovery-model-types/</guid>
		<description><![CDATA[SQL Server has 3 recovery model types which control types of backups so let’s discuss in more details all recovery types when you do these operation sequential right click any database—&#62; properties –&#62; select Pages –&#62; options you will see the dialog bellow as you see in fig above you have 3 types the relationship [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=122&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SQL Server has 3 recovery model types which control types of backups so let’s discuss in more details all recovery types</p>
<p>when you do these operation sequential</p>
<p>right click any database—&gt; properties –&gt; select Pages –&gt; options</p>
<p>you will see the dialog bellow</p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/untitled.jpg"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="untitled" border="0" alt="untitled" src="http://sqlhero.files.wordpress.com/2009/06/untitled_thumb.jpg?w=244&#038;h=219" width="244" height="219" /></a> </p>
</p>
<p>as you see in fig above you have 3 types</p>
<p>the relationship between <strong><u>backup types(Rows Headers)</u></strong> and <strong><u>Recovery Models(Columns Header)</u></strong> are</p>
<table border="1" cellspacing="1" cellpadding="2" width="362">
<tbody>
<tr>
<td valign="top" width="176">&#160;</td>
<td valign="top" width="10"><strong>Full</strong></td>
<td valign="top" width="109"><strong>Bulk-logged</strong></td>
<td valign="top" width="60"><strong>Simple</strong></td>
</tr>
<tr>
<td valign="top" width="176"><strong>Full Backup</strong></td>
<td valign="top" width="10">Yes</td>
<td valign="top" width="109">Yes</td>
<td valign="top" width="60">Yes</td>
</tr>
<tr>
<td valign="top" width="176"><strong>Differential Backup</strong></td>
<td valign="top" width="10">Yes</td>
<td valign="top" width="109">Yes</td>
<td valign="top" width="60">Yes</td>
</tr>
<tr>
<td valign="top" width="176"><strong>Transaction Backup</strong></td>
<td valign="top" width="10">Yes</td>
<td valign="top" width="109">Yes</td>
<td valign="top" width="60">No</td>
</tr>
</tbody>
</table>
<p>it’s very clear that you can’t make trasaction log backup in simple mode.</p>
<p>so what is the Differential between Full mode and Bulk-Logged mode?</p>
<p>Full mode log any transaction in Transaction log file but Bulk-logged can’t log huge transaction to log file like bulk insert or create index in huge tables</p>
<p><strong>you can use Bulk logged for </strong>more performance to insert bulk data to database because in this mode you will not log in&#160; transaction log.</p>
<p><strong>you can use Full mode to </strong>log any small things to transaction log file to feel safe when to return to end point of disaster</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlhero.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlhero.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlhero.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlhero.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlhero.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlhero.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlhero.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlhero.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlhero.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlhero.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlhero.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlhero.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlhero.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlhero.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=122&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlhero.wordpress.com/2009/06/16/sql-server-recovery-model-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2090c5177562753238516aeb4ac7808b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amosaitpro</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/untitled_thumb.jpg" medium="image">
			<media:title type="html">untitled</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server Major Backup Types</title>
		<link>http://sqlhero.wordpress.com/2009/06/15/sql-server-major-backup-types/</link>
		<comments>http://sqlhero.wordpress.com/2009/06/15/sql-server-major-backup-types/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 18:21:45 +0000</pubDate>
		<dc:creator>Ahmed Mousa</dc:creator>
				<category><![CDATA[Disaster recovery]]></category>
		<category><![CDATA[SQLAdmin]]></category>
		<category><![CDATA[SQLServer]]></category>

		<guid isPermaLink="false">http://sqlhero.wordpress.com/2009/06/15/sql-server-major-backup-types/</guid>
		<description><![CDATA[we have many types of backups but in this article i just discuses 3 types of backups Full Backup:- Backup all data and database objects Differential Backup:- Backup all data and database objects from last full backup Transaction Log Backup:- Backup all transaction from Transaction log file from last official backup official backup can be(Full [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=116&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>we have many types of backups but in this article i just discuses 3 types of backups</p>
<ol>
<li><strong>Full Backup:- </strong>Backup all data and database objects</li>
<li><strong>Differential Backup:- </strong>Backup all data and database objects from last full backup</li>
<li><strong>Transaction Log Backup:- </strong>Backup all transaction from Transaction log file from last official backup official backup can be(Full backup or differential backup or transaction log backup)</li>
</ol>
<p>let’s discuss fig bellow </p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/backup.jpg"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="Backup" border="0" alt="Backup" src="http://sqlhero.files.wordpress.com/2009/06/backup_thumb.jpg?w=244&#038;h=164" width="244" height="164" /></a> </p>
<p>F1 is full backup from database&#160; </p>
<p>T1 is Transaction Log backup with difference from F1</p>
<p>D1 is differential backup with difference from F1</p>
<p>T2 is Transaction Log backup with difference from D2</p>
<p>D2 is differential backup with difference from F1</p>
<p>T3 is Transaction Log backup with difference from D2</p>
<p>D3 is differential backup with difference from F1</p>
<p>T4 is Transaction Log backup with difference from D3</p>
<p>D4 is differential backup with difference from F1</p>
<p>T5 is Transaction Log backup with difference from D4</p>
<p>D5 is differential backup with difference from F1</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlhero.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlhero.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlhero.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlhero.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlhero.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlhero.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlhero.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlhero.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlhero.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlhero.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlhero.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlhero.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlhero.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlhero.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=116&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlhero.wordpress.com/2009/06/15/sql-server-major-backup-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2090c5177562753238516aeb4ac7808b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amosaitpro</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/backup_thumb.jpg" medium="image">
			<media:title type="html">Backup</media:title>
		</media:content>
	</item>
		<item>
		<title>Partition Table in SQL Server 2008</title>
		<link>http://sqlhero.wordpress.com/2009/06/13/partition-table-in-sql-server-2008/</link>
		<comments>http://sqlhero.wordpress.com/2009/06/13/partition-table-in-sql-server-2008/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 19:51:24 +0000</pubDate>
		<dc:creator>Ahmed Mousa</dc:creator>
				<category><![CDATA[Partitioning]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQLAdmin]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[Warehouse]]></category>

		<guid isPermaLink="false">http://sqlhero.wordpress.com/2009/06/13/partition-table-in-sql-server-2008/</guid>
		<description><![CDATA[1. What is Partition table? Data is partitioned horizontally by range 2. How to Create Partition Table? You can create partition table by 2 ways programmability wizard in SQL Server 2008 New But you must understand 2 things before creation Partition Tables Partition Function: Partition functions define partition boundaries and Boundary values can be assigned [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=113&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>1. What is Partition table?</h2>
<p><b>Data is partitioned horizontally by range </b></p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/partitiontable.jpg"><img style="display:inline;border-width:0;" title="Partition Table" border="0" alt="Partition Table" src="http://sqlhero.files.wordpress.com/2009/06/partitiontable_thumb.jpg?w=244&#038;h=144" width="244" height="144" /></a> </p>
<h2>2. How to Create Partition Table?</h2>
<p>You can create partition table by 2 ways </p>
<ol>
<li>programmability </li>
<li>wizard in <b>SQL Server 2008</b> <b>New</b></li>
</ol>
<p>But you must understand 2 things before creation <u>Partition Tables</u></p>
<p><u><strong>Partition Function:</strong></u> Partition functions define partition boundaries and Boundary values can be assigned to LEFT or RIGHT</p>
<p><b><a href="http://sqlhero.files.wordpress.com/2009/06/clip_image004.jpg"><img style="display:inline;border-width:0;" title="clip_image004" border="0" alt="clip_image004" src="http://sqlhero.files.wordpress.com/2009/06/clip_image004_thumb.jpg?w=244&#038;h=76" width="244" height="76" /></a></b></p>
<p><strong><u>Partition Scheme:</u> </strong>A partition scheme assigns partitions to filegroups</p>
<p><b><a href="http://sqlhero.files.wordpress.com/2009/06/clip_image006.jpg"><img style="display:inline;border-width:0;" title="clip_image006" border="0" alt="clip_image006" src="http://sqlhero.files.wordpress.com/2009/06/clip_image006_thumb.jpg?w=244&#038;h=89" width="244" height="89" /></a></b></p>
<h2><b>3. </b><b>How to Create Partition Table by wizard in SQL Server 2008?</b></h2>
<p>Right click on table then go to storage then select Create Partition as in fig bellow</p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/1.jpg"><img style="display:inline;border-width:0;" title="1" border="0" alt="1" src="http://sqlhero.files.wordpress.com/2009/06/1_thumb.jpg?w=244&#038;h=143" width="244" height="143" /></a> </p>
<p>Select a column you want to use it in partition as in fig bellow</p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/2.jpg"><img style="display:inline;border-width:0;" title="2" border="0" alt="2" src="http://sqlhero.files.wordpress.com/2009/06/2_thumb.jpg?w=244&#038;h=204" width="244" height="204" /></a></p>
<p>Create Partition function as in fig bellow</p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/3.jpg"><img style="display:inline;border-width:0;" title="3" border="0" alt="3" src="http://sqlhero.files.wordpress.com/2009/06/3_thumb.jpg?w=244&#038;h=204" width="244" height="204" /></a></p>
<p>Create Partition Scheme as in fig bellow</p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/4.jpg"><img style="display:inline;border-width:0;" title="4" border="0" alt="4" src="http://sqlhero.files.wordpress.com/2009/06/4_thumb.jpg?w=244&#038;h=203" width="244" height="203" /></a></p>
<p>Determine ranges as in fig bellow</p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/5.jpg"><img style="display:inline;border-width:0;" title="5" border="0" alt="5" src="http://sqlhero.files.wordpress.com/2009/06/5_thumb.jpg?w=244&#038;h=203" width="244" height="203" /></a></p>
<p>Create Partition by select run immediately as in fig bellow </p>
<p><a href="http://sqlhero.files.wordpress.com/2009/06/6.jpg"><img style="display:inline;border-width:0;" title="6" border="0" alt="6" src="http://sqlhero.files.wordpress.com/2009/06/6_thumb.jpg?w=244&#038;h=203" width="244" height="203" /></a>&#160;&#160;&#160;&#160; </p>
<p>Congratulation your table now partitioned</p>
<p><b></b></p>
<h2><b>4. </b><b>How to Create Partition Table programmability?</b></h2>
<p><b></b></p>
<p><b></b></p>
<div style="width:400px;height:400px;overflow:scroll;border-style:solid;">
<p>/***************************************************</p>
<p>1)Create database TestDb</p>
<p>****************************************************/</p>
<p>CREATE DATABASE [TestDb] ON PRIMARY</p>
<p>( NAME = N&#8217;TestDb&#8217;, FILENAME = N&#8217;C:\db\TestDb.mdf&#8217; , SIZE = 3072KB , FILEGROWTH = 1024KB ),</p>
<p>FILEGROUP [fg1] </p>
<p>( NAME = N&#8217;f1&#8242;, FILENAME = N&#8217;C:\db\f1.ndf&#8217; , SIZE = 3072KB , FILEGROWTH = 1024KB ),</p>
<p>FILEGROUP [fg2] </p>
<p>( NAME = N&#8217;f2&#8242;, FILENAME = N&#8217;C:\db\f2.ndf&#8217; , SIZE = 3072KB , FILEGROWTH = 1024KB ),</p>
<p>FILEGROUP [fg3] </p>
<p>( NAME = N&#8217;f3&#8242;, FILENAME = N&#8217;C:\db\f3.ndf&#8217; , SIZE = 3072KB , FILEGROWTH = 1024KB ),</p>
<p>FILEGROUP [fg4] </p>
<p>( NAME = N&#8217;f4&#8242;, FILENAME = N&#8217;C:\db\f4.ndf&#8217; , SIZE = 3072KB , FILEGROWTH = 1024KB )</p>
<p>LOG ON</p>
<p>( NAME = N&#8217;TestDb_log&#8217;, FILENAME = N&#8217;C:\db\TestDb_log.ldf&#8217; , SIZE = 1024KB , FILEGROWTH = 10%)</p>
<p>GO</p>
<p>USE [TestDb]</p>
<p>GO</p>
<p>/***************************************************</p>
<p>3)Create Partition Function</p>
<p>****************************************************/</p>
<p>Create Partition Function pf_Date(Date)</p>
<p>as range right</p>
<p>For values(&#8217;01/01/2006&#8242;,&#8217;01/01/2007&#8242;,&#8217;01/01/2008&#8242;)</p>
<p>go</p>
<p>/***************************************************</p>
<p>3)Create Partition scheme</p>
<p>****************************************************/</p>
<p>Create Partition Scheme ps_Date</p>
<p>AS Partition pf_Date</p>
<p>to(fg1,fg2,fg3,fg4)</p>
<p>go</p>
<p>/***************************************************</p>
<p>3)Create Partition Contact Table</p>
<p>****************************************************/</p>
<p>CREATE TABLE [dbo].[Contact](</p>
<p>[ContactId] [int] IDENTITY(1,1) NOT NULL,</p>
<p>[FullName] [nvarchar](50) NULL,</p>
<p>[CreationDate] [date] NULL</p>
<p>)on ps_Date(CreationDate)</p>
<p>GO</p>
<p>/***************************************************</p>
<p>4)Insert rows to table</p>
<p>****************************************************/</p>
<p>insert into dbo.Contact values(&#8216;amosa&#8217;,&#8217;01/01/2006&#8242;)</p>
<p>insert into dbo.Contact values(&#8216;mmosa&#8217;,&#8217;01/01/2007&#8242;)</p>
<p>insert into dbo.Contact values(&#8216;zemo&#8217;,&#8217;01/01/2008&#8242;)</p>
<p>insert into dbo.Contact values(&#8216;test1&#8242;,&#8217;05/01/2005&#8242;)</p>
<p>insert into dbo.Contact values(&#8216;test2&#8242;,&#8217;05/01/2006&#8242;)</p>
<p>insert into dbo.Contact values(&#8216;test3&#8242;,&#8217;05/01/2007&#8242;)</p>
<p>insert into dbo.Contact values(&#8216;test4&#8242;,&#8217;05/01/2008&#8242;)</p>
<p>insert into dbo.Contact values(&#8216;test5&#8242;,&#8217;05/01/2009&#8242;)</p>
<p>go</p>
<p>/***************************************************</p>
<p>5)Query Table to know where did rows save</p>
<p>****************************************************/</p>
<p>Select *,$partition.pf_Date(CreationDate)FileGroupNo From dbo.Contact<b></b></p>
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlhero.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlhero.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlhero.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlhero.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlhero.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlhero.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlhero.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlhero.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlhero.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlhero.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlhero.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlhero.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlhero.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlhero.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=113&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlhero.wordpress.com/2009/06/13/partition-table-in-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2090c5177562753238516aeb4ac7808b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amosaitpro</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/partitiontable_thumb.jpg" medium="image">
			<media:title type="html">Partition Table</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/clip_image004_thumb.jpg" medium="image">
			<media:title type="html">clip_image004</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/clip_image006_thumb.jpg" medium="image">
			<media:title type="html">clip_image006</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/1_thumb.jpg" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/2_thumb.jpg" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/3_thumb.jpg" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/4_thumb.jpg" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/5_thumb.jpg" medium="image">
			<media:title type="html">5</media:title>
		</media:content>

		<media:content url="http://sqlhero.files.wordpress.com/2009/06/6_thumb.jpg" medium="image">
			<media:title type="html">6</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server 2008 Vs MySQL</title>
		<link>http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-mysql/</link>
		<comments>http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-mysql/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 16:12:11 +0000</pubDate>
		<dc:creator>Ahmed Mousa</dc:creator>
				<category><![CDATA[Comparison]]></category>

		<guid isPermaLink="false">http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-mysql/</guid>
		<description><![CDATA[visit bellow link to know more information about SQL Server compared to MySQL http://www.microsoft.com/sqlserver/2008/en/us/compare-mysql.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=81&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>visit bellow link to know more information about SQL Server compared to MySQL </p>
<p><a href="http://www.microsoft.com/sqlserver/2008/en/us/compare-mysql.aspx">http://www.microsoft.com/sqlserver/2008/en/us/compare-mysql.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlhero.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlhero.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlhero.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlhero.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlhero.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlhero.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlhero.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlhero.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlhero.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlhero.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlhero.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlhero.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlhero.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlhero.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=81&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2090c5177562753238516aeb4ac7808b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amosaitpro</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server 2008 Vs IBM DB2</title>
		<link>http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-ibm-db2/</link>
		<comments>http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-ibm-db2/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 16:09:19 +0000</pubDate>
		<dc:creator>Ahmed Mousa</dc:creator>
				<category><![CDATA[Comparison]]></category>

		<guid isPermaLink="false">http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-ibm-db2/</guid>
		<description><![CDATA[visit bellow link to know more information about SQL Server compared to IBM DB2 http://www.microsoft.com/sqlserver/2008/en/us/compare-ibm-db2.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=80&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>visit bellow link to know more information about SQL Server compared to IBM DB2</p>
<p><a title="http://www.microsoft.com/sqlserver/2008/en/us/compare-ibm-db2.aspx" href="http://www.microsoft.com/sqlserver/2008/en/us/compare-ibm-db2.aspx">http://www.microsoft.com/sqlserver/2008/en/us/compare-ibm-db2.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlhero.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlhero.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlhero.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlhero.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlhero.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlhero.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlhero.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlhero.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlhero.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlhero.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlhero.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlhero.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlhero.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlhero.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=80&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-ibm-db2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2090c5177562753238516aeb4ac7808b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amosaitpro</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server 2008 Vs Oracle</title>
		<link>http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-oracle/</link>
		<comments>http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-oracle/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 16:06:05 +0000</pubDate>
		<dc:creator>Ahmed Mousa</dc:creator>
				<category><![CDATA[Comparison]]></category>

		<guid isPermaLink="false">http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-oracle/</guid>
		<description><![CDATA[visit bellow link to know more information about SQL Server compared to Oracle http://www.microsoft.com/sqlserver/2008/en/us/compare-oracle.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=79&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>visit bellow link to know more information about SQL Server compared to Oracle</p>
<p><a title="http://www.microsoft.com/sqlserver/2008/en/us/compare-oracle.aspx" href="http://www.microsoft.com/sqlserver/2008/en/us/compare-oracle.aspx">http://www.microsoft.com/sqlserver/2008/en/us/compare-oracle.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlhero.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlhero.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlhero.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlhero.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlhero.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlhero.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlhero.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlhero.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlhero.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlhero.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlhero.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlhero.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlhero.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlhero.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlhero.wordpress.com&amp;blog=7694765&amp;post=79&amp;subd=sqlhero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlhero.wordpress.com/2009/06/04/sql-server-2008-vs-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2090c5177562753238516aeb4ac7808b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amosaitpro</media:title>
		</media:content>
	</item>
	</channel>
</rss>
