<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;AkIFSXg9eSp7ImA9WhZXFU8.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450</id><updated>2011-05-04T22:31:58.661+05:30</updated><title>Place to Tech</title><subtitle type='html'>All about tech stuffs</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;AkIFSXg8cSp7ImA9WhZXFU8.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-3810151002199619206</id><published>2011-05-04T22:31:00.000+05:30</published><updated>2011-05-04T22:31:58.679+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-05-04T22:31:58.679+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='System Info using .net'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='OS Version and Service Pack Info'/><title>Find Client PC Operating System and It's Service Pack</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;These days I am working on a project and today (04.05.2011) I came up with some sort of a small modification to the application by letting the user to see the current OS and It's Service Pack in their application. So I wrote the following piece of code and thought of sharing it with my techi friends :)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Note : Please add reference to&amp;nbsp;&lt;span class="Apple-style-span" style="color: #333333; line-height: 14px;"&gt;System.Management&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;using System;&lt;br /&gt;
using System.Management;&lt;br /&gt;
&lt;br /&gt;
namespace RetrieveSystemInfo&lt;br /&gt;
{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;br /&gt;
class Program&lt;br /&gt;
{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;br /&gt;
static void Main(string[] args)&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;ManagementObjectSearcher searcher2 = new&lt;br /&gt;
&amp;nbsp;ManagementObjectSearcher("select * from Win32_OperatingSystem");&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;foreach (ManagementObject objMgmt in searcher2.Get())&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp; string sss = objMgmt["name"].ToString();&lt;br /&gt;
&amp;nbsp; string [] aa = sss.Split(new char [] {'|'});&lt;br /&gt;
&amp;nbsp; string bb = aa[0].ToString();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;OperatingSystem OS = Environment.OSVersion;&lt;br /&gt;
&amp;nbsp;string ServicePackDetails = OS.ServicePack;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Console.WriteLine("OS Version is : " + bb);&lt;br /&gt;
&amp;nbsp;Console.WriteLine("Service Pack is : " + ServicePackDetails);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-3810151002199619206?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/3810151002199619206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2011/05/find-client-pc-operating-system-and-its.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/3810151002199619206?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/3810151002199619206?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2011/05/find-client-pc-operating-system-and-its.html' title='Find Client PC Operating System and It&apos;s Service Pack'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0EGRno8cCp7ImA9WhZRFUk.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-7455413331459204149</id><published>2011-04-12T00:50:00.000+05:30</published><updated>2011-04-12T00:50:27.478+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-04-12T00:50:27.478+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='INT or GUID'/><category scheme='http://www.blogger.com/atom/ns#' term='Data Types'/><category scheme='http://www.blogger.com/atom/ns#' term='GUID'/><category scheme='http://www.blogger.com/atom/ns#' term='OUTPUT in SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='INT'/><title>GUID or INT for my Primary key field</title><content type='html'>&lt;div&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;
&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;When my Tech Lead came to me couple of months ago and asked me to do a particular SQL Database task and the task was to create a sample data table and create a .net application to to the CURD operations on it.&amp;nbsp;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;At that time I was a bit nervous, whether to use INT data type as the primary key or to use GUID type as the primary key; so I started working on that and took a chance to speak to my other team members and do some kind of a research on it. after having a proper understanding on that I used &lt;b&gt;INT &lt;/b&gt;as my primary key based on the details I found on technical articles.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Below are the main advantages and disadvantages about both INT and GUID data type.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;Advantages&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;INT&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Small amount of storage size (and integer is 4 bytes)&lt;/li&gt;
&lt;li&gt;Increased readability, practical use in testing, and easy to understand&lt;/li&gt;
&lt;li&gt;Support for functions that return the last primary key generated (@@IDENTITY, SCOPE_IDENTITY())&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;GUID&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;The primary key is uniquely identified in the entire system (Unique across the server.)&lt;/li&gt;
&lt;li&gt;Easy to merge tables&lt;/li&gt;
&lt;li&gt;Don't have problems when inserting a large number of operations&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;Disadvantages&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;INT&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Hard to work with distributed tables&lt;/li&gt;
&lt;li&gt;Primary key in the form of INT/BIGINT is LUID, local unique identifier, which is only used locally in a table&lt;/li&gt;
&lt;li&gt;After a large number of operations (insert, delete), the counter for primary key can be reset, bringing the problem of chronology to 1&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;GUID&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Bigger storage size (16 bytes - four times the size of an integer)&lt;/li&gt;
&lt;li&gt;Hard to remember and understand&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-7455413331459204149?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/7455413331459204149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2011/04/guid-or-int-for-my-primary-key-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/7455413331459204149?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/7455413331459204149?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2011/04/guid-or-int-for-my-primary-key-field.html' title='GUID or INT for my Primary key field'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CE8DQXo7cCp7ImA9WhZREE8.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-8255941402542735686</id><published>2011-04-05T22:25:00.001+05:30</published><updated>2011-04-05T22:31:10.408+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-04-05T22:31:10.408+05:30</app:edited><title>Sync Services for ADO.NET</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table class="multicol" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-bottom-width: 0px; border-collapse: collapse; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tbody style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;
&lt;tr style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="innercol" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 12px; padding-top: 0px;" valign="top"&gt;&lt;div class="MainColumn" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 612px;"&gt;&lt;table border="0" cellspacing="1" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-bottom-width: 0px; border-collapse: separate; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tbody style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;
&lt;tr style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td bgcolor="#ffffff" colspan="3" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;b&gt;Introduction to Sync Services for ADO.NET and the Visual Studio Designer&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Hi techies,&lt;br /&gt;
Just thought of sharing some important stuff that can be used with Visual Studio and its non other than Sync services.&amp;nbsp;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;In this session this will introduce Sync Services for ADO.NET which is a part of the Microsoft Sync Framework (MSF). You can watch the video using the following link. Hope you will enjoy it. :)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/data/cc137124.aspx"&gt;Sync Service&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-8255941402542735686?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/8255941402542735686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2011/04/sync-services-for-adonet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/8255941402542735686?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/8255941402542735686?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2011/04/sync-services-for-adonet.html' title='Sync Services for ADO.NET'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkAMSHg6eyp7ImA9WxFVEk4.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-2479894202960854312</id><published>2010-06-11T12:16:00.000+05:30</published><updated>2010-06-11T12:16:29.613+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-06-11T12:16:29.613+05:30</app:edited><title>SS SLUG: June 2010 Meetup</title><content type='html'>&lt;span class="Apple-style-span" style="color: #f3f3f3;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h1 class="ha" style="background: inherit; border-collapse: collapse; border-right: inherit; font-family: arial, sans-serif; font-size: 16px; margin-bottom: 5px; margin-left: 10px; margin-right: 5px; margin-top: 12px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="hP" id=":be" style="padding-right: 10px;"&gt;&lt;span class="Apple-style-span" style="color: #f3f3f3;"&gt;SS SLUG: June 2010 Meetup&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class="ha" style="background: inherit; border-collapse: collapse; border-right: inherit; font-family: arial, sans-serif; font-size: 16px; margin-bottom: 5px; margin-left: 10px; margin-right: 5px; margin-top: 12px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="hP" id=":be" style="padding-right: 10px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="color: #f3f3f3;"&gt;It's time again for another edition of the SQL Server Sri Lanka User Group meeting. Please see image below for all the details.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div&gt;&lt;span class="hP" id=":be" style="padding-right: 10px;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: Verdana; font-size: 13px; font-weight: normal;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_IroIougExmo/TBHa9o2jpeI/AAAAAAAAAC0/zaCbUEK5Ris/s1600/Custom_Images_Pictures_Invite_SSSLUG_201006_June2010_Meetup.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/_IroIougExmo/TBHa9o2jpeI/AAAAAAAAAC0/zaCbUEK5Ris/s320/Custom_Images_Pictures_Invite_SSSLUG_201006_June2010_Meetup.png" width="121" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="hP" id=":be" style="padding-right: 10px;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: Verdana; font-size: 13px; font-weight: normal;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class="ha" style="background: inherit; border-collapse: collapse; border-right: inherit; color: #021324; font-family: arial, sans-serif; font-size: 16px; margin-bottom: 5px; margin-left: 10px; margin-right: 5px; margin-top: 12px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="hP" id=":be" style="padding-right: 10px;"&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=ne03-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B001SK4JXK&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-2479894202960854312?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/2479894202960854312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/06/ss-slug-june-2010-meetup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/2479894202960854312?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/2479894202960854312?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/06/ss-slug-june-2010-meetup.html' title='SS SLUG: June 2010 Meetup'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_IroIougExmo/TBHa9o2jpeI/AAAAAAAAAC0/zaCbUEK5Ris/s72-c/Custom_Images_Pictures_Invite_SSSLUG_201006_June2010_Meetup.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkYGQHs-cSp7ImA9WxFXEEQ.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-3366597294054205464</id><published>2010-05-17T15:25:00.001+05:30</published><updated>2010-05-17T15:25:21.559+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-05-17T15:25:21.559+05:30</app:edited><title>.net articles will be coming soon....</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-3366597294054205464?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/3366597294054205464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/05/net-articles-will-be-coming-soon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/3366597294054205464?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/3366597294054205464?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/05/net-articles-will-be-coming-soon.html' title='.net articles will be coming soon....'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkcDQ3Y4eip7ImA9WxFXEEw.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-2087746193765855584</id><published>2010-05-16T18:14:00.004+05:30</published><updated>2010-05-16T18:17:52.832+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-05-16T18:17:52.832+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OUTPUT Clause'/><category scheme='http://www.blogger.com/atom/ns#' term='OUTPUT in SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='T SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title>OUTPUT Clause (Transact-SQL)</title><content type='html'>&lt;span class="Apple-style-span"   style="  ;font-family:'Segoe UI', Verdana, Arial;font-size:13px;"&gt;This Returns information from, or expressions based on, each row affected by an INSERT, UPDATE, DELETE, or MERGE statement. The results can also be inserted into a table or table variable. Additionally, you can capture the results of an OUTPUT clause in a nested INSERT, UPDATE, DELETE, or MERGE statement, and insert those results into a target table or view.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  ;font-family:'Segoe UI', Verdana, Arial;font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  ;font-family:'Segoe UI', Verdana, Arial;font-size:13px;"&gt;&lt;div&gt;Here I use the AdventureWorks sample database to show the sample T SQL for OUTPUT clause.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;USE AdventureWorks; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;BEGIN TRANSACTION;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;DECLARE @testoutput TABLE&lt;/div&gt;&lt;div&gt;( &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;SalesOrderID int&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;, SalesOrderDetailID int&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;, QtyBefore int&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;, QtyAfter int&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;, ModifiedDate datetime2&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;, UserName varchar(30)&lt;/div&gt;&lt;div&gt;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SELECT * FROM @testoutput; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;UPDATE Sales.SalesOrderDetail &lt;/div&gt;&lt;div&gt;SET OrderQty = 5 &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;OUTPUT inserted.SalesOrderID&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;, inserted.SalesOrderDetailID&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;, deleted.OrderQty&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;, inserted.OrderQty&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;, GETDATE()&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;, SUSER_NAME()&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;INTO @testoutput&lt;/div&gt;&lt;div&gt;WHERE SalesOrderID = 43659 AND SalesOrderDetailID = 1;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SELECT * FROM @testoutput; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ROLLBACK TRANSACTION;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SELECT OrderQty FROM Sales.SalesOrderDetail WHERE SalesOrderID = 43659 AND SalesOrderDetailID = 1;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-2087746193765855584?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/2087746193765855584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/05/output-clause-transact-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/2087746193765855584?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/2087746193765855584?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/05/output-clause-transact-sql.html' title='OUTPUT Clause (Transact-SQL)'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;D0UMSXo6fip7ImA9WxFQGE4.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-7247140922872630722</id><published>2010-05-14T16:33:00.005+05:30</published><updated>2010-05-14T16:38:08.416+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-05-14T16:38:08.416+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='SS SLUG'/><title>SSSLUG May 2010 Meetup</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_IroIougExmo/S-0uld-IdsI/AAAAAAAAACs/VKiNiuTpfiI/s1600/Invite_SSSLUG_201005_May2010_Meetup.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 123px; height: 320px;" src="http://1.bp.blogspot.com/_IroIougExmo/S-0uld-IdsI/AAAAAAAAACs/VKiNiuTpfiI/s320/Invite_SSSLUG_201005_May2010_Meetup.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5471080343560287938" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="  border-collapse: collapse; "&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;We have organized the &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;May 2010 meetup&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; of the &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;SS SLUG&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; for &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;May 19&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;. Please see below details regarding it. If you are in the Colombo area on that day, we would be happy to see you there. For more information checkout the &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;a href="http://sqlserveruniverse.com/v2/ssslug.aspx"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;SS SLUG home page&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; "&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; "&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  border-collapse: collapse; "&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  border-collapse: collapse; font-family:arial, sans-serif;font-size:13px;"&gt;&lt;span style=" ;font-family:Verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-7247140922872630722?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/7247140922872630722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/05/ssslug-may-2010-meetup.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/7247140922872630722?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/7247140922872630722?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/05/ssslug-may-2010-meetup.html' title='SSSLUG May 2010 Meetup'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_IroIougExmo/S-0uld-IdsI/AAAAAAAAACs/VKiNiuTpfiI/s72-c/Invite_SSSLUG_201005_May2010_Meetup.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;DU8FRXo7eip7ImA9WxFQF04.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-826192570490223011</id><published>2010-05-13T13:32:00.003+05:30</published><updated>2010-05-13T13:33:34.402+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-05-13T13:33:34.402+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net'/><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint 2010'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET User Group Meeting May 2010'/><title>.NET User Group Meeting May 2010</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: medium; border-collapse: collapse; "&gt;&lt;h1 class="ha" style="font-size: 16px; margin-top: 12px; margin-right: 5px; margin-bottom: 5px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(2, 19, 36); background: inherit; border-right: inherit; "&gt;&lt;span id=":a7" class="hP" style="padding-right: 10px; "&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;.NET User Group Meeting May 2010&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_IroIougExmo/S-uyJL-NMYI/AAAAAAAAACk/mZZUAmvaZu4/s1600/image003.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 225px;" src="http://3.bp.blogspot.com/_IroIougExmo/S-uyJL-NMYI/AAAAAAAAACk/mZZUAmvaZu4/s320/image003.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5470662043273867650" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-826192570490223011?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/826192570490223011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/05/net-user-group-meeting-may-2010.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/826192570490223011?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/826192570490223011?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/05/net-user-group-meeting-may-2010.html' title='.NET User Group Meeting May 2010'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_IroIougExmo/S-uyJL-NMYI/AAAAAAAAACk/mZZUAmvaZu4/s72-c/image003.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;D0YBQ3g5cSp7ImA9WxFREkQ.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-4409086863016810553</id><published>2010-04-25T22:16:00.007+05:30</published><updated>2010-04-26T20:49:12.629+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-04-26T20:49:12.629+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='DB properties'/><category scheme='http://www.blogger.com/atom/ns#' term='ACID'/><category scheme='http://www.blogger.com/atom/ns#' term='ACID properties'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title>Basic transaction concepts</title><content type='html'>&lt;div style="language:en-US;margin-top:4.8pt;margin-bottom:0pt;margin-left:.38in; text-indent:-.38in;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align: baseline;mso-line-break-override:none;punctuation-wrap:hanging"&gt;&lt;span style="color: rgb(102, 0, 51); "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;This is mostly referred as "&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 0, 51); font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;ACID"&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 0, 51); "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; properties.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;  &lt;p style="language:en-US;margin-top:4.8pt;margin-bottom:0pt;margin-left:.38in; text-indent:-.38in;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align: baseline;mso-line-break-override:none;punctuation-wrap:hanging"&gt;&lt;span style="color: rgb(102, 0, 51); "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;So, what are they?&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="language:en-US;margin-top:4.8pt;margin-bottom:0pt;margin-left:.38in; text-indent:-.38in;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align: baseline;mso-line-break-override:none;punctuation-wrap:hanging"&gt;&lt;span style="color: rgb(102, 0, 51); "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div class="O1" style="language:en-US;margin-top:4.8pt;margin-bottom:0pt; margin-left:.81in;text-indent:-.31in;text-align:left;direction:ltr;unicode-bidi: embed;vertical-align:baseline;mso-line-break-override:none;punctuation-wrap: hanging"&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(102, 0, 51); font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Atomicity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 0, 51); "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=" ;color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;- When Two or more transactions are taking place, either all of them are committed or none of them are committed.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;  &lt;p style="language:en-US;margin-top:4.8pt;margin-bottom:0pt;margin-left:.81in; text-indent:-.31in;text-align:left;direction:ltr;unicode-bidi:embed;vertical-align: baseline;mso-line-break-override:none;punctuation-wrap:hanging"&gt;&lt;span style="color: rgb(102, 0, 51); font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div class="O1" style="language:en-US;margin-top:4.8pt;margin-bottom:0pt; margin-left:.81in;text-indent:-.31in;text-align:left;direction:ltr;unicode-bidi: embed;vertical-align:baseline;mso-line-break-override:none;punctuation-wrap: hanging"&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(102, 0, 51); font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Consistency&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 0, 51); "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; - &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=" ;color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;That is, after a transaction, valid and new data exists  in the database or the data returned to its original state. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=" font-weight: bold; color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;ROLLBACK&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=" ;color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; function provides the facility of returning data to its original state.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="O1" style="language:en-US;margin-top:4.8pt;margin-bottom:0pt; margin-left:.81in;text-indent:-.31in;text-align:left;direction:ltr;unicode-bidi: embed;vertical-align:baseline;mso-line-break-override:none;punctuation-wrap: hanging"&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(102, 0, 51); font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Isolation – &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=" ;color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;During a transaction, data must be in an isolated level there by not allowing other transactions to access it. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="O1" style="language:en-US;margin-top:4.8pt;margin-bottom:0pt; margin-left:.81in;text-indent:-.31in;text-align:left;direction:ltr;unicode-bidi: embed;vertical-align:baseline;mso-line-break-override:none;punctuation-wrap: hanging"&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(102, 0, 51); font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Durability&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 0, 51); "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; - &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=" ;color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Data is still available even if the server fails. This is achieved by &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=" font-weight: bold; color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;CHECKPOINTS&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=" ;color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; and &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=" font-weight: bold; color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;DATABASE RECOVERY PROECESS&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=" ;color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="O1" style="language:en-US;margin-top:4.8pt;margin-bottom:0pt; margin-left:.81in;text-indent:-.31in;text-align:left;direction:ltr;unicode-bidi: embed;vertical-align:baseline;mso-line-break-override:none;punctuation-wrap: hanging"&gt;&lt;span style=" ;color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"   style="  ;font-family:'Book Antiqua';font-size:27px;"&gt;&lt;span style=" ;color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"   style="  ;font-family:'Book Antiqua';font-size:27px;"&gt;&lt;span style=" ;color:black;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-4409086863016810553?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/4409086863016810553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/04/basic-transaction-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/4409086863016810553?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/4409086863016810553?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/04/basic-transaction-concepts.html' title='Basic transaction concepts'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkEMR345eCp7ImA9WxBaGEs.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-4993845487456152405</id><published>2010-03-29T18:27:00.007+05:30</published><updated>2010-03-29T18:48:06.020+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-03-29T18:48:06.020+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Sub queries'/><category scheme='http://www.blogger.com/atom/ns#' term='Correlated Subqueries'/><category scheme='http://www.blogger.com/atom/ns#' term='T SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Query'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title>Correlated Subqueries</title><content type='html'>&lt;span class="Apple-style-span"   style="  ;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;"&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Any queries can be evaluated by executing the subquery once and substituting the resulting value or values into the WHERE clause of the outer query. In queries that include a correlated subquery (also known as a repeating subquery), the subquery depends on the outer query for its values. This means that the subquery is executed repeatedly, once for each row that might be selected by the outer query.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;This query retrieves one instance of each employee's first and last name for which the bonus in the &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;SalesPerson&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt; table is 5000 and for which the employee identification numbers match in the &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Employee&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt; and &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;SalesPerson&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt; tables.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span id="ctl00_MTCS_main_ctl01"&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;USE AdventureWorks;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;GO&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;SELECT DISTINCT c.LastName, c.FirstName, e.EmployeeID &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;FROM Person.Contact AS c JOIN HumanResources.Employee AS e&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;ON e.ContactID = c.ContactID &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;WHERE 5000.00 IN&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;    (SELECT Bonus&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;     FROM Sales.SalesPerson sp&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;     WHERE e.EmployeeID = sp.SalesPersonID) ;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;GO&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;And the result is, &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;LastName               FirstName           EmployeeID&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;------------------ --  ------------------     -----------------&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Ansman-Wolfe         Pamela               280&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Saraiva                   José                    282&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;(2 row(s) affected)&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Correlated subqueries can also include table-valued functions in the FROM clause by referencing columns from a table in the outer query as an argument of the table-valued function. In this case, for each row of the outer query, the table-valued function is evaluated according to the subquery.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="libCScode" id="ctl00_MTCS_main_ctl01_" style="width: 793px; padding-bottom: 20px; border-top-color: rgb(255, 255, 255); border-top-width: 5px; border-top-style: solid; display: block; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-4993845487456152405?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/4993845487456152405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/03/correlated-subqueries.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/4993845487456152405?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/4993845487456152405?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/03/correlated-subqueries.html' title='Correlated Subqueries'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEIDQXc7fyp7ImA9WxBUGUo.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-4052614761382087031</id><published>2010-03-07T19:28:00.047+05:30</published><updated>2010-03-07T21:12:50.907+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-03-07T21:12:50.907+05:30</app:edited><title>Data Compression in SQL Server 2008</title><content type='html'>&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;u&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt;&lt;b&gt;Estimate the Savings in Storage Space Using Inbuilt Stored Procedure..&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:verdana;color:#006600;"&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;span class="Apple-style-span"   style="font-family:verdana;color:#006600;"&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_IroIougExmo/S5PI9W32foI/AAAAAAAAACc/hR3kO1z_q1o/s1600-h/Data+Compression+in+SQL+server+2008.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 200px;" src="http://1.bp.blogspot.com/_IroIougExmo/S5PI9W32foI/AAAAAAAAACc/hR3kO1z_q1o/s320/Data+Compression+in+SQL+server+2008.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5445917330858475138" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:verdana;color:#009900;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);   "&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;sp_estimate_data_compression_saving&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;s inbuilt system stored procedure gives the DBA the facility of estimating the saving in storage space . The mentioned TSQL Query shows the space saved when Row Level Compression is enabled for &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Production.TransactionHistoryArchive &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Table of &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;AdventureWorks &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Database.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);   "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);   "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;The attached SQL code snippet shows that there are columns namely &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;size_with_current_compression_settings (KB)&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; and &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;size_with_requested_compression_settings (KB) &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;which provides you an estimate on the amount of disk space which you can save for &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Production.TransactionHistoryArchive&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);   "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);   "&gt;&lt;span class="titles" style="text-align: left;   text-decoration: none; color: rgb(51, 102, 204); font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;u&gt;Estimate the Savings in Storage Space Using Data Compression Wizard&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;SQL Server 2008 inbuilt wizard &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Data Compression Wizard&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; provides the facility of estimate the savings of storage space when compression is enabled for a particular table or index in a database.&lt;br /&gt;&lt;br /&gt;To do that: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style=" line-height: 19px;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Click on the AdventureWorks and under the tables find "&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Production.TransactionHistoryArchive&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;".&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style=" line-height: 19px;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Right Click on the &lt;b&gt;Production.TransactionHistoryArchive&lt;/b&gt; and then click on "&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Storage&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;" and then "&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Manage Compression&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;".&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style=" line-height: 19px;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Click on next&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_IroIougExmo/S5PBDBCOvXI/AAAAAAAAAB8/nAQTq-TW8II/s1600-h/Data+Compression+in+SQL+server+2008.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 200px;" src="http://4.bp.blogspot.com/_IroIougExmo/S5PBDBCOvXI/AAAAAAAAAB8/nAQTq-TW8II/s320/Data+Compression+in+SQL+server+2008.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5445908631982620018" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;After that click on "&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Row&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;" from the &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Compression typ&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;e drop down list.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_IroIougExmo/S5PCo4Ymx0I/AAAAAAAAACE/Gy67h25u9n4/s1600-h/Data+Compression+in+SQL+server+2008.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 200px;" src="http://3.bp.blogspot.com/_IroIougExmo/S5PCo4Ymx0I/AAAAAAAAACE/Gy67h25u9n4/s320/Data+Compression+in+SQL+server+2008.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5445910382007207746" /&gt;&lt;/a&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="  line-height: 19px; "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Select the &lt;b&gt;compression type option as Row&lt;/b&gt; and &lt;b&gt;click the calculate button&lt;/b&gt; on the wizard, it will calculate the amount of storage space required when row compression type is used.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_IroIougExmo/S5PDiqUO0II/AAAAAAAAACM/BDLgu-GmV5o/s1600-h/Data+Compression+in+SQL+server+2008.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 200px;" src="http://2.bp.blogspot.com/_IroIougExmo/S5PDiqUO0II/AAAAAAAAACM/BDLgu-GmV5o/s320/Data+Compression+in+SQL+server+2008.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5445911374663176322" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="  line-height: 19px; "&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Click Next to go to; Select an Output Option Page. There are many options such as &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;create a script&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;run immediatel&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;y, or&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; create a Schedule&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;. Click Next to continue with the wizard.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_IroIougExmo/S5PElds1IhI/AAAAAAAAACU/uhTqqb8D0uw/s1600-h/Data+Compression+in+SQL+server+2008.JPG"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_IroIougExmo/S5PElds1IhI/AAAAAAAAACU/uhTqqb8D0uw/s1600-h/Data+Compression+in+SQL+server+2008.JPG"&gt;&lt;img style="text-align: left;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; width: 320px; height: 200px; " src="http://4.bp.blogspot.com/_IroIougExmo/S5PElds1IhI/AAAAAAAAACU/uhTqqb8D0uw/s320/Data+Compression+in+SQL+server+2008.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5445912522327925266" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Finally Click on Finish.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-4052614761382087031?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/4052614761382087031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/03/data-compression-in-sql-server-2008.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/4052614761382087031?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/4052614761382087031?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/03/data-compression-in-sql-server-2008.html' title='Data Compression in SQL Server 2008'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_IroIougExmo/S5PI9W32foI/AAAAAAAAACc/hR3kO1z_q1o/s72-c/Data+Compression+in+SQL+server+2008.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry gd:etag='W/&quot;DEQGQ30zcSp7ImA9WxBUEk0.&quot;'><id>tag:blogger.com,1999:blog-5838632584317993450.post-1556071175182601158</id><published>2010-02-26T22:55:00.008+05:30</published><updated>2010-02-26T23:15:22.389+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-02-26T23:15:22.389+05:30</app:edited><title>Database Design Mistakes</title><content type='html'>&lt;span class="Apple-style-span"  style="color:#003300;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; Hi All&lt;br /&gt;&lt;br /&gt;This is my first article. hooray for sql server and my friends specially &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style:italic;"&gt;&lt;span class="Apple-style-span"  style="color:#003300;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Gogula (MVP - SQL Server), Dinesh P (MVP - SQL Server) and a lot more.. and more specially Roshan M Karunaratne my Head of IT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#003300;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;. Thank you all for yours' valuable information...&lt;br /&gt;&lt;br /&gt;Let's back to our topic.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#003300;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#003300;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Since this is my first article, I would prefer to present this as simple as possible. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#003300;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;So, as developers (.net, database or another technology developers) we make mistakes and make sure that the same mistake will not repeat in the future. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#003300;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#003300;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Hopefully, after reading this article, you will realize that what practices and terms should be considered when designing a database.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;So, here are the things...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Poor designing / Planing.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Normalization issues.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Proper naming standards.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Documentation issues.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;One table to hold all domain values.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 17px; "&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Using identity/guid columns as your only key.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 17px; "&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Not using SQL facilities to protect data integrity.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 17px; "&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Not using stored procedures to access data.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 17px; "&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Lack of testing.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:georgia;color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 17px;"&gt;I will be discussing these issues one by one in my next post and it will be available for you by 28th of Feb 2010.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:georgia;color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:georgia;color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 17px;"&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:georgia;color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:georgia;color:#333333;"&gt;&lt;span class="Apple-style-span" style="line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5838632584317993450-1556071175182601158?l=dotnetandsqlforlife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetandsqlforlife.blogspot.com/feeds/1556071175182601158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/02/database-design-mistakes.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/1556071175182601158?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5838632584317993450/posts/default/1556071175182601158?v=2'/><link rel='alternate' type='text/html' href='http://dotnetandsqlforlife.blogspot.com/2010/02/database-design-mistakes.html' title='Database Design Mistakes'/><author><name>Avantha Siriwardana</name><uri>http://www.blogger.com/profile/02981146825898693077</uri><email>avanthasiriwardana@hotmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='01098795309964439748'/></author><thr:total>2</thr:total></entry></feed>