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

<channel>
	<title>Jignesh Makwana</title>
	<atom:link href="http://jigsmacwana.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jigsmacwana.wordpress.com</link>
	<description>Jignesh Makwana&#039;s Blog</description>
	<lastBuildDate>Tue, 06 Apr 2010 12:23:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jigsmacwana.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/754ce7f390bee3d534fa57d091b7016d?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Jignesh Makwana</title>
		<link>http://jigsmacwana.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jigsmacwana.wordpress.com/osd.xml" title="Jignesh Makwana" />
	<atom:link rel='hub' href='http://jigsmacwana.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Implementing IE8 Compatibility</title>
		<link>http://jigsmacwana.wordpress.com/2010/04/06/implementing-ie8-compatibility/</link>
		<comments>http://jigsmacwana.wordpress.com/2010/04/06/implementing-ie8-compatibility/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 12:23:49 +0000</pubDate>
		<dc:creator>jigsmacwana</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://jigsmacwana.wordpress.com/?p=195</guid>
		<description><![CDATA[Windows Internet Explorer 8 introduces document compatibility modes that allow Web developers to tell the browser to render their pages in the same way as older versions would. The compatibility mode can be specified on a per-page or per-site basis. This document describes how to implement a very common document compatibility mode, EmulateIE7, supported by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=195&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Windows Internet Explorer 8 introduces document compatibility modes that allow Web developers to tell the browser to render their pages in the same way as older versions would. The compatibility mode can be specified on a per-page or per-site basis.</p>
<p>This document describes how to implement a very common document compatibility mode, EmulateIE7, supported by Windows Internet Explorer 8, on a per-site basis, using custom headers in Internet Information Services (IIS).</p>
<p>Specifying Custom HTTP Response Headers<br />
A document mode can be specified for your Web site by defining a custom header for the site using IIS Web server. To enable Microsoft IIS to define a custom HTTP response header that automatically renders all pages in EmulateIE7 mode, you can use the following web.config example.</p>
<p>XML<br />
&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;configuration&gt;<br />
&lt;system.webServer&gt;<br />
&lt;httpProtocol&gt;<br />
&lt;customHeaders&gt;<br />
&lt;clear /&gt;<br />
&lt;add name=&#8221;X-UA-Compatible&#8221; value=&#8221;IE=EmulateIE7&#8243; /&gt;<br />
&lt;/customHeaders&gt;<br />
&lt;/httpProtocol&gt;<br />
&lt;/system.webServer&gt;<br />
&lt;/configuration&gt;<br />
You can also configure IIS 7 on a Windows Server 2008-based computer to include a custom HTTP response header by following these steps:</p>
<p>Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.<br />
In the connections pane, expand the node for the server, and then expand .<br />
Click the Web site where you want to add the custom HTTP response header.<br />
In the Web site pane, double-click in the section.<br />
Under Actions, click Add.<br />
In the Name box, type X-UA-Compatible.<br />
In the Value box, type IE=EmulateIE7.<br />
Click OK.<br />
To configure IIS 6 and earlier versions to include a custom HTTP response header, follow these steps:</p>
<p>Click Start, click Run, type inetmgr.exe, and then click OK.<br />
Expand the server you want and then expand Web Sites.<br />
Right-click the Web site you want and then click Properties.<br />
Click the HTTP Headers tab.<br />
Under Custom HTTP headers, click Add.<br />
In the Custom header name box, type X-UA-Compatible.<br />
In the Custom header value box, type IE=EmulateIE7.<br />
Click OK two times.<br />
If you specify a default document compatibility mode using your Web server, you can override that setting by specifying a different document compatibility mode in a specific Web page. The mode specified within the Web page takes precedence over the mode specified by the server.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jigsmacwana.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jigsmacwana.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jigsmacwana.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jigsmacwana.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jigsmacwana.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jigsmacwana.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jigsmacwana.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jigsmacwana.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jigsmacwana.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jigsmacwana.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jigsmacwana.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jigsmacwana.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jigsmacwana.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jigsmacwana.wordpress.com/195/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=195&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jigsmacwana.wordpress.com/2010/04/06/implementing-ie8-compatibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c6470daa745a698c1ad5980175af4e66?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jigsmacwana</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Enable Silverlight Support on Windows 2003 Server</title>
		<link>http://jigsmacwana.wordpress.com/2010/02/19/how-to-enable-silverlight-support-on-windows-2003-server/</link>
		<comments>http://jigsmacwana.wordpress.com/2010/02/19/how-to-enable-silverlight-support-on-windows-2003-server/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 13:14:47 +0000</pubDate>
		<dc:creator>jigsmacwana</dc:creator>
				<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://jigsmacwana.wordpress.com/?p=184</guid>
		<description><![CDATA[How to Enable Silverlight on Windows 2003 Server Silverlight is a client side technology, which means nothing has to be installed on the Web Server, and it would work regardless of the type of Web Server in use. However, I ran into a small issue when trying to activate the first Silver Light enabled Website [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=184&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>How to Enable Silverlight on Windows 2003 Server</h1>
<p>Silverlight is a client side technology, which means nothing has to be installed on the Web Server, and it would work regardless of the type of Web Server in use. However, I ran into a small issue when trying to activate the first Silver Light enabled Website in our Hosting environment. The Server must have the MIME types specified for the following file types:</p>
<ul>
<li>.xaml      = application/xaml+xml</li>
<li>.xap =      application/x-silverlight-app</li>
</ul>
<p>Once you add these two MIME Types to the Server, Silverlight works just fine.</p>
<h2>Adding the MIME Types for Silverlight</h2>
<p>In case you need further help on how to add the MIME Types, Here is a screen shot that shows where in the IIS MMC Snap-in you can add them:</p>
<p><a href="http://jigsmacwana.files.wordpress.com/2010/02/image-axd.gif"><img class="size-full wp-image-185 alignleft" title="image.axd" src="http://jigsmacwana.files.wordpress.com/2010/02/image-axd.gif?w=460" alt=""   /></a></p>
<p>Since it is fairly straight forward, I hope no further explanation is necessary.</p>
<p>If you add the MIME Types to the root Website, all Websites will have Silverlight enabled right away.</p>
<p>The Screen shot is from Windows Server 2003.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jigsmacwana.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jigsmacwana.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jigsmacwana.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jigsmacwana.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jigsmacwana.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jigsmacwana.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jigsmacwana.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jigsmacwana.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jigsmacwana.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jigsmacwana.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jigsmacwana.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jigsmacwana.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jigsmacwana.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jigsmacwana.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=184&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jigsmacwana.wordpress.com/2010/02/19/how-to-enable-silverlight-support-on-windows-2003-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c6470daa745a698c1ad5980175af4e66?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jigsmacwana</media:title>
		</media:content>

		<media:content url="http://jigsmacwana.files.wordpress.com/2010/02/image-axd.gif" medium="image">
			<media:title type="html">image.axd</media:title>
		</media:content>
	</item>
		<item>
		<title>Find Stored Procedure With Text</title>
		<link>http://jigsmacwana.wordpress.com/2010/02/18/find-stored-procedure-with-text/</link>
		<comments>http://jigsmacwana.wordpress.com/2010/02/18/find-stored-procedure-with-text/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 11:41:23 +0000</pubDate>
		<dc:creator>jigsmacwana</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://jigsmacwana.wordpress.com/?p=182</guid>
		<description><![CDATA[&#8211;The following stored procedure &#8211;list all stored procedure names whose text contains the parameter search string. CREATE PROCEDURE Find_SPName_With_Text @StringToSearch VARCHAR(100) AS SET @StringToSearch = &#8216;%&#8217; + @StringToSearch + &#8216;%&#8217; SELECT DISTINCT SO.NAME FROM SYSOBJECTS SO (NOLOCK) WHERE SO.TYPE = &#8216;P&#8217; AND SO.NAME LIKE @StringToSearch ORDER BY SO.Name GO<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=182&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8211;The following stored procedure<br />
&#8211;list all stored procedure names whose text contains the parameter search string.</p>
<p>CREATE PROCEDURE Find_SPName_With_Text<br />
@StringToSearch VARCHAR(100)<br />
AS<br />
SET @StringToSearch = &#8216;%&#8217; + @StringToSearch + &#8216;%&#8217;<br />
SELECT DISTINCT SO.NAME<br />
FROM SYSOBJECTS SO (NOLOCK)<br />
WHERE SO.TYPE = &#8216;P&#8217;<br />
AND SO.NAME LIKE @StringToSearch<br />
ORDER BY SO.Name<br />
GO</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jigsmacwana.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jigsmacwana.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jigsmacwana.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jigsmacwana.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jigsmacwana.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jigsmacwana.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jigsmacwana.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jigsmacwana.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jigsmacwana.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jigsmacwana.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jigsmacwana.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jigsmacwana.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jigsmacwana.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jigsmacwana.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=182&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jigsmacwana.wordpress.com/2010/02/18/find-stored-procedure-with-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c6470daa745a698c1ad5980175af4e66?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jigsmacwana</media:title>
		</media:content>
	</item>
		<item>
		<title>Find Text In Stored Procedure</title>
		<link>http://jigsmacwana.wordpress.com/2010/02/18/find-text-in-stored-procedure/</link>
		<comments>http://jigsmacwana.wordpress.com/2010/02/18/find-text-in-stored-procedure/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 11:28:05 +0000</pubDate>
		<dc:creator>jigsmacwana</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://jigsmacwana.wordpress.com/?p=179</guid>
		<description><![CDATA[&#8211;The following stored procedure &#8211;list all stored procedure names whose text contains the parameter search string. CREATE PROCEDURE Find_Text_In_SP @StringToSearch VARCHAR(100) AS SET @StringToSearch = &#8216;%&#8217; +@StringToSearch + &#8216;%&#8217; SELECT DISTINCT SO.Name FROM sysobjects SO (NOLOCK) INNER JOIN syscomments SC (NOLOCK) on SO.Id = SC.ID AND SO.Type = &#8216;P&#8217; AND SC.Text LIKE @stringtosearch ORDER BY [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=179&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8211;The following stored procedure<br />
&#8211;list all stored procedure names whose text contains the parameter search string.</p>
<p>CREATE PROCEDURE Find_Text_In_SP<br />
@StringToSearch VARCHAR(100)<br />
AS<br />
SET @StringToSearch = &#8216;%&#8217; +@StringToSearch + &#8216;%&#8217;<br />
SELECT DISTINCT SO.Name<br />
FROM sysobjects SO (NOLOCK)<br />
INNER JOIN syscomments SC (NOLOCK) on SO.Id = SC.ID<br />
AND SO.Type = &#8216;P&#8217;<br />
AND SC.Text LIKE @stringtosearch<br />
ORDER BY SO.Name<br />
GO</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jigsmacwana.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jigsmacwana.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jigsmacwana.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jigsmacwana.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jigsmacwana.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jigsmacwana.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jigsmacwana.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jigsmacwana.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jigsmacwana.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jigsmacwana.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jigsmacwana.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jigsmacwana.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jigsmacwana.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jigsmacwana.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=179&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jigsmacwana.wordpress.com/2010/02/18/find-text-in-stored-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c6470daa745a698c1ad5980175af4e66?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jigsmacwana</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Route and Distance with bing Maps</title>
		<link>http://jigsmacwana.wordpress.com/2010/02/11/get-route-and-distance-with-bing-maps/</link>
		<comments>http://jigsmacwana.wordpress.com/2010/02/11/get-route-and-distance-with-bing-maps/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 11:23:20 +0000</pubDate>
		<dc:creator>jigsmacwana</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://jigsmacwana.wordpress.com/?p=174</guid>
		<description><![CDATA[&#60;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8220;&#62; &#60;html&#62; &#60;head&#62;     &#60;title&#62;&#60;/title&#62;     &#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243;&#62;     &#60;script type=&#8221;text/javascript&#8221; src=&#8221;http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&#8243;&#62;&#60;/script&#62;     &#60;script type=&#8221;text/javascript&#8221;&#62;         var map = null;         function GetMap() {             map = new VEMap(&#8216;myMap&#8217;);             map.LoadMap();             var options = new VERouteOptions();             options.RouteCallback = onGotRoute;             map.GetDirections(["Microsoft", "Everett WA", "Bellingham [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=174&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#8220;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;&lt;/title&gt;<br />
    &lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243;&gt;</p>
<p>    &lt;script type=&#8221;text/javascript&#8221; src=&#8221;<a href="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&quot;&gt;&lt;/script">http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&#8243;&gt;&lt;/script</a>&gt;</p>
<p>    &lt;script type=&#8221;text/javascript&#8221;&gt;<br />
        var map = null;<br />
        function GetMap() {<br />
            map = new VEMap(&#8216;myMap&#8217;);<br />
            map.LoadMap();<br />
            var options = new VERouteOptions();<br />
            options.RouteCallback = onGotRoute;<br />
            map.GetDirections(["Microsoft", "Everett WA", "Bellingham WA"], options);<br />
        }<br />
        function onGotRoute(route) {<br />
            // Unroll route          <br />
            var legs = route.RouteLegs;<br />
            var turns = &#8220;Total distance: &#8221; + route.Distance.toFixed(1) + &#8221; mi\n&#8221;;<br />
            var numTurns = 0; var leg = null;<br />
            // Get intermediate legs           <br />
            for (var i = 0; i &lt; legs.length; i++) {<br />
                // Get this leg so we don&#8217;t have to derefernce multiple times              <br />
                leg = legs[i];<br />
                // Leg is a VERouteLeg object                                <br />
                // Unroll each intermediate leg              <br />
                var turn = null;  // The itinerary leg                                <br />
                for (var j = 0; j &lt; leg.Itinerary.Items.length; j++) {<br />
                    turn = leg.Itinerary.Items[j];<br />
                    // turn is a VERouteItineraryItem object<br />
                    numTurns++;<br />
                    turns += numTurns + &#8220;.\t&#8221; + turn.Text + &#8221; (&#8221; + turn.Distance.toFixed(1) + &#8221; mi)\n&#8221;;<br />
                }<br />
            }<br />
            alert(turns);<br />
        }   <br />
    &lt;/script&gt;</p>
<p>&lt;/head&gt;<br />
&lt;body onload=&#8221;GetMap();&#8221;&gt;<br />
    &lt;div id=&#8217;myMap&#8217; style=&#8221;position: relative; width: 400px; height: 400px;&#8221;&gt;<br />
    &lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jigsmacwana.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jigsmacwana.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jigsmacwana.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jigsmacwana.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jigsmacwana.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jigsmacwana.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jigsmacwana.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jigsmacwana.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jigsmacwana.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jigsmacwana.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jigsmacwana.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jigsmacwana.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jigsmacwana.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jigsmacwana.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=174&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jigsmacwana.wordpress.com/2010/02/11/get-route-and-distance-with-bing-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c6470daa745a698c1ad5980175af4e66?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jigsmacwana</media:title>
		</media:content>
	</item>
		<item>
		<title>WPF Button Example</title>
		<link>http://jigsmacwana.wordpress.com/2010/02/09/wpf-button-example/</link>
		<comments>http://jigsmacwana.wordpress.com/2010/02/09/wpf-button-example/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 13:43:40 +0000</pubDate>
		<dc:creator>jigsmacwana</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://jigsmacwana.wordpress.com/?p=170</guid>
		<description><![CDATA[XAML &#60;Window x:Class=&#8221;Window1&#8243;     xmlns=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8220;     xmlns:x=&#8221;http://schemas.microsoft.com/winfx/2006/xaml&#8220;     Title=&#8221;Window1&#8243; Height=&#8221;368&#8243; Width=&#8221;322&#8243;&#62;     &#60;Grid&#62;         &#60;Button Height=&#8221;35&#8243; VerticalAlignment=&#8221;Top&#8221; Margin=&#8221;38,26,40,0&#8243; Click=&#8221;Button_Click&#8221;&#62;             This is simple button         &#60;/Button&#62;         &#60;Button Margin=&#8221;38,82,100,108&#8243; Click=&#8221;Button1_Click&#8221;&#62;             &#60;StackPanel&#62;                 &#60;Image Source=&#8221;Water lilies.jpg&#8221; Height=&#8221;73&#8243; Width=&#8221;97&#8243;&#62;&#60;/Image&#62;                 &#60;TextBlock FontWeight=&#8221;Bold&#8221; FontSize=&#8221;25&#8243;&#62;Hi&#60;/TextBlock&#62;             &#60;/StackPanel&#62;         &#60;/Button&#62;         &#60;Button Height=&#8221;61&#8243; VerticalAlignment=&#8221;Bottom&#8221; Margin=&#8221;38,0,65,22&#8243; Content=&#8221;Brush button&#8221;&#62;             &#60;Button.Background&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=170&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;"><strong>XAML</strong></p>
<p style="text-align:left;">&lt;Window x:Class=&#8221;Window1&#8243;<br />
    xmlns=&#8221;<a href="http://schemas.microsoft.com/winfx/2006/xaml/presentation">http://schemas.microsoft.com/winfx/2006/xaml/presentation</a>&#8220;<br />
    xmlns:x=&#8221;<a href="http://schemas.microsoft.com/winfx/2006/xaml">http://schemas.microsoft.com/winfx/2006/xaml</a>&#8220;<br />
    Title=&#8221;Window1&#8243; Height=&#8221;368&#8243; Width=&#8221;322&#8243;&gt;<br />
    &lt;Grid&gt;<br />
        &lt;Button Height=&#8221;35&#8243; VerticalAlignment=&#8221;Top&#8221; Margin=&#8221;38,26,40,0&#8243; Click=&#8221;Button_Click&#8221;&gt;<br />
            This is simple button<br />
        &lt;/Button&gt;<br />
        &lt;Button Margin=&#8221;38,82,100,108&#8243; Click=&#8221;Button1_Click&#8221;&gt;<br />
            &lt;StackPanel&gt;<br />
                &lt;Image Source=&#8221;Water lilies.jpg&#8221; Height=&#8221;73&#8243; Width=&#8221;97&#8243;&gt;&lt;/Image&gt;<br />
                &lt;TextBlock FontWeight=&#8221;Bold&#8221; FontSize=&#8221;25&#8243;&gt;Hi&lt;/TextBlock&gt;<br />
            &lt;/StackPanel&gt;<br />
        &lt;/Button&gt;<br />
        &lt;Button Height=&#8221;61&#8243; VerticalAlignment=&#8221;Bottom&#8221; Margin=&#8221;38,0,65,22&#8243; Content=&#8221;Brush button&#8221;&gt;<br />
            &lt;Button.Background&gt;<br />
                &lt;LinearGradientBrush EndPoint=&#8221;0.5,1&#8243; StartPoint=&#8221;0.5,0&#8243;&gt;<br />
                    &lt;GradientStop Color=&#8221;#FFFFFFFF&#8221; Offset=&#8221;1&#8243;/&gt;<br />
                    &lt;GradientStop Color=&#8221;#FFDB8120&#8243; Offset=&#8221;0.42&#8243;/&gt;<br />
                &lt;/LinearGradientBrush&gt;<br />
            &lt;/Button.Background&gt;<br />
        &lt;/Button&gt;<br />
    &lt;/Grid&gt;<br />
&lt;/Window&gt;</p>
<p style="text-align:left;"><strong>OUTPUT</strong></p>
<p style="text-align:left;"><strong><br />
</strong><a href="http://jigsmacwana.files.wordpress.com/2010/02/buttonstyle.jpg"><img class="size-full wp-image-171 alignleft" title="ButtonStyle" src="http://jigsmacwana.files.wordpress.com/2010/02/buttonstyle.jpg?w=460" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jigsmacwana.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jigsmacwana.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jigsmacwana.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jigsmacwana.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jigsmacwana.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jigsmacwana.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jigsmacwana.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jigsmacwana.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jigsmacwana.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jigsmacwana.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jigsmacwana.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jigsmacwana.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jigsmacwana.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jigsmacwana.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=170&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jigsmacwana.wordpress.com/2010/02/09/wpf-button-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c6470daa745a698c1ad5980175af4e66?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jigsmacwana</media:title>
		</media:content>

		<media:content url="http://jigsmacwana.files.wordpress.com/2010/02/buttonstyle.jpg" medium="image">
			<media:title type="html">ButtonStyle</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction to XAML</title>
		<link>http://jigsmacwana.wordpress.com/2010/02/04/introduction-to-xaml/</link>
		<comments>http://jigsmacwana.wordpress.com/2010/02/04/introduction-to-xaml/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 07:37:47 +0000</pubDate>
		<dc:creator>jigsmacwana</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://jigsmacwana.wordpress.com/?p=148</guid>
		<description><![CDATA[Introduction to XAML XAML stands for Extensible Application Markup Language. Its a simple language based on XML to create and initialize .NET objects with hierarchical relations. Altough it was originally invented for WPF it can by used to create any kind of object trees. Today XAML is used to create user interfaces in WPF, Silverlight, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=148&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h5><span style="color:#666699;">Introduction to XAML</span></h5>
<p>XAML stands for Extensible Application Markup Language. Its a simple language based on XML to create and initialize .NET objects with hierarchical relations. Altough it was originally invented for WPF it can by used to create any kind of object trees.</p>
<p>Today XAML is used to create user interfaces in WPF, Silverlight, declare workflows in WF and for electronic paper in the XPS standard.</p>
<p>All classes in WPF have parameterless constructors and make excessive usage of properties. That is done to make it perfectly fit for XML languages like XAML.</p>
<h3><span style="color:#666699;">Advantages of XAML</span></h3>
<p>All you can do in XAML can also be done in code. XAML ist just another way to create and initialize objects. You can use WPF without using XAML. It&#8217;s up to you if you want to declare it in XAML or write it in code. Declare your UI in XAML has some advantages:</p>
<ul>
<li>XAML code is short and clear to read</li>
<li>Separation of designer code and logic</li>
<li>Graphical design tools like Expression Blend require XAML as source.</li>
<li>The separation of XAML and UI logic allows it to clearly separate the roles of designer and developer.</li>
</ul>
<h3><span style="color:#666699;">XAML vs. Code</span></h3>
<p>As an example we build a simple StackPanel with a textblock and a button in XAML and compare it to the same code in C#.</p>
<p> &lt;StackPanel&gt;</p>
<p>    &lt;TextBlock Margin=&#8221;20&#8243;&gt;Welcome to the World of XAML&lt;/TextBlock&gt;</p>
<p>    &lt;Button Margin=&#8221;10&#8243; HorizontalAlignment=&#8221;Right&#8221;&gt;OK&lt;/Button&gt;</p>
<p>&lt;/StackPanel&gt;</p>
<p>The same expressed in C# will look like this:</p>
<p>// Create the StackPanel</p>
<p>StackPanel stackPanel = <a href="http://www.google.com/search?q=new+msdn.microsoft.com">new</a> StackPanel();</p>
<p>this.Content = stackPanel;</p>
<p>// Create the TextBlock</p>
<p>TextBlock textBlock = <a href="http://www.google.com/search?q=new+msdn.microsoft.com">new</a> TextBlock();</p>
<p>textBlock.Margin = <a href="http://www.google.com/search?q=new+msdn.microsoft.com">new</a> Thickness(10);</p>
<p>textBlock.Text = &#8220;Welcome to the World of XAML&#8221;;</p>
<p>stackPanel.Children.Add(textBlock);</p>
<p>// Create the Button</p>
<p>Button button = <a href="http://www.google.com/search?q=new+msdn.microsoft.com">new</a> Button();</p>
<p>button.Margin= <a href="http://www.google.com/search?q=new+msdn.microsoft.com">new</a> Thickness(20);</p>
<p>button.Content = &#8220;OK&#8221;;</p>
<p>stackPanel.Children.Add(button);</p>
<p>   As you can see is the XAML version much shorter and clearer to read. And that&#8217;s the power of XAMLs expressiveness.</p>
<h3><span style="color:#666699;">Properties as Elements</span></h3>
<p>Properties are normally written inline as known from XML</p>
<p>&lt;Button Content=&#8221;OK&#8221; /&gt;.</p>
<p>But what if we want to put a more complex object as content like an image that has properties itself or maybe a whole grid panel? To do that we can use the property element syntax. This allows us to extract the property as an own chlild element.</p>
<p>&lt;Button&gt; </p>
<p>&lt;Button.Content&gt;     </p>
<p>&lt;Image Source=&#8221;Images/OK.png&#8221; Width=&#8221;50&#8243; Height=&#8221;50&#8243; /&gt;  </p>
<p>&lt;/Button.Content&gt;</p>
<p>&lt;/Button&gt;</p>
<h3><span style="color:#666699;">Implicit Type conversion</span></h3>
<p>A very powerful construct of WPF are implicit type converters. They do their work silently in the background. When you declare a BorderBrush, the word &#8220;Blue&#8221; is only a string.</p>
<p>The implicit BrushConverter makes a System.Windows.Media.Brushes.Blue out of it. The same regards to the border thickness that is beeing converted implicit into a Thickness object. WPF includes a lot of type converters for built-in classes, but you can also write type converters for your own classses.</p>
<p>&lt;Border BorderBrush=&#8221;Blue&#8221; BorderThickness=&#8221;0,10&#8243;&gt; &lt;/Border&gt;</p>
<h3><span style="color:#666699;">Markup Extensions</span></h3>
<p>Markup extensions are dynamic placeholders for attribute values in XAML. They resolve the value of a property at runtime. Markup extensions are surrouded by curly braces (Example: Background=&#8221;{StaticResource NormalBackgroundBrush}&#8221;). WPF has some built-in markup extensions, but you can write your own, by deriving from MarkupExtension. These are the built-in markup extensions:</p>
<ul>
<li>Binding<br />
To bind the values of two properties together.</li>
<li>StaticResource<br />
One time lookup of a resource entry</li>
<li>DynamicResource<br />
Auto updating lookup of a resource entry</li>
<li>TemplateBinding<br />
To bind a property of a control template to a dependency property of the control</li>
<li>x:Static<br />
Resolve the value of a static property.</li>
<li>x:Null<br />
Return null</li>
</ul>
<p>The first identifier within a pair of curly braces is the name of the extension. All preciding identifiers are named parameters in the form of Property=Value. The following example shows a label whose Content is bound to the Text of the textbox. When you type a text into the text box, the text property changes and the binding markup extension automatically updates the content of the label.</p>
<p>&lt;TextBox x:Name=&#8221;textBox&#8221;/&gt;</p>
<p>&lt;Label Content=&#8221;{Binding Text, ElementName=textBox}&#8221;/&gt;</p>
<h3><span style="color:#666699;">Namespaces</span></h3>
<p>At the beginning of every XAML file you need to include two namespaces.<br />
The first is http://schemas.microsoft.com/winfx/2006/xaml/presentation. It is mapped to all wpf controls in System.Windows.Controls.<br />
The second is http://schemas.microsoft.com/winfx/2006/xaml it is mapped to System.Windows.Markup that defines the XAML keywords.<br />
The mapping between an XML namespace and a CLR namespace is done by the XmlnsDefinition attribute at assembly level. You can also directly include a CLR namespace in XAML by using the clr-namespace: prefix.</p>
<p>&lt;Window xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”         xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”&gt;<br />
&lt;/Window&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jigsmacwana.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jigsmacwana.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jigsmacwana.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jigsmacwana.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jigsmacwana.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jigsmacwana.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jigsmacwana.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jigsmacwana.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jigsmacwana.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jigsmacwana.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jigsmacwana.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jigsmacwana.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jigsmacwana.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jigsmacwana.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=148&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jigsmacwana.wordpress.com/2010/02/04/introduction-to-xaml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c6470daa745a698c1ad5980175af4e66?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jigsmacwana</media:title>
		</media:content>
	</item>
		<item>
		<title>How to find second highest salary?</title>
		<link>http://jigsmacwana.wordpress.com/2010/02/03/how-to-find-second-highest-salary/</link>
		<comments>http://jigsmacwana.wordpress.com/2010/02/03/how-to-find-second-highest-salary/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 12:42:46 +0000</pubDate>
		<dc:creator>jigsmacwana</dc:creator>
				<category><![CDATA[.Net Interview Questions]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Interview Questions]]></category>
		<category><![CDATA[Interview Question]]></category>

		<guid isPermaLink="false">http://jigsmacwana.wordpress.com/?p=142</guid>
		<description><![CDATA[This Script Creates employee table and finds second highest salary&#8230;&#8230;.. SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO &#8211; CREATE TABLE EMPLOYEE CREATE TABLE [dbo].[tbl_Employee](       [FirstName] [varchar](50) NOT NULL,       [LastName] [varchar](50) NOT NULL,       [Salary] [money] NOT NULL,       [EmpID] [varchar](10) NULL ) ON [PRIMARY] GO SET ANSI_PADDING OFF [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=142&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This Script Creates employee table and finds second highest salary&#8230;&#8230;..</p>
<p>SET ANSI_NULLS ON</p>
<p>GO</p>
<p>SET QUOTED_IDENTIFIER ON</p>
<p>GO</p>
<p>SET ANSI_PADDING ON</p>
<p>GO</p>
<p>&#8211; CREATE TABLE EMPLOYEE</p>
<p>CREATE TABLE [dbo].[tbl_Employee](</p>
<p>      [FirstName] [varchar](50) NOT NULL,</p>
<p>      [LastName] [varchar](50) NOT NULL,</p>
<p>      [Salary] [money] NOT NULL,</p>
<p>      [EmpID] [varchar](10) NULL</p>
<p>) ON [PRIMARY]</p>
<p>GO</p>
<p>SET ANSI_PADDING OFF</p>
<p>GO</p>
<p>&#8211; INSERT DATE INTO EMPLOYEE</p>
<p>INSERT [tbl_Employee](FirstName,LastName,Salary,EmpID) VALUES(&#8216;David&#8217;,'Lichtenstien&#8217;,convert(money,&#8217;17000.00&#8242;),&#8217;100&#8242;)</p>
<p>INSERT [tbl_Employee](FirstName,LastName,Salary,EmpID) VALUES(&#8216;Adam &#8216;,&#8217;Malley&#8217;,convert(money,&#8217;22000.00&#8242;),&#8217;101&#8242;)</p>
<p>INSERT [tbl_Employee](FirstName,LastName,Salary,EmpID) VALUES(&#8216;Raquel &#8216;,&#8217;Clementine&#8217;,convert(money,&#8217;25000.00&#8242;),&#8217;102&#8242;)</p>
<p>INSERT [tbl_Employee](FirstName,LastName,Salary,EmpID) VALUES(&#8216;Ian &#8216;,&#8217;Thomas&#8217;,convert(money,&#8217;35000.00&#8242;),&#8217;103&#8242;)</p>
<p>INSERT [tbl_Employee](FirstName,LastName,Salary,EmpID) VALUES(&#8216;Delilah &#8216;,&#8217;Swanson&#8217;,convert(money,&#8217;40000.00&#8242;),&#8217;104&#8242;)</p>
<p>INSERT [tbl_Employee](FirstName,LastName,Salary,EmpID) VALUES(&#8216;Maria&#8217;,'Sanchez&#8217;,convert(money,&#8217;17000.00&#8242;),&#8217;107&#8242;)</p>
<p>INSERT [tbl_Employee](FirstName,LastName,Salary,EmpID) VALUES(&#8216;Walk&#8217;,'In&#8217;,convert(money,&#8217;17000.00&#8242;),&#8217;108&#8242;)</p>
<p>&#8211; SELECT SECOND HIGHEST SALARY FIRST METHOD</p>
<p>SELECT MAX(Salary) FROM tbl_Employee</p>
<p>      WHERE salary NOT IN (SELECT MAX(Salary) FROM  tbl_Employee)</p>
<p>SELECT  FirstName,LastName,Salary FROM tbl_Employee</p>
<p>      WHERE salary = (SELECT MAX(Salary) FROM tbl_Employee</p>
<p>                                    WHERE Salary NOT IN (SELECT MAX(Salary) FROM  tbl_Employee))</p>
<p>&#8211; SELECT SECOND HIGHEST SALARY SECOND METHOD</p>
<p>SELECT MAX(Salary) FROM tbl_Employee</p>
<p>      WHERE Salary &lt; (SELECT MAX(Salary) FROM  tbl_Employee)</p>
<p>SELECT  FirstName,LastName,Salary FROM tbl_Employee</p>
<p>      WHERE Salary = (SELECT MAX(Salary) FROM tbl_Employee</p>
<p>                                    WHERE Salary &lt; (SELECT MAX(Salary) FROM  tbl_Employee))</p>
<p>Enjoy&#8230;&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jigsmacwana.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jigsmacwana.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jigsmacwana.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jigsmacwana.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jigsmacwana.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jigsmacwana.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jigsmacwana.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jigsmacwana.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jigsmacwana.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jigsmacwana.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jigsmacwana.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jigsmacwana.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jigsmacwana.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jigsmacwana.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=142&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jigsmacwana.wordpress.com/2010/02/03/how-to-find-second-highest-salary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c6470daa745a698c1ad5980175af4e66?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jigsmacwana</media:title>
		</media:content>
	</item>
		<item>
		<title>Insert Script Generator</title>
		<link>http://jigsmacwana.wordpress.com/2010/02/03/insert-script-generator/</link>
		<comments>http://jigsmacwana.wordpress.com/2010/02/03/insert-script-generator/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 07:24:54 +0000</pubDate>
		<dc:creator>jigsmacwana</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://jigsmacwana.wordpress.com/?p=135</guid>
		<description><![CDATA[This is simple script which generates Insert Script for the table you want. To Use it run this script in your database. SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS ON GO CREATE PROC MyInsertScriptGenerator (  @tableName varchar(100) ) AS &#8211;Declare a cursor to retrieve column specific information for the specified table DECLARE cursCol CURSOR FAST_FORWARD FOR [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=135&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is simple script which generates Insert Script for the table you want.</p>
<p>To Use it run this script in your database.</p>
<p>SET QUOTED_IDENTIFIER OFF<br />
GO<br />
SET ANSI_NULLS ON<br />
GO</p>
<p>CREATE PROC MyInsertScriptGenerator<br />
(<br />
 @tableName varchar(100)<br />
)<br />
AS</p>
<p>&#8211;Declare a cursor to retrieve column specific information for the specified table<br />
DECLARE cursCol CURSOR FAST_FORWARD FOR<br />
SELECT column_name,data_type FROM information_schema.columns WHERE table_name = @tableName<br />
OPEN cursCol<br />
DECLARE @string nvarchar(3000) &#8211;for storing the first half of INSERT statement<br />
DECLARE @stringData nvarchar(3000) &#8211;for storing the data (VALUES) related statement<br />
DECLARE @dataType nvarchar(1000) &#8211;data types returned for respective columns<br />
SET @string=&#8217;INSERT <a href="mailto:'+@tableName+'('">&#8216;+@tableName+&#8217;(&#8216;</a><br />
SET @stringData=&#8221;</p>
<p>DECLARE @colName nvarchar(50)</p>
<p>FETCH NEXT FROM cursCol INTO @colName,@dataType</p>
<p>IF @@fetch_status&lt;&gt;0<br />
 begin<br />
 print &#8216;Table <a href="mailto:'+@tableName+'">&#8216;+@tableName+&#8217;</a> not found, processing skipped.&#8217;<br />
 close curscol<br />
 deallocate curscol<br />
 return<br />
END</p>
<p>WHILE @@FETCH_STATUS=0<br />
BEGIN<br />
IF @dataType in (&#8216;varchar&#8217;,'char&#8217;,'nchar&#8217;,'nvarchar&#8217;)<br />
BEGIN<br />
 SET @stringData=@stringData+&#8221;&#8221;+&#8221;&#8217;+isnull(<a href="mailto:'''''+'''''+'+@colName+'+'''''+''''',''NULL'')+'',''+'">&#8221;&#8221;&#8217;+&#8221;&#8221;&#8217;+'+@colName+&#8217;+&#8221;&#8221;&#8217;+&#8221;&#8221;&#8217;,&#8221;NULL&#8221;)+&#8221;,&#8221;+&#8217;</a><br />
END<br />
ELSE<br />
if @dataType in (&#8216;text&#8217;,'ntext&#8217;) &#8211;if the datatype is text or something else<br />
BEGIN<br />
 SET @stringData=@stringData+&#8221;&#8221;&#8221;&#8221;&#8217;+isnull(cast(<a href="mailto:'+@colName+'">&#8216;+@colName+&#8217;</a> as varchar(2000)),&#8221;&#8221;)+&#8221;&#8221;&#8221;,&#8221;+&#8217;<br />
END<br />
ELSE<br />
IF @dataType = &#8216;money&#8217; &#8211;because money doesn&#8217;t get converted from varchar implicitly<br />
BEGIN<br />
 SET @stringData=@stringData+&#8221;&#8217;convert(money,&#8221;&#8221;&#8221;+isnull(cast(<a href="mailto:'+@colName+'">&#8216;+@colName+&#8217;</a> as varchar(200)),&#8221;0.0000&#8221;)+&#8221;&#8221;&#8221;),&#8221;+&#8217;<br />
END<br />
ELSE<br />
IF @dataType=&#8217;datetime&#8217;<br />
BEGIN<br />
 SET @stringData=@stringData+&#8221;&#8217;convert(datetime,&#8217;+&#8221;&#8217;+isnull(&#8221;&#8221;&#8217;+&#8221;&#8221;&#8217;+convert(varchar(200),&#8217;+@colName+&#8217;,121)+&#8221;&#8221;&#8217;+&#8221;&#8221;&#8217;,&#8221;NULL&#8221;)+&#8221;,121),&#8221;+&#8217;<br />
END<br />
ELSE<br />
IF @dataType=&#8217;image&#8217;<br />
BEGIN<br />
 SET @stringData=@stringData+&#8221;&#8221;&#8221;&#8221;&#8217;+isnull(cast(convert(varbinary,&#8217;+@colName+&#8217;) as varchar(6)),&#8221;0&#8221;)+&#8221;&#8221;&#8221;,&#8221;+&#8217;<br />
END<br />
ELSE &#8211;presuming the data type is int,bit,numeric,decimal<br />
BEGIN<br />
 SET @stringData=@stringData+&#8221;&#8221;+&#8221;&#8217;+isnull(&#8221;&#8221;&#8217;+&#8221;&#8221;&#8217;+convert(varchar(200),&#8217;+@colName+&#8217;)+&#8221;&#8221;&#8217;+&#8221;&#8221;&#8217;,&#8221;NULL&#8221;)+&#8221;,&#8221;+&#8217;<br />
END</p>
<p>SET @string=@string+@colName+&#8217;,&#8217;</p>
<p>FETCH NEXT FROM cursCol INTO @colName,@dataType<br />
END<br />
DECLARE @Query nvarchar(4000)</p>
<p>SET @query =&#8217;SELECT &#8221;&#8217;+substring(@string,0,len(@string)) + &#8216;) VALUES(&#8221;+ &#8216; + substring(@stringData,0,len(@stringData)-2)+&#8221;&#8217;+&#8221;)&#8221; FROM <a href="mailto:'+@tableName">&#8216;+@tableName</a><br />
exec sp_executesql @query<br />
&#8211;select @query</p>
<p>CLOSE cursCol<br />
DEALLOCATE cursCol</p>
<p>GO<br />
SET QUOTED_IDENTIFIER OFF<br />
GO<br />
SET ANSI_NULLS ON<br />
GO</p>
<p>To Generate the insert script for your table you need to specify the table name.</p>
<p>here employee is your sql table</p>
<p>e.g  <span style="font-size:x-small;">MyInsertScriptGenerator </span><span style="font-size:x-small;color:#ff0000;">&#8216;employee&#8217;</span></p>
<p><span style="font-size:x-small;color:#ff0000;">Enjoy&#8230;.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jigsmacwana.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jigsmacwana.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jigsmacwana.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jigsmacwana.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jigsmacwana.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jigsmacwana.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jigsmacwana.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jigsmacwana.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jigsmacwana.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jigsmacwana.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jigsmacwana.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jigsmacwana.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jigsmacwana.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jigsmacwana.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=135&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jigsmacwana.wordpress.com/2010/02/03/insert-script-generator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c6470daa745a698c1ad5980175af4e66?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jigsmacwana</media:title>
		</media:content>
	</item>
		<item>
		<title>WPF Architecture</title>
		<link>http://jigsmacwana.wordpress.com/2010/02/02/wpf-architecture-2/</link>
		<comments>http://jigsmacwana.wordpress.com/2010/02/02/wpf-architecture-2/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 09:21:07 +0000</pubDate>
		<dc:creator>jigsmacwana</dc:creator>
				<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Wpf Interview Questions]]></category>

		<guid isPermaLink="false">http://jigsmacwana.wordpress.com/?p=131</guid>
		<description><![CDATA[WPF Architecture Presentation Framework, including large number of standard controls i.e. Button, Label, Menu, panels, and other types of controls. The vast majority of Windows Presentation Foundation developers will work exclusively with this layer. PresentationCore.dll includes base types, such as UIElement and Visual, from which all shapes and controls derive. WindowsBase.dll includes even more basic [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=131&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>WPF Architecture</strong></p>
<p><a href="http://jigsmacwana.files.wordpress.com/2010/02/wpf-architecture.jpg"><img class="size-full wp-image-153 alignleft" title="WPF Architecture" src="http://jigsmacwana.files.wordpress.com/2010/02/wpf-architecture.jpg?w=460" alt=""   /></a></p>
<p><strong>Presentation Framework</strong>, including large number of standard controls i.e. Button, Label, Menu, panels, and other types of controls. The vast majority of Windows Presentation Foundation developers will work exclusively with this layer.</p>
<p><strong>PresentationCore.dll </strong>includes base types, such as UIElement and Visual, from which all shapes and controls derive.</p>
<p><strong>WindowsBase.dll </strong>includes even more basic things that have the potential to be reused outside of WPF, such as DispatcherObject and DependencyObject,</p>
<p><strong>Milcore.dll </strong>is the core of the WPF rendering system and the foundation of the Media Integration Layer (MIL). Its composition engine translates visual elements into the triangle and textures that Direct3D expects. Though milcore.dll is considered a part of WPF, it’s also an essential system component for Windows Vista. The Desktop Window Manager (DWM) in Windows Vista uses milcore.dll to render the desktop.</p>
<p><strong>WindowsCodecs.dll </strong>is a low-level API that provides imaging support (e.g., processing, displaying, and scaling bitmaps and JPEGs).</p>
<p><strong>Direct3D </strong>is the low-level API through which all the graphics in a WPF are rendered.</p>
<p><strong>User32 </strong>is used to determine what program gets what real estate. As a result, it’s still involved in WPF, but it plays no part in rendering common controls.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jigsmacwana.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jigsmacwana.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jigsmacwana.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jigsmacwana.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jigsmacwana.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jigsmacwana.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jigsmacwana.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jigsmacwana.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jigsmacwana.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jigsmacwana.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jigsmacwana.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jigsmacwana.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jigsmacwana.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jigsmacwana.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jigsmacwana.wordpress.com&amp;blog=8296210&amp;post=131&amp;subd=jigsmacwana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jigsmacwana.wordpress.com/2010/02/02/wpf-architecture-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c6470daa745a698c1ad5980175af4e66?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jigsmacwana</media:title>
		</media:content>

		<media:content url="http://jigsmacwana.files.wordpress.com/2010/02/wpf-architecture.jpg" medium="image">
			<media:title type="html">WPF Architecture</media:title>
		</media:content>
	</item>
	</channel>
</rss>
