<?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>JFDI</title>
	<atom:link href="http://fabdata.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://fabdata.wordpress.com</link>
	<description>Don't ask me, just f**kin do it.......</description>
	<lastBuildDate>Tue, 29 Nov 2011 01:46:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='fabdata.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>JFDI</title>
		<link>http://fabdata.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://fabdata.wordpress.com/osd.xml" title="JFDI" />
	<atom:link rel='hub' href='http://fabdata.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Returning random rows in a result set</title>
		<link>http://fabdata.wordpress.com/2010/03/01/returning-random-rows-in-a-result-set/</link>
		<comments>http://fabdata.wordpress.com/2010/03/01/returning-random-rows-in-a-result-set/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 10:36:51 +0000</pubDate>
		<dc:creator>fabdata</dc:creator>
				<category><![CDATA[SQL2005]]></category>
		<category><![CDATA[NEWID()]]></category>

		<guid isPermaLink="false">http://fabdata.wordpress.com/?p=10</guid>
		<description><![CDATA[Neat SQL trick for returning a random row<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabdata.wordpress.com&amp;blog=378302&amp;post=10&amp;subd=fabdata&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Using the NEWID() function to return random rows</h2>
<p>The NEWID function will return a GUID value, that is statistically guaranteed to be unique e.g.</p>
<pre><a href="http://fabdata.files.wordpress.com/2010/03/newid.png"><img class="size-full wp-image-11 " title="newid" src="http://fabdata.files.wordpress.com/2010/03/newid.png?w=450" alt=""   /></a></pre>
<p>If you repeatedly call this function it will return a unique GUID. You can utilise this feature to give each row a unique random value. I&#8217;ve encountered a number of occaisions where it is desiranle to return from a resultset, a random number of rows. In the past I would achieve this by returning the result set to some application code that would randomise the results and select at most N items.</p>
<p>The example below shows how we can return 5 random rows from the Cutsomers table (Northwind database).</p>
<div id="attachment_12" class="wp-caption alignleft" style="width: 310px"><a href="http://fabdata.files.wordpress.com/2010/03/newid2.png"><img class="size-medium wp-image-12 " title="newid2" src="http://fabdata.files.wordpress.com/2010/03/newid2.png?w=300&#038;h=75" alt="" width="300" height="75" /></a><p class="wp-caption-text">Selecting 5 Random rows</p></div>
<p>Each time the SQL snippet is run, 5 random customers are returned from the table.</p>
<p>This is a very neat and efficient.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabdata.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabdata.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabdata.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabdata.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fabdata.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fabdata.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fabdata.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fabdata.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabdata.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabdata.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabdata.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabdata.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabdata.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabdata.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabdata.wordpress.com&amp;blog=378302&amp;post=10&amp;subd=fabdata&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fabdata.wordpress.com/2010/03/01/returning-random-rows-in-a-result-set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffdd80eeaae1dddc8ee36caaa78f9c80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Father Jack</media:title>
		</media:content>

		<media:content url="http://fabdata.files.wordpress.com/2010/03/newid.png" medium="image">
			<media:title type="html">newid</media:title>
		</media:content>

		<media:content url="http://fabdata.files.wordpress.com/2010/03/newid2.png?w=300" medium="image">
			<media:title type="html">newid2</media:title>
		</media:content>
	</item>
		<item>
		<title>Object reference not set to an instance of an object. (SQLEditors)</title>
		<link>http://fabdata.wordpress.com/2007/03/24/object-reference-not-set-to-an-instance-of-an-object-sqleditors/</link>
		<comments>http://fabdata.wordpress.com/2007/03/24/object-reference-not-set-to-an-instance-of-an-object-sqleditors/#comments</comments>
		<pubDate>Sat, 24 Mar 2007 18:10:08 +0000</pubDate>
		<dc:creator>fabdata</dc:creator>
				<category><![CDATA[SQL2005]]></category>

		<guid isPermaLink="false">http://fabdata.wordpress.com/2007/03/24/object-reference-not-set-to-an-instance-of-an-object-sqleditors/</guid>
		<description><![CDATA[SQL Server 2005, SQL Server Management Studio (SSMS) When attempting to modify a table in the SSMS (right-click on the table, click &#8220;Modify table&#8221; option) I receved the error, &#8220;Object reference not set to an instance of an object. (SQLEditors)&#8221; . This error appears to be a problem with the registry installation for the WorkStation/Client Components. I managed to repair this by removing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabdata.wordpress.com&amp;blog=378302&amp;post=9&amp;subd=fabdata&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>SQL Server 2005, SQL Server Management Studio (SSMS)</strong></p>
<p>When attempting to modify a table in the SSMS (right-click on the table, click &#8220;Modify table&#8221; option) I receved the error, <em>&#8220;Object reference not set to an instance of an object. (SQLEditors)&#8221;</em> .</p>
<p>This error appears to be a problem with the registry installation for the WorkStation/Client Components. I managed to repair this by removing and then reinstalling the &#8216;WorkStation Components&#8217; via the Control Pannel | Add, Remove Programs.</p>
<p><em>I suspect, but cannot be sure, that this problem may have arisen due to a install of SQL Server Express after I had already installed SQL Server 2005.</em></p>
<p>The steps I followed are as follows;</p>
<p><em>You will need the SQL Server 2005 install disk to remove/install components. </em><em>Also, ensure you close Visual Studio and SQL Server Management Studio if they are open.</em></p>
<ol>
<li>Control Panel | Add, Remove Programs.</li>
<li>Select SQL Server 2005, Click the Change button.</li>
<li>On the Component Selection dialog, select &#8216;Workstation Components&#8217;.</li>
<li>Click the next button on the Wizard, until you come to the Change or Remove Instance dialog.</li>
<li>Select &#8216;Changed Installed Components&#8217;.</li>
<li>On the Client Components option, right-click and select &#8216;Entire feature will be unavailble&#8217;.</li>
<li>Click the Next button and then click the Install Button.</li>
<li>The components will now be removed, this will take some time.</li>
<li>After the components have been removed, Repeat Steps 1 to 3 and click the next button on the Server Installation wizard to start the System Configuration Check dialog.</li>
<li>You may have to reboot your machine, inspect the Actions for a <em>Pending Reboot Required Message</em>. Reboot if required.</li>
<li>Click the next button on the Wizard, until you come to the Change or Remove Instance dialog.</li>
<li>Select &#8216;Changed Installed Components&#8217;.</li>
<li>On the Client Components option, select &#8216;Entire feature will be installed on local hard drive&#8217;.</li>
<li>Click the Next button and then click the Install Button.</li>
<li>The Workstation Components will now be installed. This may take some time.</li>
<li>Installation should now be complete.</li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/fabdata.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/fabdata.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabdata.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabdata.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabdata.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabdata.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fabdata.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fabdata.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fabdata.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fabdata.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabdata.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabdata.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabdata.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabdata.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabdata.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabdata.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabdata.wordpress.com&amp;blog=378302&amp;post=9&amp;subd=fabdata&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fabdata.wordpress.com/2007/03/24/object-reference-not-set-to-an-instance-of-an-object-sqleditors/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffdd80eeaae1dddc8ee36caaa78f9c80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Father Jack</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Set Default Focus To a Server Control</title>
		<link>http://fabdata.wordpress.com/2007/03/24/how-to-set-default-focus-to-a-server-control/</link>
		<comments>http://fabdata.wordpress.com/2007/03/24/how-to-set-default-focus-to-a-server-control/#comments</comments>
		<pubDate>Sat, 24 Mar 2007 10:27:38 +0000</pubDate>
		<dc:creator>fabdata</dc:creator>
				<category><![CDATA[ASP.NET 2.0]]></category>

		<guid isPermaLink="false">http://fabdata.wordpress.com/2007/03/24/how-to-set-default-focus-to-a-server-control/</guid>
		<description><![CDATA[ASP.NET 2.0 You can easily set the focus to a specific control when your web form is loaded, by adding the line Page.SetFocus(&#60;ControlID&#62;); to your Page_Load() event.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabdata.wordpress.com&amp;blog=378302&amp;post=8&amp;subd=fabdata&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>ASP.NET 2.0</strong></p>
<p>You can easily set the focus to a specific control when your web form is loaded, by adding the line</p>
<blockquote><p><code>Page.SetFocus(&lt;ControlID&gt;);</code></p></blockquote>
<p>to your <code>Page_Load()</code> event.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/fabdata.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/fabdata.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabdata.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabdata.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabdata.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabdata.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fabdata.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fabdata.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fabdata.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fabdata.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabdata.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabdata.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabdata.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabdata.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabdata.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabdata.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabdata.wordpress.com&amp;blog=378302&amp;post=8&amp;subd=fabdata&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fabdata.wordpress.com/2007/03/24/how-to-set-default-focus-to-a-server-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffdd80eeaae1dddc8ee36caaa78f9c80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Father Jack</media:title>
		</media:content>
	</item>
		<item>
		<title>Must declare the scalar variable &#8220;@ID&#8221;</title>
		<link>http://fabdata.wordpress.com/2007/03/23/must-declare-the-scalar-variable-id/</link>
		<comments>http://fabdata.wordpress.com/2007/03/23/must-declare-the-scalar-variable-id/#comments</comments>
		<pubDate>Fri, 23 Mar 2007 19:56:51 +0000</pubDate>
		<dc:creator>fabdata</dc:creator>
				<category><![CDATA[ASP.NET 2.0]]></category>

		<guid isPermaLink="false">http://fabdata.wordpress.com/2007/03/23/must-declare-the-scalar-variable-id/</guid>
		<description><![CDATA[GridView  &#8211; Auto Generated SQL Insert, Update And Delete Statements ASP.NET 2.0 with SQL Server 2005 I recently ran into the error &#8216;Must declare the scalar variable &#8220;@ID&#8221; &#8217; when attempting to delete rows from a GridView.  I had created the GridView via the smart tag and wizard options, so for a while I was stumped as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabdata.wordpress.com&amp;blog=378302&amp;post=3&amp;subd=fabdata&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>GridView  &#8211; </strong><strong>Auto Generated SQL Insert, Update And Delete Statements</strong></p>
<p><strong>ASP.NET 2.0 with SQL Server 2005</strong></p>
<p>I recently ran into the error <em>&#8216;Must declare the scalar variable &#8220;@ID&#8221; &#8217;</em> when attempting to delete rows from a GridView.  I had created the GridView via the smart tag and wizard options, so for a while I was stumped as to what the was the cause of the problem. I felt I knew what the error message was indicating, but could not figure out why it was occurring. A little Googling confirmed my suspicion that the parameter @ID was not being set in the SQL generated by the SQLDataSource but none of the posts I read revealed how I might fix it.</p>
<p>Because I had built the page using the various wizards I thought there was nothing further for me to do, but after a little further digging I discovered I had not set the <a target="_blank" href="http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.datakeynames.aspx">DataKeyNames</a> property for the GridView. Without this property set, the GridView cannot automatically wire up the parameter values and thus the generated SQL queries fail.</p>
<p><em>Double check the DataKeyNames property should you be experiencing this problem.</em></p>
<p>Depending how you have created the GridView and SQLDataSource, you may have to manually set the parameters in response to an SQLDataSource Inserting, Updating or Deleting event.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/fabdata.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/fabdata.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabdata.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabdata.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabdata.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabdata.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fabdata.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fabdata.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fabdata.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fabdata.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabdata.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabdata.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabdata.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabdata.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabdata.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabdata.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabdata.wordpress.com&amp;blog=378302&amp;post=3&amp;subd=fabdata&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fabdata.wordpress.com/2007/03/23/must-declare-the-scalar-variable-id/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffdd80eeaae1dddc8ee36caaa78f9c80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Father Jack</media:title>
		</media:content>
	</item>
	</channel>
</rss>
