<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dhaval's Weblog</title>
	<atom:link href="http://dhavalshah.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dhavalshah.wordpress.com</link>
	<description>Just another weblog</description>
	<lastBuildDate>Thu, 11 Dec 2008 07:53:01 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dhavalshah.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/6e7dcddded5722686ef4f3a72bcb0078?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Dhaval's Weblog</title>
		<link>http://dhavalshah.wordpress.com</link>
	</image>
			<item>
		<title>Impliment Yahoo Media Player In Web Page</title>
		<link>http://dhavalshah.wordpress.com/2008/12/11/impliment-yahoo-media-player-in-web-page/</link>
		<comments>http://dhavalshah.wordpress.com/2008/12/11/impliment-yahoo-media-player-in-web-page/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 07:52:57 +0000</pubDate>
		<dc:creator>dhavalshah</dc:creator>
				<category><![CDATA[Java Script]]></category>

		<guid isPermaLink="false">http://dhavalshah.wordpress.com/?p=86</guid>
		<description><![CDATA[
Yahoo Media Player is a browser based MP3 player which lets you play music from any website quickly.
Yahoo Media Player, after inserting a javascript code to your pages, searches for the MP3 files and creates a playlist.
&#160;
How to use Yahoo Media Player? 
1) Link to audio :
&#160;&#160;&#160;&#160;&#160;&#160; Insert one or more anchor elements containing the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=86&subd=dhavalshah&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /></p>
<p><a href="http://developer.yahoo.com/mediaplayer/">Yahoo Media Player</a> is a browser based MP3 player which lets you play music from any website quickly.
<p>Yahoo Media Player, after inserting a javascript code to your pages, searches for the MP3 files and creates a playlist.
<p><strong><font color="#808000" size="4"></font></strong>&nbsp;
<p><strong><font color="#808000" size="4">How to use Yahoo Media Player? </font></strong>
<p><strong><font color="#808000" size="4"><br /></font></strong>1) <u>Link to audio</u> :</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Insert one or more anchor elements containing the URL of an audio file into your web page. For example: </p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> &lt;a href=<span style="color:#006080;">"example1.mp3"</span>&gt;My first song&lt;/a&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> &lt;a href=<span style="color:#006080;">"example2.mp3"</span>&gt;My second song&lt;/a&gt;</pre>
</div>
</div>
<p>2) <u>Embed the Player</u>&nbsp;:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Copy and paste this code into your page: </p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">&lt;script type=<span style="color:#006080;">"text/javascript"</span> src=<span style="color:#006080;">"http://mediaplayer.yahoo.com/js"</span>&gt;&lt;/script&gt;
</pre>
</div>
<p>3) <u>Use the player</u> :</p>
<p>This play button will appear next to each of your audio links: <a href="http://dhavalshah.files.wordpress.com/2008/12/windowslivewriterimplimentyahoomediaplayerinwebpage-bea1play4.gif"><img height="12" src="http://dhavalshah.files.wordpress.com/2008/12/windowslivewriterimplimentyahoomediaplayerinwebpage-bea1play-thumb2.gif?w=13&#038;h=12" width="13"></a> </p>
<p>Press a play button. The Yahoo! Media Player will open.</p>
<p><a href="http://dhavalshah.files.wordpress.com/2008/12/windowslivewriterimplimentyahoomediaplayerinwebpage-bea1player10.gif"><img height="83" src="http://dhavalshah.files.wordpress.com/2008/12/windowslivewriterimplimentyahoomediaplayerinwebpage-bea1player-thumb6.gif?w=517&#038;h=83" width="517"></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalshah.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalshah.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalshah.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalshah.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalshah.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalshah.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalshah.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalshah.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalshah.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalshah.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=86&subd=dhavalshah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dhavalshah.wordpress.com/2008/12/11/impliment-yahoo-media-player-in-web-page/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7736088ced6689762b229a14dbb0a4cd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalshah</media:title>
		</media:content>

		<media:content url="http://dhavalshah.files.wordpress.com/2008/12/windowslivewriterimplimentyahoomediaplayerinwebpage-bea1play-thumb2.gif" medium="image" />

		<media:content url="http://dhavalshah.files.wordpress.com/2008/12/windowslivewriterimplimentyahoomediaplayerinwebpage-bea1player-thumb6.gif" medium="image" />
	</item>
		<item>
		<title>Making Setup For .Net Based Application</title>
		<link>http://dhavalshah.wordpress.com/2008/12/05/making-setup-for-net-based-application/</link>
		<comments>http://dhavalshah.wordpress.com/2008/12/05/making-setup-for-net-based-application/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 11:35:58 +0000</pubDate>
		<dc:creator>dhavalshah</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://dhavalshah.wordpress.com/?p=80</guid>
		<description><![CDATA[COMMING SOON &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;   
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=80&subd=dhavalshah&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>COMMING SOON &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalshah.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalshah.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalshah.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalshah.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalshah.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalshah.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalshah.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalshah.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalshah.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalshah.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=80&subd=dhavalshah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dhavalshah.wordpress.com/2008/12/05/making-setup-for-net-based-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7736088ced6689762b229a14dbb0a4cd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalshah</media:title>
		</media:content>
	</item>
		<item>
		<title>Detecting Operating System Through Java Script</title>
		<link>http://dhavalshah.wordpress.com/2008/11/12/detecting-operating-system-through-java-script/</link>
		<comments>http://dhavalshah.wordpress.com/2008/11/12/detecting-operating-system-through-java-script/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 07:27:28 +0000</pubDate>
		<dc:creator>dhavalshah</dc:creator>
				<category><![CDATA[Java Script]]></category>

		<guid isPermaLink="false">http://dhavalshah.wordpress.com/?p=78</guid>
		<description><![CDATA[To detect the Operating System on the Client Machine, your script should analyze the navigator.appVersion string. Below is a simple example of a script that sets the variable OSName to reflect the actual client OS.paste this script after the &#60;Title&#62; Tag of the &#60;Head&#62; Tag of the Page.


   1: &#60;script language="javascript" type="text/javascript"&#62;
  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=78&subd=dhavalshah&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To detect the <strong>Operating System</strong> on the <strong>Client Machine</strong>, your script should analyze the <strong>navigator.appVersion</strong> string. Below is a simple example of a script that sets the variable OSName to reflect the actual client OS.paste this script after the <strong>&lt;Title&gt;</strong> Tag of the <strong>&lt;Head&gt;</strong> Tag of the Page.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> &lt;script language=<span style="color:#006080;">"javascript"</span> type=<span style="color:#006080;">"text/javascript"</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> <span style="color:#008000;">// This script sets OSName variable as follows:</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> <span style="color:#008000;">// "Windows"    for all versions of Windows</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> <span style="color:#008000;">// "MacOS"      for all versions of Macintosh OS</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> <span style="color:#008000;">// "Linux"      for all versions of Linux</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> <span style="color:#008000;">// "UNIX"       for all other UNIX flavors </span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> <span style="color:#008000;">// "Unknown OS" indicates failure to detect the OS</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> <span style="color:#0000ff;">var</span> OSName=<span style="color:#006080;">"Unknown OS"</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> <span style="color:#0000ff;">if</span> (navigator.appVersion.indexOf(<span style="color:#006080;">"Win"</span>)!=-1) OSName=<span style="color:#006080;">"Windows"</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span> <span style="color:#0000ff;">if</span> (navigator.appVersion.indexOf(<span style="color:#006080;">"Mac"</span>)!=-1) OSName=<span style="color:#006080;">"MacOS"</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span> <span style="color:#0000ff;">if</span> (navigator.appVersion.indexOf(<span style="color:#006080;">"X11"</span>)!=-1) OSName=<span style="color:#006080;">"UNIX"</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span> <span style="color:#0000ff;">if</span> (navigator.appVersion.indexOf(<span style="color:#006080;">"Linux"</span>)!=-1) OSName=<span style="color:#006080;">"Linux"</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span> document.write(<span style="color:#006080;">'Your OS: '</span>+OSName);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span> &lt;/script&gt;</pre>
</div>
</div>
<p>On your system, this script yields the following result: <strong>Your OS: Windows</strong></p>
<p>(To get more detailed OS information, your script should perform a more sophisticated analysis of the <strong>navigator.appVersion</strong> string, but the idea would be the same. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalshah.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalshah.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalshah.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalshah.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalshah.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalshah.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalshah.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalshah.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalshah.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalshah.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=78&subd=dhavalshah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dhavalshah.wordpress.com/2008/11/12/detecting-operating-system-through-java-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7736088ced6689762b229a14dbb0a4cd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalshah</media:title>
		</media:content>
	</item>
		<item>
		<title>Declaring Variable &amp; Function In Action Script 2.0 (Flash)</title>
		<link>http://dhavalshah.wordpress.com/2008/11/11/declaring-variable-function-in-action-script-20-flash/</link>
		<comments>http://dhavalshah.wordpress.com/2008/11/11/declaring-variable-function-in-action-script-20-flash/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 09:42:08 +0000</pubDate>
		<dc:creator>dhavalshah</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://dhavalshah.wordpress.com/?p=75</guid>
		<description><![CDATA[To further aide debugging and assurance that you are in fact using your variables as you had intended for them to be used, ActionScript 2.0 has introduced strict data typing to the language. What this is, is the ability to specify what type a certain variable is when it&#8217;s created (Number, String, MovieClip, etc.). Then, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=75&subd=dhavalshah&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="left">To further aide debugging and assurance that you are in fact using your variables as you had intended for them to be used, ActionScript 2.0 has introduced strict data typing to the language. What this is, is the ability to specify what type a certain variable is when it&#8217;s created (Number, String, MovieClip, etc.). Then, should you ever attempt to try to use it as a variable of an alternative type, an error will occur thereby isolating a confliction helping you to debug.</p>
<p align="left">Strict data typing also allows for Flash to associate a variable with an object to help you with code hints when using that object. Before, this was only possible using underscore suffixes in your variable naming. Now you have the option of using strictly typed variables instead, allowing for more room in your own naming conventions. (Note: XML definitions will still be needed for code hints to function properly. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="left">Typing is always placed following a variable or function declaration. For variables, the type is placed immediately after the variable name separated by a colon (:). For functions, placement directly after the parameters list, also separated by a colon. Function types here, however, refer to the type of the value that the function is returning. If the function has no return, Void is used. Also, for functions, the parameters used can too be strictly typed.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">var</span> variableName:Type = value;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> <span style="color:#0000ff;">function</span> functionName(parameter:Type):returnType {}</pre>
</div>
</div>
<p>The following is an example of some variables and a function being strictly typed. Notice that when a type is given a value not matching its data type, an error occurs.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">var</span> name:String = <span style="color:#006080;">"Joe"</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> <span style="color:#0000ff;">var</span> age:Number = 21;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> <span style="color:#0000ff;">function</span> message(msg:String):Void {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> trace(msg);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> message(name); <span style="color:#008000;">// traces "Joe"</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> message(<span style="color:#006080;">"Bob"</span>); <span style="color:#008000;">// traces "Bob"</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> message(age); // error: Type mismatch</pre>
</div>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalshah.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalshah.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalshah.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalshah.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalshah.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalshah.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalshah.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalshah.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalshah.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalshah.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=75&subd=dhavalshah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dhavalshah.wordpress.com/2008/11/11/declaring-variable-function-in-action-script-20-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7736088ced6689762b229a14dbb0a4cd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalshah</media:title>
		</media:content>
	</item>
		<item>
		<title>Create Thumbnail Images In C#</title>
		<link>http://dhavalshah.wordpress.com/2008/10/01/create-thumbnail-images-in-c/</link>
		<comments>http://dhavalshah.wordpress.com/2008/10/01/create-thumbnail-images-in-c/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 07:13:45 +0000</pubDate>
		<dc:creator>dhavalshah</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Dot Net]]></category>

		<guid isPermaLink="false">http://dhavalshah.wordpress.com/?p=73</guid>
		<description><![CDATA[A thumbnail is a small sized image. Creating a thumbnail using .NET is extremely simple. In this article, we will explore how to create a thumbnail image and display the thumbnail in our application. Follow these steps:

First Add Windows Form In your Application. After that Drag &#38; drop 1 Label ,&#160; 1 TextBox , 2 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=73&subd=dhavalshah&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A thumbnail is a small sized image. Creating a thumbnail using .NET is extremely simple. In this article, we will explore how to create a thumbnail image and display the thumbnail in our application. Follow these steps:</p>
<ol>
<li>First Add Windows Form In your Application. After that Drag &amp; drop 1 Label ,&nbsp; 1 TextBox , 2 Buttons&nbsp;, 1 PictureBox &amp; 1 OpenfileDialogBox&nbsp;Controls From Toolbox. Now change all the names of the controls that mention belowed.</li>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> TextBox Name = <span style="color:#006080;">'txtPath'</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> 1st Button Name = <span style="color:#006080;">'btnOpen'</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> 2nd Button Name = <span style="color:#006080;">'btnGenerate'</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> PictureBox Name = <span style="color:#006080;">'picthumb'</span> And Set Height &amp; Width = 100,100</pre>
</div>
</div>
<li>After renaming All the controls On the &#8216;btnOpen&#8217; click display the File Open dialog box and accept the selected .jpg file in the&nbsp;&#8217;txtPath&#8217; textbox.</li>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">private</span> <span style="color:#0000ff;">void</span> btnOpen_Click(<span style="color:#0000ff;">object</span> sender, EventArgs e)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>         {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>             <span style="color:#0000ff;">if</span> (openFileDialog1.ShowDialog().ToString() == <span style="color:#006080;">"OK"</span>)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>             {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>                 txtPath.Text = openFileDialog1.FileName;   </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>             }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>         }</pre>
</div>
</div>
<li>Next, on the ‘btnGenerate’ click, add the following code:</li>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">private</span> <span style="color:#0000ff;">void</span> btnGenerate_Click(<span style="color:#0000ff;">object</span> sender, EventArgs e)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>         {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>             Image Img = <span style="color:#0000ff;">null</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>             Img = Image.FromFile(txtPath.Text);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>             Image ImgThumbs = Img.GetThumbnailImage(100, 100, <span style="color:#0000ff;">null</span>, <span style="color:#0000ff;">new</span> IntPtr());</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>             <span style="color:#0000ff;">if</span> (ImgThumbs != <span style="color:#0000ff;">null</span>)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>             {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>                 picthumb.Image = ImgThumbs;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>             }   </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>         }</pre>
</div>
</div>
<p>The code creates an Image object from the image supplied in the textbox. Using the <strong>Image.GetThumbnailImage()</strong>, the code then creates a thumbnail image with a size of 100*100.<br />The <strong>Image.GetThumbnailImage()</strong> takes in four arguments :</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> Width : <span style="color:#0000ff;">in</span> pixel of the thumbnail image that <span style="color:#0000ff;">is</span> to be generated</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> Height : <span style="color:#0000ff;">in</span> pixel of the thumbnail image that <span style="color:#0000ff;">is</span> to be generated</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> Callback : a Image.GetTumbnailImageAbort <span style="color:#0000ff;">delegate</span> to prematurely cancel execution</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> CallbackData : of type IntPtr to represent a pointer or a handle.</pre>
</div>
</div>
</ol>
<p>Run the application, select the image and click on the&nbsp;Generate button. The preview will be similar to the image displayed below : <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://dhavalshah.files.wordpress.com/2008/10/windowslivewritercreatethumbnailimagesinc-ae9716.jpg"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="258" src="http://dhavalshah.files.wordpress.com/2008/10/windowslivewritercreatethumbnailimagesinc-ae971-thumb4.jpg?w=453&#038;h=258" width="453" border="0"></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalshah.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalshah.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalshah.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalshah.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalshah.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalshah.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalshah.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalshah.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalshah.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalshah.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=73&subd=dhavalshah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dhavalshah.wordpress.com/2008/10/01/create-thumbnail-images-in-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7736088ced6689762b229a14dbb0a4cd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalshah</media:title>
		</media:content>

		<media:content url="http://dhavalshah.files.wordpress.com/2008/10/windowslivewritercreatethumbnailimagesinc-ae971-thumb4.jpg" medium="image" />
	</item>
		<item>
		<title>Find Dependency In SQL Server</title>
		<link>http://dhavalshah.wordpress.com/2008/09/30/find-dependency-in-sql-server/</link>
		<comments>http://dhavalshah.wordpress.com/2008/09/30/find-dependency-in-sql-server/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 06:56:27 +0000</pubDate>
		<dc:creator>dhavalshah</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dhavalshah.wordpress.com/?p=68</guid>
		<description><![CDATA[Why?
Let’s discuss one situation. There were so many tables in&#160;database and I have to change only one column of the table then how can I found this column is how many times used in any views or store procedure or any other database object. There&#160;is a&#160;ways to find this type of situation. First&#160;right click on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=68&subd=dhavalshah&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font size="3"><strong>Why?</strong></font></p>
<blockquote><p>Let’s discuss one situation. There were so many tables in&nbsp;database and I have to change only one column of the table then how can I found this column is how many times used in any views or store procedure or any other database object. There&nbsp;is a&nbsp;ways to find this type of situation. First&nbsp;right click on the table and then click on dependency it will shows all the object that use this table but if I can see only that particular alter table column then there is no way to do that. After that problem I have found one solution&nbsp;that mention bellowed.</p>
</blockquote>
<p><strong><font size="3">Description</font></strong></p>
<blockquote><p>First&nbsp;create one table valued function <strong>CheckDependancy</strong> in your database.That function script define belowed.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">set</span> ANSI_NULLS <span style="color:#0000ff;">ON</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> <span style="color:#0000ff;">set</span> QUOTED_IDENTIFIER <span style="color:#0000ff;">ON</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> <span style="color:#0000ff;">go</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> <span style="color:#0000ff;">Create</span> <span style="color:#0000ff;">function</span> [dbo].[CheckDependancy](@dependanceobjectname <span style="color:#0000ff;">Varchar</span>(100))</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> <span style="color:#0000ff;">RETURNS</span> @DependanceTable <span style="color:#0000ff;">TABLE</span> (</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> [name] <span style="color:#0000ff;">varchar</span>(200),</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> [type] <span style="color:#0000ff;">varchar</span>(100)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> )</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> <span style="color:#0000ff;">AS</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span> <span style="color:#0000ff;">BEGIN</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span> INSERT @DependanceTable</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span> <span style="color:#0000ff;">select</span> <span style="color:#0000ff;">distinct</span> temp.name1,temp.TypeOf <span style="color:#0000ff;">from</span> </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span> (</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span>     <span style="color:#0000ff;">SELECT</span> (<span style="color:#0000ff;">case</span> Obj.[type] </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span>         <span style="color:#0000ff;">when</span> <span style="color:#006080;">'FN'</span> <span style="color:#0000ff;">then</span> <span style="color:#006080;">'Function'</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span>         <span style="color:#0000ff;">when</span> <span style="color:#006080;">'P'</span> <span style="color:#0000ff;">then</span> <span style="color:#006080;">'Procedure'</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span>         <span style="color:#0000ff;">when</span> <span style="color:#006080;">'TR'</span> <span style="color:#0000ff;">then</span> <span style="color:#006080;">'Trigger'</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  22:</span>         <span style="color:#0000ff;">when</span> <span style="color:#006080;">'TF'</span> <span style="color:#0000ff;">then</span> <span style="color:#006080;">'Function'</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  23:</span>         <span style="color:#0000ff;">when</span> <span style="color:#006080;">'V'</span> <span style="color:#0000ff;">then</span> <span style="color:#006080;">'View'</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  24:</span>         <span style="color:#0000ff;">else</span> <span style="color:#006080;">'None'</span> <span style="color:#0000ff;">end</span>) <span style="color:#0000ff;">AS</span> TypeOf,obj.name <span style="color:#0000ff;">AS</span> name1,syscom.[text] <span style="color:#0000ff;">from</span> sys.objects <span style="color:#0000ff;">As</span> obj</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  25:</span>                 <span style="color:#0000ff;">INNER</span> <span style="color:#0000ff;">JOIN</span> syscomments <span style="color:#0000ff;">As</span> syscom <span style="color:#0000ff;">ON</span> obj.object_id = syscom.id</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  26:</span>     <span style="color:#0000ff;">WHERE</span> obj.[type] <span style="color:#0000ff;">in</span> (<span style="color:#006080;">'FN'</span>,<span style="color:#006080;">'V'</span>,<span style="color:#006080;">'TR'</span>,<span style="color:#006080;">'P'</span>,<span style="color:#006080;">'TF'</span>)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  27:</span>         <span style="color:#0000ff;">AND</span> syscom.[text] <span style="color:#0000ff;">like</span> <span style="color:#006080;">'%'</span> + @dependanceobjectname + <span style="color:#006080;">'%'</span> </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  28:</span> ) <span style="color:#0000ff;">As</span> temp <span style="color:#0000ff;">Order</span> <span style="color:#0000ff;">By</span> TypeOf</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  29:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  30:</span> <span style="color:#0000ff;">return</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  31:</span> <span style="color:#0000ff;">END</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  32:</span> &nbsp;</pre>
</div>
</div>
</blockquote>
<blockquote>
<p>After Creating this function fire a query like </p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">Select</span> * <span style="color:#0000ff;">from</span> CheckDependancy(<span style="color:#006080;">'companyname'</span>)</pre>
</div>
</div>
</blockquote>
<blockquote>
<p>This query will show all&nbsp;the view,store procedure or function&nbsp;name that&nbsp;use the companyname column. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalshah.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalshah.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalshah.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalshah.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalshah.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalshah.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalshah.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalshah.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalshah.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalshah.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=68&subd=dhavalshah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dhavalshah.wordpress.com/2008/09/30/find-dependency-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7736088ced6689762b229a14dbb0a4cd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalshah</media:title>
		</media:content>
	</item>
		<item>
		<title>Fetching Random Rows In SQL Server</title>
		<link>http://dhavalshah.wordpress.com/2008/09/25/fetching-random-rows-in-sql-server/</link>
		<comments>http://dhavalshah.wordpress.com/2008/09/25/fetching-random-rows-in-sql-server/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 11:35:05 +0000</pubDate>
		<dc:creator>dhavalshah</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dhavalshah.wordpress.com/?p=65</guid>
		<description><![CDATA[Recently I needed to fetch random rows from a SQL server table. If you have an integer column then using RAND() function goes well. However in my case there was no number column. In such cases you can use newid()&#160;function that&#160;is provide&#160;by SQL&#160;Server.
1). Create one Temporary table like Product.


   1: create table Product
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=65&subd=dhavalshah&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I needed to fetch random rows from a SQL <a href="http://www.dotnetbips.com/#">server</a> table. If you have an integer column then using RAND() function goes well. However in my case there was no number column. In such cases you can use newid()&nbsp;function that&nbsp;is provide&nbsp;by SQL&nbsp;Server.
<p>1). Create one Temporary table like <strong>Product</strong>.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">create</span> <span style="color:#0000ff;">table</span> Product</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> (</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     ProductId <span style="color:#0000ff;">int</span>,</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     ProductName <span style="color:#0000ff;">varchar</span>(100),</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>     RetailPrice <span style="color:#0000ff;">decimal</span>(18,2),</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>     ProductDesc <span style="color:#0000ff;">varchar</span>(1000)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> )</pre>
</div>
</div>
<p>2). After Creating that <strong>Product</strong> Table Insert Few rows like 100 rows.</p>
<p>3). Now fire the query that mention belowed.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">select</span> <span style="color:#0000ff;">top</span> 10 * <span style="color:#0000ff;">from</span> product </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> <span style="color:#0000ff;">order</span> <span style="color:#0000ff;">by</span> newid()</pre>
</div>
</div>
<blockquote>
<p>This query will return every time 10 random product.</p>
<p>This newid() function every time&nbsp;returns some random values. so when we order by from that function every time the product will different then the prev.&nbsp;:)</p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalshah.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalshah.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalshah.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalshah.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalshah.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalshah.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalshah.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalshah.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalshah.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalshah.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=65&subd=dhavalshah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dhavalshah.wordpress.com/2008/09/25/fetching-random-rows-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7736088ced6689762b229a14dbb0a4cd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalshah</media:title>
		</media:content>
	</item>
		<item>
		<title>SET ANSI_NULLS ON&#124;OFF In SQL Server</title>
		<link>http://dhavalshah.wordpress.com/2008/09/23/set-ansi_nulls-onoff-in-sql-server/</link>
		<comments>http://dhavalshah.wordpress.com/2008/09/23/set-ansi_nulls-onoff-in-sql-server/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 09:41:42 +0000</pubDate>
		<dc:creator>dhavalshah</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dhavalshah.wordpress.com/?p=62</guid>
		<description><![CDATA[When i started learing SQL Server&#160;one of the mistakes I did a few times was something like the following.


   1: IF OBJECT_ID('Invoice') IS NOT NULL DROP TABLE Customers
   2: GO
   3: CREATE TABLE Invoice(
   4:     InvoiceId int, 
   5:   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=62&subd=dhavalshah&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When i started learing SQL Server&nbsp;one of the mistakes I did a few times was something like the following.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">IF</span> OBJECT_ID(<span style="color:#006080;">'Invoice'</span>) <span style="color:#0000ff;">IS</span> <span style="color:#0000ff;">NOT</span> <span style="color:#0000ff;">NULL</span> <span style="color:#0000ff;">DROP</span> <span style="color:#0000ff;">TABLE</span> Customers</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> <span style="color:#0000ff;">GO</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> <span style="color:#0000ff;">CREATE</span> <span style="color:#0000ff;">TABLE</span> Invoice(</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     InvoiceId <span style="color:#0000ff;">int</span>, </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>     InvoiceNo <span style="color:#0000ff;">VARCHAR</span>(10),</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>     InvoiceStatus)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> <span style="color:#0000ff;">GO</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> INSERT <span style="color:#0000ff;">INTO</span> Invoice(InvoiceId , InvoiceNo , InvoiceStatus) <span style="color:#0000ff;">SELECT</span> 1,<span style="color:#006080;">'Jacob'</span>,<span style="color:#006080;">'Active'</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> INSERT <span style="color:#0000ff;">INTO</span> Invoice(InvoiceId , InvoiceNo , InvoiceStatus) <span style="color:#0000ff;">SELECT</span> 2,<span style="color:#006080;">'Mike'</span>,<span style="color:#006080;">'Inactive'</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> INSERT <span style="color:#0000ff;">INTO</span> Invoice(InvoiceId , InvoiceNo , InvoiceStatus) <span style="color:#0000ff;">SELECT</span> 3,<span style="color:#006080;">'Steve'</span>, <span style="color:#0000ff;">NULL</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span> <span style="color:#0000ff;">SELECT</span> *</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span> <span style="color:#0000ff;">FROM</span> Invoice</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span> <span style="color:#0000ff;">WHERE</span> InvoiceStatus = NULL</pre>
</div>
</div>
<p>Well, my queries never returned a row, even though there is a row in the table with a NULL value in&nbsp;InvoiceStatus column. Then I tried the opposite.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">SELECT</span> *</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> <span style="color:#0000ff;">FROM</span> Invoice</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> <span style="color:#0000ff;">WHERE</span> InvoiceStatus &lt;&gt; NULL</pre>
</div>
</div>
<p>This did not return anything as well.</p>
<p>I realized that the result of a comparison operation that involves a <a href="http://www.sqlserverandxml.com/search/label/NULL">NULL</a> value is UNKNOWN. That is the reason why the above queries did not return any row. The correct way to write the queries is:</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">SELECT</span> InvoiceNo,InvoiceStatus</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> <span style="color:#0000ff;">FROM</span> Invoice</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> <span style="color:#0000ff;">WHERE</span> InvoiceStatus <span style="color:#0000ff;">IS</span> <span style="color:#0000ff;">NULL</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> /*</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> InvoiceNo            InvoiceStatus</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> ------------------<span style="color:#008000;">-- --------------</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> Steve                <span style="color:#0000ff;">NULL</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> */</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> <span style="color:#0000ff;">SELECT</span> InvoiceNo,InvoiceStatus</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> <span style="color:#0000ff;">FROM</span> Invoice</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> <span style="color:#0000ff;">WHERE</span> InvoiceStatus <span style="color:#0000ff;">IS</span> <span style="color:#0000ff;">NOT</span> <span style="color:#0000ff;">NULL</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span> /*</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span> InvoiceNo            InvoiceStatus</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span> ------------------<span style="color:#008000;">-- --------------</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span> Jacob                Active        </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span> Mike                 Inactive      </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span> */</pre>
</div>
</div>
<p>So where does <strong>SET ANSI_NULLS</strong> fit in this story?</p>
<p>Well,the behavior of comparison operations (= and &lt;&gt;) when they are used with NULL values depends on the setting of this option. The default value of SET ANSI_NULLS is ON. This setting causes the behavior explained in the previous examples. </p>
<p>The two examples we saw at the beginning of this post will work correctly if we set ANSI_NULLS to OFF. The following example demonstrates that.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">SET</span> ANSI_NULLS <span style="color:#0000ff;">OFF</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> <span style="color:#0000ff;">SELECT</span> InvoiceNo,InvoiceStatus <span style="color:#0000ff;">FROM</span> Invoice <span style="color:#0000ff;">WHERE</span> InvoiceStatus = <span style="color:#0000ff;">NULL</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> /*</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> InvoiceNo  InvoiceStatus</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> --------<span style="color:#008000;">-- -------------</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> Steve      <span style="color:#0000ff;">NULL</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> */</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span> <span style="color:#0000ff;">SELECT</span> InvoiceNo,InvoiceStatus <span style="color:#0000ff;">FROM</span> Invoice <span style="color:#0000ff;">WHERE</span> InvoiceStatus &lt;&gt; <span style="color:#0000ff;">NULL</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span> /*</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span> InvoiceNo  InvoiceStatus</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span> --------<span style="color:#008000;">-- -------------</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span> Jacob      Active</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span> Mike       Inactive</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span> &nbsp;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span> */</pre>
</div>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalshah.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalshah.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalshah.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalshah.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalshah.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalshah.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalshah.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalshah.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalshah.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalshah.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=62&subd=dhavalshah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dhavalshah.wordpress.com/2008/09/23/set-ansi_nulls-onoff-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7736088ced6689762b229a14dbb0a4cd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalshah</media:title>
		</media:content>
	</item>
		<item>
		<title>Debug Remote SQL Server Store Procedure In .Net</title>
		<link>http://dhavalshah.wordpress.com/2008/09/22/debug-remote-sql-server-store-procedure-in-net/</link>
		<comments>http://dhavalshah.wordpress.com/2008/09/22/debug-remote-sql-server-store-procedure-in-net/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 06:39:06 +0000</pubDate>
		<dc:creator>dhavalshah</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dhavalshah.wordpress.com/?p=60</guid>
		<description><![CDATA[In nova days i have faced one problem that was&#160;to debug store procedure that&#160;placed on&#160;remote sql server.I have found the solution to debug remote store procedure on .net platform.I have mention all the steps below to impliments remote store procedure debugging in .NET.
&#160;
1). Microsoft SQL Server Provide rdbgsetup.exe file .with help of this file we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=60&subd=dhavalshah&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote><p>In nova days i have faced one problem that was&nbsp;to debug store procedure that&nbsp;placed on&nbsp;remote sql server.I have found the solution to debug remote store procedure on .net platform.I have mention all the steps below to impliments remote store procedure debugging in .NET.</p>
<p>&nbsp;</p>
<p>1). Microsoft SQL Server Provide <strong>rdbgsetup.exe</strong> file .with help of this file we can debug the remote store procedure.This file is placed on belowed location.</p>
</blockquote>
<ol>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:126.26%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;height:54px;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> &lt;sql server root folder&gt;/90/Shared/1033/rdbgsetup.exe</pre>
</div>
</div>
</ol>
<blockquote>
<p style="margin-right:0;">2). After double Click On that rdgsetup.exe file this type of dialogbox appears.</p>
<p style="margin-right:0;"><a href="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d29014.jpg"><img style="border-width:0;" height="430" src="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2901-thumb2.jpg?w=464&#038;h=430" width="464" border="0"></a></p>
</blockquote>
<blockquote>
<p style="margin-right:0;">3). Click On Next Button and check the accept terms &amp; condition Checkbox and click on install button.</p>
<p style="margin-right:0;">&nbsp;<a href="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d29025.jpg"><img style="border-width:0;" height="430" src="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2902-thumb3.jpg?w=463&#038;h=430" width="463" border="0"></a></p>
</blockquote>
<blockquote>
<p style="margin-right:0;">4).&nbsp;After Click On&nbsp;Install Button this picture will apears on your screen.</p>
<p style="margin-right:0;"><a href="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d29036.jpg"><img style="border-width:0;" height="437" src="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2903-thumb2.jpg?w=472&#038;h=437" width="472" border="0"></a></p>
</blockquote>
<blockquote>
<p style="margin-right:0;">5). After Click on Next Button Another Dailog open that mention in below picture.</p>
<p style="margin-right:0;"><a href="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d29044.jpg"><img style="border-width:0;" height="459" src="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2904-thumb2.jpg?w=482&#038;h=459" width="482" border="0"></a> &nbsp;</p>
<p style="margin-right:0;">&nbsp;6). Now Configure Next step same as the picture that shown belowed.</p>
<p style="margin-right:0;"><a href="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d29054.jpg"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="459" src="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2905-thumb2.jpg?w=482&#038;h=459" width="482" border="0"></a> </p>
</blockquote>
<blockquote>
<p style="margin-right:0;"><font color="#333333">7). After Click on Next Button.Add See the belowed Image.</font></p>
</blockquote>
<blockquote>
<p style="margin-right:0;"><a href="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d29065.jpg"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="476" src="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2906-thumb3.jpg?w=500&#038;h=476" width="500" border="0"></a> </p>
</blockquote>
<blockquote>
<p style="margin-right:0;">8). click On Next Button that will finish all the configuration and appear the close screen that mention belowd.</p>
<p style="margin-right:0;"><a href="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d29075.jpg"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="478" src="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2907-thumb3.jpg?w=502&#038;h=478" width="502" border="0"></a> </p>
</blockquote>
<p>&nbsp;</p>
<blockquote>
<p><font color="#333333">9). After all this Steps over open the Microsoft Visual Studio and run the query.refer below image.</font></p>
<p><a href="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d29086.jpg"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="379" src="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2908-thumb4.jpg?w=577&#038;h=379" width="577" border="0"></a> </p>
</blockquote>
<blockquote></blockquote>
<blockquote>
<p><font color="#333333">To Debug the storeprocedure Right Click on that and click on <strong>Step Into Stored Procudre . </strong></font></p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalshah.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalshah.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalshah.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalshah.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalshah.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalshah.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalshah.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalshah.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalshah.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalshah.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=60&subd=dhavalshah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dhavalshah.wordpress.com/2008/09/22/debug-remote-sql-server-store-procedure-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7736088ced6689762b229a14dbb0a4cd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalshah</media:title>
		</media:content>

		<media:content url="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2901-thumb2.jpg" medium="image" />

		<media:content url="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2902-thumb3.jpg" medium="image" />

		<media:content url="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2903-thumb2.jpg" medium="image" />

		<media:content url="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2904-thumb2.jpg" medium="image" />

		<media:content url="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2905-thumb2.jpg" medium="image" />

		<media:content url="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2906-thumb3.jpg" medium="image" />

		<media:content url="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2907-thumb3.jpg" medium="image" />

		<media:content url="http://dhavalshah.files.wordpress.com/2008/09/windowslivewriterdebugremotestoreprocedureinnet-d2908-thumb4.jpg" medium="image" />
	</item>
		<item>
		<title>Text to Speech In C#</title>
		<link>http://dhavalshah.wordpress.com/2008/09/16/text-to-speech-in-c/</link>
		<comments>http://dhavalshah.wordpress.com/2008/09/16/text-to-speech-in-c/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 05:04:07 +0000</pubDate>
		<dc:creator>dhavalshah</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://dhavalshah.wordpress.com/?p=40</guid>
		<description><![CDATA[
Text to Speech is very usefull in Web Application as well as in windows application.Microsoft provide&#160;Speech Object Library&#160;&#160;that is use for this purpose.Here i have mention steps to implement text to speech in C#.
1). Add Speech Object Library reference to your Application using right click on Project &#38; click on Add Reference.
 
2). After Adding [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=40&subd=dhavalshah&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote>
<p>Text to Speech is very usefull in Web Application as well as in windows application.Microsoft provide&nbsp;<strong>Speech Object Library&nbsp;</strong>&nbsp;that is use for this purpose.Here i have mention steps to implement text to speech in C#.</p>
<p>1). Add Speech Object Library reference to your Application using right click on Project &amp; click on Add Reference.</p>
<p><a href="http://dhavalshah.files.wordpress.com/2008/09/windowslivewritertexttospeechinc-f8a2image13.jpg"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="355" src="http://dhavalshah.files.wordpress.com/2008/09/windowslivewritertexttospeechinc-f8a2image1-thumb1.jpg?w=425&#038;h=355" width="425" border="0"></a> </p>
<p>2). After Adding Referece of Speech Object Library Drag one textbox control on your WinForm &amp; give the name <strong>txttexttospeech</strong>.</p>
<p>3). After that put this belowed code on your page load event of the form.</p>
<p>&nbsp;</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> SpVoice voice = <span style="color:#0000ff;">new</span> SpVoice();</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> voice.Voice = voice.GetVoices(<span style="color:#006080;">"Name=LH Michael"</span>, <span style="color:#006080;">"Language=409"</span>).Item(0);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> voice.Speak(txttexttospeech.Text, SpeechVoiceSpeakFlags.SVSFDefault);</pre>
</div>
</div>
</blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dhavalshah.wordpress.com/40/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dhavalshah.wordpress.com/40/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalshah.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalshah.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalshah.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalshah.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalshah.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalshah.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalshah.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalshah.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalshah.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalshah.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalshah.wordpress.com&blog=3135787&post=40&subd=dhavalshah&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dhavalshah.wordpress.com/2008/09/16/text-to-speech-in-c/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7736088ced6689762b229a14dbb0a4cd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalshah</media:title>
		</media:content>

		<media:content url="http://dhavalshah.files.wordpress.com/2008/09/windowslivewritertexttospeechinc-f8a2image1-thumb1.jpg" medium="image" />
	</item>
	</channel>
</rss>