<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>bytespersecond</title>
	<atom:link href="http://bytespersecond.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bytespersecond.wordpress.com</link>
	<description>Saad Khan</description>
	<lastBuildDate>Tue, 20 Dec 2011 07:35:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bytespersecond.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>bytespersecond</title>
		<link>http://bytespersecond.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bytespersecond.wordpress.com/osd.xml" title="bytespersecond" />
	<atom:link rel='hub' href='http://bytespersecond.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Visual Studio LightSwitch</title>
		<link>http://bytespersecond.wordpress.com/2011/08/21/visual-studio-lightswitch/</link>
		<comments>http://bytespersecond.wordpress.com/2011/08/21/visual-studio-lightswitch/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 08:41:18 +0000</pubDate>
		<dc:creator>saadkhan</dc:creator>
		
		<guid isPermaLink="false">http://bytespersecond.wordpress.com/?p=124</guid>
		<description><![CDATA[Yesterday, I had a look at something new! It was Microsoft LightSwitch for Visual Studio 2010. Its an amazing thing to do more with your data. You can do CRUD operations with automatically generated UI without writing single line of code. Isn`t this amazing&#8230; Have a look at this with your own eyes. Note: You will <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=124&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I had a look at something new!</p>
<p>It was Microsoft LightSwitch for Visual Studio 2010. Its an amazing thing to do more with your data. You can do CRUD operations with automatically generated UI without writing single line of code. Isn`t this amazing&#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Have a look at <a href="http://www.microsoft.com/visualstudio/en-us/lightswitch/overview/build-quickly" target="_blank">this</a> with your own eyes.</p>
<address>Note: You will need to have <a href="http://go.microsoft.com/fwlink/?LinkId=210710" target="_blank">Visual Studio 2010 SP1</a> installed on your system.</address>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bytespersecond.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bytespersecond.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bytespersecond.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bytespersecond.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bytespersecond.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bytespersecond.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bytespersecond.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bytespersecond.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bytespersecond.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bytespersecond.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bytespersecond.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bytespersecond.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bytespersecond.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bytespersecond.wordpress.com/124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=124&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bytespersecond.wordpress.com/2011/08/21/visual-studio-lightswitch/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfc99cfdc78c74573620391ec494d940?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saadkhan</media:title>
		</media:content>
	</item>
		<item>
		<title>Form Selector with Email Configuration &#8211; Sitefinity 4.1</title>
		<link>http://bytespersecond.wordpress.com/2011/08/17/form-selector-with-email-configuration-sitefinity-4-1/</link>
		<comments>http://bytespersecond.wordpress.com/2011/08/17/form-selector-with-email-configuration-sitefinity-4-1/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 15:38:16 +0000</pubDate>
		<dc:creator>saadkhan</dc:creator>
		
		<guid isPermaLink="false">http://bytespersecond.wordpress.com/?p=121</guid>
		<description><![CDATA[No need to say much! George Saadeh did a great job on modifying/extending the Form Selector widget to get the submit event in order to send email with posted values. You can download the control from here<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=121&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>No need to say much!<br />
George Saadeh did a great job on modifying/extending the Form Selector widget to get the submit event in order to send email with posted values.</p>
<p><img class="aligncenter size-full wp-image-122" title="formnotification-preview" src="http://bytespersecond.files.wordpress.com/2011/08/formnotification-preview.png?w=510" alt=""   /></p>
<p>You can download the control from <a title="here" href="http://www.sitefinity.com/download/marketplace/G_FormNotification.zip" target="_blank">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bytespersecond.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bytespersecond.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bytespersecond.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bytespersecond.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bytespersecond.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bytespersecond.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bytespersecond.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bytespersecond.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bytespersecond.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bytespersecond.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bytespersecond.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bytespersecond.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bytespersecond.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bytespersecond.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=121&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bytespersecond.wordpress.com/2011/08/17/form-selector-with-email-configuration-sitefinity-4-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfc99cfdc78c74573620391ec494d940?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saadkhan</media:title>
		</media:content>

		<media:content url="http://bytespersecond.files.wordpress.com/2011/08/formnotification-preview.png" medium="image">
			<media:title type="html">formnotification-preview</media:title>
		</media:content>
	</item>
		<item>
		<title>Content Designer Widget &#8211; Sitefinity 4.x</title>
		<link>http://bytespersecond.wordpress.com/2011/08/17/content-designer-sitefinity-4-1-widget/</link>
		<comments>http://bytespersecond.wordpress.com/2011/08/17/content-designer-sitefinity-4-1-widget/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 15:22:11 +0000</pubDate>
		<dc:creator>saadkhan</dc:creator>
		
		<guid isPermaLink="false">http://bytespersecond.wordpress.com/?p=115</guid>
		<description><![CDATA[Content Designer Installation Guide Make a folder named Common on the root of your web application. Make a folder named Widgets and copy folder ContentDesigner into it (/Common/Widgets/ContentDesigner). Download Images and Styles folders and copy them in /Common as well. Structure should look like below after you copy necessary files for the sample: Common - <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=115&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>Content Designer Installation Guide
<ul>
<li>Make a folder named Common on the root of your web application.</li>
<li>Make a folder named Widgets and copy folder ContentDesigner into it (/Common/Widgets/ContentDesigner).</li>
<li><a href="http://bit.ly/qRXK8p">Download</a> Images and Styles folders and copy them in /Common as well.</li>
<li>Structure should look like below after you copy necessary files for the sample:</li>
</ul>
<p>Common<br />
- Widgets<br />
- ContentDesigner<br />
- ContentDesigner.ascx<br />
- ContentDesigner.ascx.cs<br />
- ContentDesigner.ascx.designer.cs<br />
- Designer.cs<br />
- Designer.js<br />
- Template.ascx<br />
- Images<br />
- <em>(All images in attached Images folder)</em><br />
- Styles<br />
- jquery-ui-1.8.14.custom.css</p>
<ul>
<li>Now browse to your Sitefinity Backend and goto Administration &gt; Settings &gt; Advanced &gt; Toolboxes &gt; Toolboxes &gt; PageControls &gt; Sections &gt; ContentToolboxSection &gt; Tools &gt; <em>(Create New).</em></li>
<li>Enter the fields with the values as shown below:</li>
</ul>
<p><a href="http://bytespersecond.files.wordpress.com/2011/08/configuration.png"><img class="aligncenter size-full wp-image-130" title="Configuration" src="http://bytespersecond.files.wordpress.com/2011/08/configuration.png?w=510&#038;h=455" alt="" width="510" height="455" /></a></p>
<ul>
<li>Save the settings and edit your any existing page or create a new one.</li>
<li>Drag and drop your widget which we named ‘Tabs designer’ in the configuration on to your page.</li>
<li>Click Edit to customize the tabs view.</li>
<li>You will see the designer like this:</li>
</ul>
<p><a href="http://bytespersecond.files.wordpress.com/2011/08/initview.png"><img class="aligncenter size-full wp-image-131" title="InitView" src="http://bytespersecond.files.wordpress.com/2011/08/initview.png?w=510&#038;h=219" alt="" width="510" height="219" /></a></p>
<ul>
<li>Click ‘Add Tab’ to add a new tab on the control.</li>
</ul>
<p><a href="http://bytespersecond.files.wordpress.com/2011/08/tabcontent.png"><img class="aligncenter size-full wp-image-132" title="TabContent" src="http://bytespersecond.files.wordpress.com/2011/08/tabcontent.png?w=510&#038;h=389" alt="" width="510" height="389" /></a></li>
<ul>
<li>Under ‘Put up some content’, you will see couple of fields to put up your desired content into a newly added tab.</li>
<li>Select a style for your tabs container in the CSS Style field.</li>
<li>Simple copy/paste some content or write it in Content field.</li>
<li>Select an image for the tab to be shown as normal state and for the hover/selected state under Image and Hover Image fields.</li>
<li>You can add and/or delete as many tabs as you want with inner content and tab images for each.</li>
<li>Here is the final result with ‘Fun’ style selected:</li>
</ul>
</ul>
<p style="padding-left:60px;"><a href="http://bytespersecond.files.wordpress.com/2011/08/untitled.png"><img class="aligncenter size-full wp-image-133" title="Untitled" src="http://bytespersecond.files.wordpress.com/2011/08/untitled.png?w=510" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bytespersecond.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bytespersecond.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bytespersecond.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bytespersecond.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bytespersecond.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bytespersecond.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bytespersecond.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bytespersecond.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bytespersecond.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bytespersecond.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bytespersecond.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bytespersecond.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bytespersecond.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bytespersecond.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=115&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bytespersecond.wordpress.com/2011/08/17/content-designer-sitefinity-4-1-widget/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfc99cfdc78c74573620391ec494d940?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saadkhan</media:title>
		</media:content>

		<media:content url="http://bytespersecond.files.wordpress.com/2011/08/configuration.png" medium="image">
			<media:title type="html">Configuration</media:title>
		</media:content>

		<media:content url="http://bytespersecond.files.wordpress.com/2011/08/initview.png" medium="image">
			<media:title type="html">InitView</media:title>
		</media:content>

		<media:content url="http://bytespersecond.files.wordpress.com/2011/08/tabcontent.png" medium="image">
			<media:title type="html">TabContent</media:title>
		</media:content>

		<media:content url="http://bytespersecond.files.wordpress.com/2011/08/untitled.png" medium="image">
			<media:title type="html">Untitled</media:title>
		</media:content>
	</item>
		<item>
		<title>How to retrieve data but by shortening up its length</title>
		<link>http://bytespersecond.wordpress.com/2010/09/12/how-to-retrieve-data-but-by-shortening-up-its-length/</link>
		<comments>http://bytespersecond.wordpress.com/2010/09/12/how-to-retrieve-data-but-by-shortening-up-its-length/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 20:42:06 +0000</pubDate>
		<dc:creator>saadkhan</dc:creator>
				<category><![CDATA[sql server]]></category>
		<category><![CDATA[stored procedure]]></category>

		<guid isPermaLink="false">http://bytespersecond.wordpress.com/?p=111</guid>
		<description><![CDATA[SELECT &#160; dataCol1, case when len(dataCol1) - charindex(@urKeyWord , dataCol1 ) &#62; 50 then substring(dataCol1,charindex(@urKeyWord , dataCol1 ),charindex(@urKeyWord , dataCol1 ) + 50 ) else substring(dataCol1,charindex(@urKeyWord , dataCol1 ),len(@urKeyWord) ) end FROM &#160; myTable WHERE &#160; dataCol2 NOT IN (SELECT col FROM anotherTable)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=111&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="body"><span style="color:#0000ff;"><span style="color:#0000ff;"><span style="color:#0000ff;"><span style="color:#0000ff;"><font size="2" color="#0000ff"><font size="2" color="#0000ff"></p>
<p>SELECT</p>
<p></font></font></span><font size="2" color="#0000ff"></p>
<p>&nbsp;</p>
<p></font></span></p>
<p><span style="color:#000000;"> dataCol1</span><span style="color:#808080;"><span style="color:#808080;">,</span></span><span style="color:#000000;"> </span><span style="color:#0000ff;"><span style="color:#0000ff;">case</span></span><span style="color:#000000;"> </span><span style="color:#0000ff;"><span style="color:#0000ff;">when</span></span><span style="color:#000000;"> </span><span style="color:#ff00ff;"><span style="color:#ff00ff;">len</span></span><span style="color:#808080;"><span style="color:#808080;">(</span></span><span style="color:#000000;">dataCol1</span><span style="color:#808080;"><span style="color:#808080;">)</span></span><span style="color:#000000;"> </span><span style="color:#808080;"><span style="color:#808080;">-</span></span><span style="color:#000000;"> </span><span style="color:#ff00ff;"><span style="color:#ff00ff;">charindex</span></span><span style="color:#808080;"><span style="color:#808080;">(</span></span><span style="color:#000000;">@urKeyWord </span><span style="color:#808080;"><span style="color:#808080;">,</span></span><span style="color:#000000;"> dataCol1 </span><span style="color:#808080;"><span style="color:#808080;">)</span></span><span style="color:#000000;"> </span><span style="color:#808080;"><span style="color:#808080;">&gt;</span></span><span style="color:#000000;"> 50 </span><span style="color:#0000ff;"><span style="color:#0000ff;">then</span></span><span style="color:#000000;"> </span><span style="color:#ff00ff;"><span style="color:#ff00ff;">substring</span></span><span style="color:#808080;"><span style="color:#808080;">(</span></span><span style="color:#000000;">dataCol1</span><span style="color:#808080;"><span style="color:#808080;">,</span></span><span style="color:#ff00ff;"><span style="color:#ff00ff;">charindex</span></span><span style="color:#808080;"><span style="color:#808080;">(</span></span><span style="color:#000000;">@urKeyWord </span><span style="color:#808080;"><span style="color:#808080;">,</span></span><span style="color:#000000;"> dataCol1 </span><span style="color:#808080;"><span style="color:#808080;">),</span></span><span style="color:#ff00ff;"><span style="color:#ff00ff;">charindex</span></span><span style="color:#808080;"><span style="color:#808080;">(</span></span><span style="color:#000000;">@urKeyWord </span><span style="color:#808080;"><span style="color:#808080;">,</span></span><span style="color:#000000;"> dataCol1 </span><span style="color:#808080;"><span style="color:#808080;">)</span></span><span style="color:#000000;"> </span><span style="color:#808080;"><span style="color:#808080;">+</span></span><span style="color:#000000;"> 50 </span><span style="color:#808080;"><span style="color:#808080;">)</span></span><span style="color:#000000;"> </span><span style="color:#0000ff;"><span style="color:#0000ff;">else</span></span><span style="color:#000000;"> </span><span style="color:#ff00ff;"><span style="color:#ff00ff;">substring</span></span><span style="color:#808080;"><span style="color:#808080;">(</span></span><span style="color:#000000;">dataCol1</span><span style="color:#808080;"><span style="color:#808080;">,</span></span><span style="color:#ff00ff;"><span style="color:#ff00ff;">charindex</span></span><span style="color:#808080;"><span style="color:#808080;">(</span></span><span style="color:#000000;">@urKeyWord </span><span style="color:#808080;"><span style="color:#808080;">,</span></span><span style="color:#000000;"> dataCol1 </span><span style="color:#808080;"><span style="color:#808080;">),</span></span><span style="color:#ff00ff;"><span style="color:#ff00ff;">len</span></span><span style="color:#808080;"><span style="color:#808080;">(</span></span><span style="color:#000000;">@urKeyWord</span><span style="color:#808080;"><span style="color:#808080;">)</span></span><span style="color:#000000;"> </span><span style="color:#808080;"><span style="color:#808080;">)</span></span><span style="color:#000000;"> </span><span style="color:#0000ff;"><span style="color:#0000ff;">end<font size="2" color="#0000ff"><font size="2" color="#0000ff"><br />
</font></font></span></span></p>
<p><font size="2" color="#0000ff"><font size="2" color="#0000ff">
<p>FROM</p>
<p></font></font></span><font size="2" color="#0000ff"></p>
<p>&nbsp;</p>
<p></font></span>
</p>
<p><span style="font-size:x-small;"><span style="color:#000000;"> myTable</span></span></p>
<p><span style="color:#0000ff;"><span style="color:#0000ff;"><font size="2" color="#0000ff"><font size="2" color="#0000ff"></p>
<p>WHERE</p>
<p></font></font></span><font size="2" color="#0000ff"></p>
<p>&nbsp;</p>
<p></font></span></p>
<p><span style="color:#000000;"> dataCol2 </span><span style="color:#808080;"><span style="color:#808080;">NOT</span></span><span style="color:#000000;"> </span><span style="color:#808080;"><span style="color:#808080;">IN</span></span><span style="color:#000000;"> </span><span style="color:#808080;"><span style="color:#808080;">(</span></span><span style="color:#0000ff;"><span style="color:#0000ff;">SELECT</span></span><span style="color:#000000;"> col </span><span style="color:#0000ff;"><span style="color:#0000ff;">FROM</span></span><span style="color:#000000;"> anotherTable</span><span style="color:#808080;"><span style="color:#808080;">)</span></span></p>
<p><span style="color:#808080;"></span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bytespersecond.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bytespersecond.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bytespersecond.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bytespersecond.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bytespersecond.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bytespersecond.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bytespersecond.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bytespersecond.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bytespersecond.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bytespersecond.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bytespersecond.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bytespersecond.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bytespersecond.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bytespersecond.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=111&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bytespersecond.wordpress.com/2010/09/12/how-to-retrieve-data-but-by-shortening-up-its-length/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfc99cfdc78c74573620391ec494d940?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saadkhan</media:title>
		</media:content>
	</item>
		<item>
		<title>How to edit/update xml column using XQuery</title>
		<link>http://bytespersecond.wordpress.com/2010/09/12/how-to-editupdate-xml-column-using-xquery/</link>
		<comments>http://bytespersecond.wordpress.com/2010/09/12/how-to-editupdate-xml-column-using-xquery/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 20:37:39 +0000</pubDate>
		<dc:creator>saadkhan</dc:creator>
				<category><![CDATA[sql server]]></category>
		<category><![CDATA[stored procedure]]></category>

		<guid isPermaLink="false">http://bytespersecond.wordpress.com/?p=107</guid>
		<description><![CDATA[ALTER PROCEDURE [UpdateUnitsLocations] @varUnitId [uniqueidentifier], @varLat [varchar](100), @varLng [varchar](100) AS BEGIN SET NOCOUNT ON; UPDATE [UnitsLocations] SET LocationXML.modify(' insert &#60;point lat="{sql:variable("@varLat")}" lng="{sql:variable("@varLng")}" /&#62; as last into (/markers/line)[1] ') WHERE UnitId = @varUnitId <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=107&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre><span style="color:Blue;">ALTER</span> <span style="color:Blue;">PROCEDURE</span> [UpdateUnitsLocations]
   @varUnitId [uniqueidentifier],
   @varLat [varchar](100),
   @varLng [varchar](100)
<span style="color:Blue;">AS</span>
<span style="color:Blue;">BEGIN</span>
   <span style="color:Blue;">SET</span> <span style="color:Blue;">NOCOUNT</span> <span style="color:Blue;">ON</span>;

   <span style="color:Blue;">UPDATE</span> [UnitsLocations]
   <span style="color:Blue;">SET</span> LocationXML.modify(<span style="color:#A31515;">'
   insert &lt;point lat="{sql:variable("@varLat")}" lng="{sql:variable("@varLng")}" /&gt;
   as last
   into (/markers/line)[1]
   '</span>)
   <span style="color:Blue;">WHERE</span> UnitId = @varUnitId
<span style="color:Blue;">END</span>
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bytespersecond.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bytespersecond.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bytespersecond.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bytespersecond.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bytespersecond.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bytespersecond.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bytespersecond.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bytespersecond.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bytespersecond.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bytespersecond.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bytespersecond.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bytespersecond.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bytespersecond.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bytespersecond.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=107&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bytespersecond.wordpress.com/2010/09/12/how-to-editupdate-xml-column-using-xquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfc99cfdc78c74573620391ec494d940?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saadkhan</media:title>
		</media:content>
	</item>
		<item>
		<title>How can I detect changes in a row of some table</title>
		<link>http://bytespersecond.wordpress.com/2010/09/12/how-can-i-detect-changes-in-a-row-of-some-table/</link>
		<comments>http://bytespersecond.wordpress.com/2010/09/12/how-can-i-detect-changes-in-a-row-of-some-table/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 20:32:51 +0000</pubDate>
		<dc:creator>saadkhan</dc:creator>
		
		<guid isPermaLink="false">http://bytespersecond.wordpress.com/?p=103</guid>
		<description><![CDATA[It is possible to use a trigger check for changes made to a column, but a few obstacles are present as the column you are looking to verify is of a data type xml.  The below code shows the difficulty in comparing the xml data type to another xml data type: \ DECLARE @data1 XML, <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=103&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
<div id="_mcePaste">It is possible to use a trigger check for changes made to a column, but a few obstacles are present as the column you are looking to verify is of a data type xml.  The below code shows the difficulty in comparing the xml data type to another xml data type:</div>

\
<code>
<div id="_mcePaste">DECLARE @data1	XML,</div>
<div id="_mcePaste">@data2	XML</div>
<div id="_mcePaste">SET @data1 = '&lt;root /&gt;'</div>
<div id="_mcePaste">SET @data2 = '&lt;empty /&gt;'</div>
<div id="_mcePaste">IF @data1 &lt;&gt; @data2</div>
<div id="_mcePaste">BEGIN</div>
<div id="_mcePaste">PRINT 'Different'</div>
<div id="_mcePaste">END</div>
<div id="_mcePaste">ELSE</div>
<div id="_mcePaste">PRINT 'Same'</div>
<div id="_mcePaste">--Msg 305, Level 16, State 1, Line 8</div>
<div id="_mcePaste">The xml data type cannot be compared or sorted, except when using the IS NULL operator.</div>
<div id="_mcePaste">That being said it is possible to convert the xml data type to a more flexible type, but there is overhead involved in this also, the conversion.  The below code gives an example of using a trigger to compare an xml column:</div>
<div id="_mcePaste">USE tempdb;</div>
<div id="_mcePaste">GO</div>
<div id="_mcePaste">CREATE TABLE changetbl(</div>
<div id="_mcePaste">id		UNIQUEIDENTIFIER,</div>
<div id="_mcePaste">data	XML</div>
<div id="_mcePaste">);</div>
<div id="_mcePaste">GO</div>
<div id="_mcePaste">CREATE TRIGGER change</div>
<div id="_mcePaste">ON changetbl</div>
<div id="_mcePaste">FOR UPDATE, DELETE</div>
<div id="_mcePaste">AS</div>
<div id="_mcePaste">IF (SELECT CONVERT(VARCHAR(MAX), data) FROM INSERTED) &lt;&gt; (SELECT CONVERT(VARCHAR(MAX), data) FROM DELETED)</div>
<div id="_mcePaste">BEGIN</div>
<div id="_mcePaste">PRINT 'Different'</div>
<div id="_mcePaste">END</div>
<div id="_mcePaste">ELSE</div>
<div id="_mcePaste">PRINT 'Same'</div>
<div id="_mcePaste">DROP TRIGGER change;</div>
<div id="_mcePaste">GO</div>
<div id="_mcePaste">DROP TABLE changetbl;</div>
<div id="_mcePaste">GO</div>
<div id="_mcePaste">USE tempdb;</div>
<div id="_mcePaste">GO</div>
<div id="_mcePaste">CREATE TABLE changetbl(</div>
<div id="_mcePaste">id		UNIQUEIDENTIFIER,</div>
<div id="_mcePaste">data	XML</div>
<div id="_mcePaste">);</div>
<div id="_mcePaste">GO</div>
<div id="_mcePaste">CREATE TRIGGER change</div>
<div id="_mcePaste">ON changetbl</div>
<div id="_mcePaste">FOR UPDATE, DELETE</div>
<div id="_mcePaste">AS</div>
<div id="_mcePaste">IF (SELECT CONVERT(VARCHAR(MAX), data) FROM INSERTED) &lt;&gt; (SELECT CONVERT(VARCHAR(MAX), data) FROM DELETED)</div>
<div id="_mcePaste">BEGIN</div>
<div id="_mcePaste">PRINT 'Different'</div>
<div id="_mcePaste">END</div>
<div id="_mcePaste">ELSE</div>
<div id="_mcePaste">PRINT 'Same'</div>
<div id="_mcePaste">DROP TRIGGER change;</div>
<div id="_mcePaste">GO</div>
<div id="_mcePaste">DROP TABLE changetbl;</div>
<div id="_mcePaste">GO</div>

</code>
<div id="_mcePaste">Triggers are an awesome and powerful tool in sql, but it comes with overhead and risk.  The trigger fires automatically specific to the traansaction(s) that you specify, INSERT, UPDATE, DELETE.  In an OLTP database this can cause substantial overhead on a table that has frequent and numerous transactions.  There is also the danger of if the trigger fails so will the transaction that fired the trigger resulting in the transaction being rolled back and losing that information.</div>

It is possible to use a trigger check for changes made to a column, but a few obstacles are present as the column you are looking to verify is of a data type xml.  The below code shows the difficulty in comparing the xml data type to another xml data type:
DECLARE @data1	XML,	    @data2	XML	    SET @data1 = '&lt;root /&gt;'SET @data2 = '&lt;empty /&gt;'
IF @data1 &lt;&gt; @data2BEGIN PRINT 'Different'ENDELSEPRINT 'Same'
--Msg 305, Level 16, State 1, Line 8The xml data type cannot be compared or sorted, except when using the IS NULL operator.That being said it is possible to convert the xml data type to a more flexible type, but there is overhead involved in this also, the conversion.  The below code gives an example of using a trigger to compare an xml column:
USE tempdb;GO
CREATE TABLE changetbl(id		UNIQUEIDENTIFIER,data	XML);GO
CREATE TRIGGER changeON changetblFOR UPDATE, DELETEAS
IF (SELECT CONVERT(VARCHAR(MAX), data) FROM INSERTED) &lt;&gt; (SELECT CONVERT(VARCHAR(MAX), data) FROM DELETED)BEGINPRINT 'Different'END
ELSEPRINT 'Same'
DROP TRIGGER change;GO
DROP TABLE changetbl;GO
USE tempdb;GO
CREATE TABLE changetbl(id		UNIQUEIDENTIFIER,data	XML);GO
CREATE TRIGGER changeON changetblFOR UPDATE, DELETEAS
IF (SELECT CONVERT(VARCHAR(MAX), data) FROM INSERTED) &lt;&gt; (SELECT CONVERT(VARCHAR(MAX), data) FROM DELETED)BEGINPRINT 'Different'END
ELSEPRINT 'Same'
DROP TRIGGER change;GO
DROP TABLE changetbl;GOTriggers are an awesome and powerful tool in sql, but it comes with overhead and risk.  The trigger fires automatically specific to the traansaction(s) that you specify, INSERT, UPDATE, DELETE.  In an OLTP database this can cause substantial overhead on a table that has frequent and numerous transactions.  There is also the danger of if the trigger fails so will the transaction that fired the trigger resulting in the transaction being rolled back and losing that information.DECLARE @data1	XML,
	    @data2	XML

SET @data1 = '&lt;root /&gt;'
SET @data2 = '&lt;empty /&gt;'

IF @data1 &lt;&gt; @data2
BEGIN
PRINT 'Different'
END
ELSE
PRINT 'Same'

--Msg 305, Level 16, State 1, Line 8
The xml data type cannot be compared or sorted, except when using the IS NULL operator.<span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:small;"><span style="line-height:19px;white-space:normal;">
</span></span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bytespersecond.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bytespersecond.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bytespersecond.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bytespersecond.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bytespersecond.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bytespersecond.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bytespersecond.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bytespersecond.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bytespersecond.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bytespersecond.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bytespersecond.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bytespersecond.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bytespersecond.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bytespersecond.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=103&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bytespersecond.wordpress.com/2010/09/12/how-can-i-detect-changes-in-a-row-of-some-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfc99cfdc78c74573620391ec494d940?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saadkhan</media:title>
		</media:content>
	</item>
		<item>
		<title>Pass parameters to methods while invoking from Dictionary Key</title>
		<link>http://bytespersecond.wordpress.com/2010/09/12/pass-parameters-to-methods-while-invoking-from-dictionary-key/</link>
		<comments>http://bytespersecond.wordpress.com/2010/09/12/pass-parameters-to-methods-while-invoking-from-dictionary-key/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 20:31:10 +0000</pubDate>
		<dc:creator>saadkhan</dc:creator>
		
		<guid isPermaLink="false">http://bytespersecond.wordpress.com/?p=101</guid>
		<description><![CDATA[You really need to make a dictionary with delegates as the value, and not a class containing the method you&#8217;re wanting to call. A delegate is nothing more than a type that can represent a method that can be passed around. You&#8217;d make such a list like this: public class MyClass { public delegate void <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=101&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">You really need to make a dictionary with delegates as the value, and not a class containing the method you&#8217;re wanting to call.</div>
<div id="_mcePaste">A delegate is nothing more than a type that can represent a method that can be passed around.</div>
<div id="_mcePaste">You&#8217;d make such a list like this:</div>
<div id="_mcePaste">public class MyClass</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">public delegate void DoSomethingDelegate(string text, int value); // this is the signature of each of the methods.</div>
<div id="_mcePaste">public void DoSomething(string text, int value)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">// something here.</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">public void DoSomethingElse(string text, int value)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">// something else here.</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">public static void Main(string[] args)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">Dictionary&lt;string, DoSomethingDelegate&gt; dict = new Dictionary&lt;string, DoSomethingDelegate&gt;();</div>
<div id="_mcePaste">dict.Add(&#8220;one&#8221;, new DoSomethingDelegate(DoSomething));</div>
<div id="_mcePaste">dict.Add(&#8220;two&#8221;, new DoSomethingDelegate(DoSomethingElse));</div>
<div id="_mcePaste">dict["one"](&#8220;Hello&#8221;, 1);</div>
<div id="_mcePaste">dict["two"](&#8220;Hola&#8221;, 2);</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">See this link for more info.</div>
<p>You really need to make a dictionary with delegates as the value, and not a class containing the method you&#8217;re wanting to call.<br />
A delegate is nothing more than a type that can represent a method that can be passed around.<br />
You&#8217;d make such a list like this:<br />
public class MyClass{    public delegate void DoSomethingDelegate(string text, int value); // this is the signature of each of the methods.<br />
public void DoSomething(string text, int value)    {         // something here.     }         public void DoSomethingElse(string text, int value)    {         // something else here.     }<br />
public static void Main(string[] args)    {        Dictionary&lt;string, DoSomethingDelegate&gt; dict = new Dictionary&lt;string, DoSomethingDelegate&gt;();        dict.Add(&#8220;one&#8221;, new DoSomethingDelegate(DoSomething));        dict.Add(&#8220;two&#8221;, new DoSomethingDelegate(DoSomethingElse));        dict["one"](&#8220;Hello&#8221;, 1);        dict["two"](&#8220;Hola&#8221;, 2);    }}<br />
See this link for more info.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bytespersecond.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bytespersecond.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bytespersecond.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bytespersecond.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bytespersecond.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bytespersecond.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bytespersecond.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bytespersecond.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bytespersecond.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bytespersecond.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bytespersecond.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bytespersecond.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bytespersecond.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bytespersecond.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=101&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bytespersecond.wordpress.com/2010/09/12/pass-parameters-to-methods-while-invoking-from-dictionary-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfc99cfdc78c74573620391ec494d940?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saadkhan</media:title>
		</media:content>
	</item>
		<item>
		<title>SELECT only first element using XQuery</title>
		<link>http://bytespersecond.wordpress.com/2010/09/12/select-only-first-element-using-xquery/</link>
		<comments>http://bytespersecond.wordpress.com/2010/09/12/select-only-first-element-using-xquery/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 20:23:17 +0000</pubDate>
		<dc:creator>saadkhan</dc:creator>
		
		<guid isPermaLink="false">http://bytespersecond.wordpress.com/?p=98</guid>
		<description><![CDATA[Below is the example of how to select only first element from whole bunch of XML in sql server. declare @x xml; SET @x=&#8217;&#60;Statuses&#62; &#60;Status DateAndTime=&#8221;"&#62; &#60;one State=&#8221;" Desc=&#8221;" /&#62; &#60;two State=&#8221;" Desc=&#8221;" /&#62; &#60;three State=&#8221;" Desc=&#8221;" /&#62; &#60;/Status&#62; &#60;Status DateAndTime=&#8221;"&#62; &#60;four State=&#8221;" Desc=&#8221;" /&#62; &#60;five State=&#8221;" Desc=&#8221;" /&#62; &#60;six State=&#8221;" Desc=&#8221;" /&#62; &#60;/Status&#62; &#60;/Statuses&#62;&#8217; <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=98&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">Below is the example of how to select only first element from whole bunch of XML in sql server.</div>
<div></div>
<div></div>
<div>declare @x xml;</div>
<div id="_mcePaste">SET @x=&#8217;&lt;Statuses&gt;</div>
<div id="_mcePaste">&lt;Status DateAndTime=&#8221;"&gt;</div>
<div id="_mcePaste">&lt;one State=&#8221;" Desc=&#8221;" /&gt;</div>
<div id="_mcePaste">&lt;two State=&#8221;" Desc=&#8221;" /&gt;</div>
<div id="_mcePaste">&lt;three State=&#8221;" Desc=&#8221;" /&gt;</div>
<div id="_mcePaste">&lt;/Status&gt;</div>
<div id="_mcePaste">&lt;Status DateAndTime=&#8221;"&gt;</div>
<div id="_mcePaste">&lt;four State=&#8221;" Desc=&#8221;" /&gt;</div>
<div id="_mcePaste">&lt;five State=&#8221;" Desc=&#8221;" /&gt;</div>
<div id="_mcePaste">&lt;six State=&#8221;" Desc=&#8221;" /&gt;</div>
<div id="_mcePaste">&lt;/Status&gt;</div>
<div id="_mcePaste">&lt;/Statuses&gt;&#8217;</div>
<div id="_mcePaste">SELECT @x.query(&#8216;(Statuses/Status)[1]&#8216;)</div>
<p>declare @x xml;SET @x=&#8217;&lt;Statuses&gt;        &lt;Status DateAndTime=&#8221;"&gt;                 &lt;one State=&#8221;" Desc=&#8221;" /&gt;                 &lt;two State=&#8221;" Desc=&#8221;" /&gt;                 &lt;three State=&#8221;" Desc=&#8221;" /&gt;        &lt;/Status&gt;        &lt;Status DateAndTime=&#8221;"&gt;                 &lt;four State=&#8221;" Desc=&#8221;" /&gt;                 &lt;five State=&#8221;" Desc=&#8221;" /&gt;                 &lt;six State=&#8221;" Desc=&#8221;" /&gt;        &lt;/Status&gt;&lt;/Statuses&gt;&#8217;<br />
SELECT @x.query(&#8216;(Statuses/Status)[1]&#8216;)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bytespersecond.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bytespersecond.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bytespersecond.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bytespersecond.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bytespersecond.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bytespersecond.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bytespersecond.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bytespersecond.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bytespersecond.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bytespersecond.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bytespersecond.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bytespersecond.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bytespersecond.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bytespersecond.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=98&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bytespersecond.wordpress.com/2010/09/12/select-only-first-element-using-xquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfc99cfdc78c74573620391ec494d940?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saadkhan</media:title>
		</media:content>
	</item>
		<item>
		<title>Login failed for user &#8216;sa&#8217;. User not associated with a trusted SQL Server Connection</title>
		<link>http://bytespersecond.wordpress.com/2010/07/27/login-failed-for-user-sa-user-not-associated-with-a-trusted-sql-server-connection/</link>
		<comments>http://bytespersecond.wordpress.com/2010/07/27/login-failed-for-user-sa-user-not-associated-with-a-trusted-sql-server-connection/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 12:46:49 +0000</pubDate>
		<dc:creator>saadkhan</dc:creator>
				<category><![CDATA[administrator]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[sa]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://bytespersecond.wordpress.com/?p=95</guid>
		<description><![CDATA[Login as Local Administrator to your machine (SQL Server instance machine) and login to SQL Server instance using windows authentication. (a) Then change the Authenticaiton mode to SQL Server and WIndows (mixed mode) (b) Enable SA Login (c) Restart the service<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=95&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Courier;">Login as Local Administrator to your machine (SQL Server instance machine) and login to SQL Server instance using windows authentication. </span></p>
<p><span style="font-family:Courier;">(a) Then change the Authenticaiton mode to SQL Server and WIndows (mixed mode) </span></p>
<p><span style="font-family:Courier;">(b) Enable SA Login </span></p>
<p><span style="font-family:Courier;">(c) Restart the service</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bytespersecond.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bytespersecond.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bytespersecond.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bytespersecond.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bytespersecond.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bytespersecond.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bytespersecond.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bytespersecond.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bytespersecond.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bytespersecond.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bytespersecond.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bytespersecond.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bytespersecond.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bytespersecond.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=95&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bytespersecond.wordpress.com/2010/07/27/login-failed-for-user-sa-user-not-associated-with-a-trusted-sql-server-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfc99cfdc78c74573620391ec494d940?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saadkhan</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install Windows SharePoint Services 3.0 SP1 on Vista x64/x86 or Windows 7</title>
		<link>http://bytespersecond.wordpress.com/2010/07/23/how-to-install-windows-sharepoint-services-3-0-sp1-on-vista-x64x86-or-windows-7/</link>
		<comments>http://bytespersecond.wordpress.com/2010/07/23/how-to-install-windows-sharepoint-services-3-0-sp1-on-vista-x64x86-or-windows-7/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 06:00:41 +0000</pubDate>
		<dc:creator>saadkhan</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>

		<guid isPermaLink="false">http://bytespersecond.wordpress.com/?p=66</guid>
		<description><![CDATA[If you are a developer for SharePoint your best friend has been Virtual PC or VMWare. It’s time to introduce a new friend, Bamboo Nation&#8217;s SharePointOnVista. Bamboo have put together an installer that allows you to install WSS3.0 SP1 on Vista, both x86 and x64.  This will allow you to develop on your workstation with <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=66&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">If you are a developer for SharePoint your best friend has been Virtual PC or VMWare. It’s time to introduce a new friend, Bamboo Nation&#8217;s SharePointOnVista.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">Bamboo have put together an installer that allows you to install WSS3.0 SP1 on Vista, both x86 and x64.  This will allow you to develop on your workstation with all the power of a non virtualized environment. You still need VPC and VMWare so don’t feel sorry.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">There’s been much discussion about SharePoint being a &#8220;bad&#8221; development platform. This will remove the objection that you NEED to develop on a Server OS. I think we all as SharePoint developers have built our “virtualization skills” to a comfortable level now so it’s time to give us a break <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">You can download the setup helper and try it out.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">If you are installing on Windows 7 RC (build 7100) you need to read this post before continuing.</div>
<p>If you are a developer for SharePoint your best friend has been Virtual PC or VMWare. It’s time to introduce a new friend, Bamboo Nation&#8217;s SharePointOnVista.</p>
<p>Bamboo have put together an installer that allows you to install WSS3.0 SP1 on Vista, both x86 and x64.  This will allow you to develop on your workstation with all the power of a non virtualized environment. You still need VPC and VMWare so don’t feel sorry.</p>
<p>There’s been much discussion about SharePoint being a &#8220;bad&#8221; development platform. This will remove the objection that you NEED to develop on a Server OS. I think we all as SharePoint developers have built our “virtualization skills” to a comfortable level now so it’s time to give us a break <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>You can download the <a href="http://community.bamboosolutions.com/media/p/193.aspx" target="_blank"><span style="text-decoration:none;">setup</span></a> helper and try it out.</p>
<p>If you are installing on Windows 7 RC (build 7100) you need to <a href="http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2009/05/07/installing-wss-3-0-moss-sp2-on-windows-7-rc.aspx" target="_blank"><span style="text-decoration:none;">read this post</span></a> before continuing.</p>
<p><span style="font-family:Arial;line-height:normal;font-size:14px;"> </span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 10pt;"><span style="color:#000000;font-family:'Century Gothic', sans-serif;">Current limitations:</span></p>
<ul>
<li>You must select the Advanced option during install.</li>
<li>If you want to run on SQLExpress, manually install it first.  <a class="null" style="color:#468102;" title="SQL Server 2005 Express download" href="http://msdn.microsoft.com/en-us/express/bb410792.aspx" target="_blank"><span style="text-decoration:none;"><span style="color:#000000;">Get it here</span></span></a>.</li>
<li>You have to manually enable IIS7 with the proper options (explained).</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bytespersecond.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bytespersecond.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bytespersecond.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bytespersecond.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bytespersecond.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bytespersecond.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bytespersecond.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bytespersecond.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bytespersecond.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bytespersecond.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bytespersecond.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bytespersecond.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bytespersecond.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bytespersecond.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bytespersecond.wordpress.com&amp;blog=4174907&amp;post=66&amp;subd=bytespersecond&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bytespersecond.wordpress.com/2010/07/23/how-to-install-windows-sharepoint-services-3-0-sp1-on-vista-x64x86-or-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfc99cfdc78c74573620391ec494d940?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saadkhan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
