<?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>PROGRAMMER DESK</title>
	<atom:link href="http://vinayhatwal.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinayhatwal.wordpress.com</link>
	<description>Accept Changes To Develop Good Solutions</description>
	<lastBuildDate>Sun, 16 Oct 2011 12:53:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vinayhatwal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>PROGRAMMER DESK</title>
		<link>http://vinayhatwal.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vinayhatwal.wordpress.com/osd.xml" title="PROGRAMMER DESK" />
	<atom:link rel='hub' href='http://vinayhatwal.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Top Ten vinayhatwal Websites</title>
		<link>http://vinayhatwal.wordpress.com/2009/08/02/top-ten-vinayhatwal-websites/</link>
		<comments>http://vinayhatwal.wordpress.com/2009/08/02/top-ten-vinayhatwal-websites/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 10:34:20 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=164</guid>
		<description><![CDATA[Top Ten vinayhatwal Websites Posted in Uncategorized<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=164&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.irazoo.com/InterestingTopics/vinayhatwal.aspx">Top Ten vinayhatwal Websites</a></p>
<br />Posted in Uncategorized  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayhatwal.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayhatwal.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayhatwal.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayhatwal.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=164&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2009/08/02/top-ten-vinayhatwal-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>
	</item>
		<item>
		<title>.Net Coding Standards</title>
		<link>http://vinayhatwal.wordpress.com/2009/07/27/net-coding-standards/</link>
		<comments>http://vinayhatwal.wordpress.com/2009/07/27/net-coding-standards/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 18:17:04 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[.Net Coding Standards]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Coding Standards]]></category>
		<category><![CDATA[Hatwal]]></category>
		<category><![CDATA[Vinay]]></category>
		<category><![CDATA[Vinayhatwal]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=160</guid>
		<description><![CDATA[.Net Coding Standards  Written by – Vinay Hatwal  28-Jul-2009           Code, anybody can write. By having only few months of programming study or experience, anybody can write a “working application”, but writing a good code is like a passion. By writing a working code you can develop an application but as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=160&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p align="center"><strong>.Net Coding Standards</strong><strong> </strong></p>
<p align="center">Written by – Vinay Hatwal </p>
<p align="center">28-Jul-2009</p>
<p align="center"> </p>
<p align="center"> </p>
<p> </p>
<p> </p>
<p> </p>
<p>Code, anybody can write. By having only few months of programming study or experience, anybody can write a “working application”, but writing a good code is like a passion. By writing a working code you can develop an application but as soon as it will become larger, even you will not be able to understand it. Even when u will want to add some new functionality or you will want to modify your application, you will face a lot of problems.</p>
<p> </p>
<p>So do not just write Working Applications, always write Good Code for your application so that u can make it programmer friendly.</p>
<p> </p>
<p>Writing a good code should be included in your good habits, in your hobbies, so that your application should be highly manageable. For this purpose you have to follow some standards regarding writing code for you application not only in .Net but also in other programming languages.</p>
<p> </p>
<p>After a lot of study and a lot of analysis on the Coding Standards, I am summarizing these coding standards in my article.</p>
<p> </p>
<p><strong>1)      </strong><strong>Naming Conventions</strong></p>
<p> </p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="160" valign="top"><strong>Object</strong></td>
<td width="160" valign="top"><strong>Notation</strong></td>
<td width="160" valign="top"><strong>Good</strong></td>
<td width="160" valign="top"><strong>Bad</strong></td>
</tr>
<tr>
<td width="160" valign="top">Class,</p>
<p>Structure,</p>
<p>Method, </p>
<p>Property</p>
<p>Enumeration,</p>
<p>Namespaces,</p>
<p>Delegates</p>
<p> </td>
<td width="160" valign="top">Pascal Casing</td>
<td width="160" valign="top">EmployeeMaster,</p>
<p>StudentMaster</td>
<td width="160" valign="top">employeeMaster, EMPLOYEEMASTER,</p>
<p>employee_master</td>
</tr>
<tr>
<td width="160" valign="top">Interface</td>
<td width="160" valign="top">Pascal Casing but start with I</td>
<td width="160" valign="top">IUnknown</td>
<td width="160" valign="top">iUnknown ,</p>
<p>iunknown,</p>
<p>IUNKNOWN</td>
</tr>
<tr>
<td width="160" valign="top">Variables</p>
<p>Objects</p>
<p>Method Parameters</td>
<td width="160" valign="top">Camel Casing</td>
<td width="160" valign="top">userName</p>
<p>userId</p>
<p>userAge</td>
<td width="160" valign="top">Userid</p>
<p>User_Id</p>
<p>USERID</p>
<p>UserId</td>
</tr>
<tr>
<td width="160" valign="top">Class level variables</td>
<td width="160" valign="top">Camel Casing starting with a underscore</td>
<td width="160" valign="top">_userName</p>
<p>_userId</td>
<td width="160" valign="top">Userid</p>
<p>User_Id</p>
<p>USERID</p>
<p>UserId</p>
<p>userId</td>
</tr>
<tr>
<td width="160" valign="top">Constants</td>
<td width="160" valign="top">All Caps with underscore</td>
<td width="160" valign="top">CONS_SUPERUSER</td>
<td width="160" valign="top">Cons_superuser</p>
<p>consSuperuser</td>
</tr>
</tbody>
</table>
<p> </p>
<p><strong>2)      </strong><strong>Variable Naming Conventions</strong></p>
<ul>
<li>Do not use Hungarian Notation with the variable names because they will become more complex to understand with it. Like –</li>
</ul>
<p> </p>
<p><strong>Dim m_strRefUserName as String </strong></p>
<p> </p>
<p>It shows module level string variable with reference for holding Username. Now think lot of variable declaration in your project. Don’t you think these will create a lot of confusion?</p>
<p> </p>
<ul>
<li>Do not use underscore (_) with local variables.</li>
</ul>
<p> </p>
<ul>
<li>Do not use single character variable name like I, j, k. Instead use meaning full variable names like Index, Counter.</li>
</ul>
<p> </p>
<ul>
<li>Do not use abbreviation with the variable names. Like instead of writing</li>
</ul>
<p> </p>
<p><strong>Dim add as string </strong></p>
<p> </p>
<p>Use</p>
<p> </p>
<p><strong>Dim address as string</strong></p>
<p> </p>
<p> </p>
<ul>
<li>Never use reserved keywords for variable names.</li>
</ul>
<p> </p>
<p><strong>3)      </strong><strong>Good Programming Practice</strong></p>
<p><strong> </strong></p>
<ul>
<li>Do not hardcode numbers. Instead use XML Serialization Classes to provide the common setting for your Software. So that you would be able to change these values without making changes in the code.</li>
</ul>
<p> </p>
<ul>
<li>Never hardcode the Strings, Images and Icons. Always use resource file.</li>
</ul>
<p> </p>
<ul>
<li>Always use is as prefixing Boolean return type methods –</li>
</ul>
<p> </p>
<p><strong>Private Function IsListEmpty() as Boolean</strong></p>
<p><strong> </strong></p>
<p><strong>End Sub</strong></p>
<p> </p>
<ul>
<li>Use String.Empty() instead of using “” for the empty string.</li>
</ul>
<p> </p>
<ul>
<li>Try to use less class level variables. Instead use local variable. Because you can’t be sure which method is responsible for changing its value.</li>
</ul>
<p> </p>
<ul>
<li>Do not use String for Discrete Values. Instead use Enums.</li>
</ul>
<p> </p>
<ul>
<li> 
<ul>
<li>Never hardcode a path or drive name in code. Get the application path programmatically and use relative path.</li>
</ul>
</li>
</ul>
<ul>
<li> Error messages should help the user to solve the problem. Never give error messages like &#8220;Error in Application&#8221;, &#8220;There is an error&#8221; etc. Instead give specific messages like &#8220;Failed to update database. Please make sure the login id and password are correct.&#8221;</li>
</ul>
<p> </p>
<ul>
<li>Do not have more than one class in a single file.</li>
</ul>
<p> </p>
<ul>
<li>Use the AssemblyInfo file to fill information like version number, description, company name, copyright notice etc.</li>
</ul>
<p> </p>
<p> </p>
<ul>
<li>Logically organize all your files within appropriate folders. Use 2 level folder hierarchies. You can have up to 10 folders in the root folder and each folder can have up to 5 sub folders. If you have too many folders than cannot be accommodated with the above mentioned 2 level hierarchy, you may need re factoring into multiple assemblies</li>
</ul>
<p> </p>
<ul>
<li>If you are opening database connections, sockets, file stream etc, always close them in the finally block. This will ensure that even if an exception occurs after opening the connection, it will be safely closed in the finally block</li>
</ul>
<p> </p>
<ul>
<li>Always create the Log for your application. So that you can easily investigate where is the problem in your application. Even u can log for many of the information like</li>
</ul>
<p> </p>
<ul>
<li>Error Messages</li>
<li>Incomming Data</li>
<li>Outgoing Data</li>
<li>Warning Messages</li>
<li>Results</li>
<li>Normal Messages</li>
<li>DateTime</li>
<li>Etc</li>
</ul>
<p> </p>
<ul>
<li>Always mark your name, date of creation, and main use at the top of the module. And make a revision history with the same information whenever the changes are required.</li>
</ul>
<p> </p>
<p> </p>
<ul>
<li>Always write default values of the Setting with the constants.</li>
</ul>
<p> </p>
<ul>
<li>Do not code like a structure programming. Always use OOPs with .net.</li>
</ul>
<p> </p>
<p> </p>
<p><strong>4)      </strong><strong>Architecture</strong></p>
<p><strong> </strong></p>
<ul>
<li>Always use multi layer (N-Tier) architecture.</li>
</ul>
<p> </p>
<ul>
<li>Never access database from the UI pages. Always have a data layer class which performs all the database related tasks. This will help you support or migrate to another database back end easily.</li>
</ul>
<p> </p>
<p> </p>
<ul>
<li>Separate your application into multiple assemblies. Group all independent utility classes into a separate class library. All your database related files can be in another class library.</li>
</ul>
<p> </p>
<p><strong>5)      </strong><strong>Comments</strong></p>
<p><strong> </strong></p>
<ul>
<li>Do not write comments for every line of code and every variable declared.</li>
</ul>
<p> </p>
<ul>
<li>Write comments wherever required. But good readable code will require very less comments. If all variables and method names are meaningful, that would make the code very readable and will not need many comments</li>
</ul>
<p> </p>
<ul>
<li>Always write XML Comments to describe the functionality of a class and Methods. They will help you and others to understand the functionality of the Method at the time you r using them.</li>
</ul>
<p> </p>
<p> </p>
<p><strong>Resources</strong></p>
<p> </p>
<p><a href="http://www.dotnetspider.com/tutorials/BestPractices.aspx">www.dotnetspider.com/tutorials/BestPractices.aspx</a><em></em></p>
<p><a href="http://www.irritatedvowel.com/Programming/Standards.aspx">http://www.irritatedvowel.com/Programming/Standards.aspx</a></p>
<br />Posted in .Net Coding Standards Tagged: .Net Coding Standards, Best Practices, Coding Standards, Hatwal, Vinay, Vinayhatwal <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayhatwal.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayhatwal.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayhatwal.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayhatwal.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=160&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2009/07/27/net-coding-standards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>
	</item>
		<item>
		<title>Embed Google Search in Your Custom Applications</title>
		<link>http://vinayhatwal.wordpress.com/2009/07/03/embed-google-search-in-your-custom-applications/</link>
		<comments>http://vinayhatwal.wordpress.com/2009/07/03/embed-google-search-in-your-custom-applications/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 05:36:05 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[Embed Google Search in Your Custom]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google APIs]]></category>
		<category><![CDATA[Google Search]]></category>
		<category><![CDATA[Vinayhatwal]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=153</guid>
		<description><![CDATA[Embed Google Search in Your Custom Applications Written by – Vinay Hatwal Dt. 03-Jul-2009   Dear all, This time I came with the topic “Embed Google Search in Your Custom Applications”. With this we can embed Google search in our application. First of all I will discuss the tools which you need to install on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=153&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p align="center"><strong>Embed Google Search in Your Custom Applications</strong></p>
<p align="center">Written by – Vinay Hatwal</p>
<p align="center">Dt. 03-Jul-2009</p>
<p align="center"> </p>
<p>Dear all,</p>
<p>This time I came with the topic “Embed Google Search in Your Custom Applications”. With this we can embed Google search in our application. First of all I will discuss the tools which you need to install on your PC to use the Google Search</p>
<p> </p>
<ul>
<li>.Net Framework 3.5</li>
<li>Google Search API for .NET 0.2  (<a href="http://google-api-for-dotnet.googlecode.com/files/GoogleSearchAPI_0.2.zip">GoogleSearchAPI_0.2.zip</a>)</li>
<li>GoogleSearchAPI_0.2.zip</li>
<li>GoogleSearchAPI.dll</li>
</ul>
<p> </p>
<p> </p>
<p><strong><span style="text-decoration:underline;">Steps to do</span></strong></p>
<p> </p>
<p><strong>1)      Create a new project with vb.Net 2.0 or 3.5.(Windows Application)</strong></p>
<p><strong>2)      Add Reference of GoogleSearchAPI.dll</strong></p>
<p><strong>3)      Add following controls</strong></p>
<ol>
<li>RichTextBox  &#8211; RichTextBox1</li>
<li>Label- Label1</li>
<li>TextBox- TextBox1         </li>
<li>Button- Button1</li>
</ol>
<p><strong>4)      Your Interface will look like</strong></p>
<p><img class="aligncenter size-full wp-image-154" title="inter1" src="http://vinayhatwal.files.wordpress.com/2009/07/inter1.jpg?w=490&#038;h=261" alt="inter1" width="490" height="261" /></p>
<p> </p>
<p><strong>5)      Add the following coding in your Form1.cs file</strong></p>
<p> </p>
<p> </p>
<p> </p>
<p>Public Class Form1</p>
<p>    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click</p>
<p>        &#8216;Declaring Generic IList for IWebResult Interface</p>
<p>        &#8216;You can use -</p>
<p>        &#8217;1) IWebResult</p>
<p>        &#8217;2) IVideoResult</p>
<p>        &#8217;3) INewsResult</p>
<p>        &#8217;4) INewsResult</p>
<p>        &#8217;5) IImageResult</p>
<p>        &#8216; AND MORE</p>
<p>        Dim results As IList(Of Google.API.Search.IWebResult)</p>
<p> </p>
<p>        &#8216;Taking result</p>
<p>        &#8216;calling of Google.API.Search.GwebSearcher.Search(search text, Number of search result would be returned at a time)</p>
<p>        results = Google.API.Search.GwebSearcher.Search(TextBox1.Text, 10)</p>
<p>        Dim str As String = &#8220;&#8221;</p>
<p>        RichTextBox1.Text = &#8220;&#8221;</p>
<p>        For Each r As Google.API.Search.IWebResult In results</p>
<p>            &#8216;Fetching Title</p>
<p>            str = str &amp; &#8220;Title :&#8221; &amp; r.Title &amp; vbCrLf</p>
<p>            &#8216;Fetching URL</p>
<p>            str = str &amp; &#8220;URL :&#8221; &amp; r.Url &amp; vbCrLf</p>
<p>            &#8216;Fetching VisibleUrl</p>
<p>            str = str &amp; &#8220;VisibleUrl :&#8221; &amp; r.VisibleUrl &amp; vbCrLf</p>
<p>            &#8216;Fetching Content</p>
<p>            str = str &amp; &#8220;Content :&#8221; &amp; r.Content &amp; vbCrLf</p>
<p>            str = str &amp; &#8220;=========================================================================================&#8221; &amp; vbCrLf</p>
<p>        Next</p>
<p>        RichTextBox1.Text = str</p>
<p>    End Sub</p>
<p>End Class</p>
<p> </p>
<p> </p>
<p><strong>6)      Now Enter the text to search on text box and click on Go. The result will look like –</strong></p>
<p><img class="aligncenter size-full wp-image-155" title="Search Result" src="http://vinayhatwal.files.wordpress.com/2009/07/inter2.jpg?w=854&#038;h=438" alt="Search Result" width="854" height="438" /></p>
<br />Posted in Embed Google Search in Your Custom Tagged: Google, Google APIs, Google Search, Vinayhatwal <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayhatwal.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayhatwal.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=153&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2009/07/03/embed-google-search-in-your-custom-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/07/inter1.jpg" medium="image">
			<media:title type="html">inter1</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/07/inter2.jpg" medium="image">
			<media:title type="html">Search Result</media:title>
		</media:content>
	</item>
		<item>
		<title>Inheritance</title>
		<link>http://vinayhatwal.wordpress.com/2009/06/16/inheritance/</link>
		<comments>http://vinayhatwal.wordpress.com/2009/06/16/inheritance/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 08:48:51 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[Inheritance]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[abstract]]></category>
		<category><![CDATA[Access Specifires]]></category>
		<category><![CDATA[MustInherit]]></category>
		<category><![CDATA[MustOverride]]></category>
		<category><![CDATA[New]]></category>
		<category><![CDATA[NonInheritable]]></category>
		<category><![CDATA[OPPS]]></category>
		<category><![CDATA[Overridable]]></category>
		<category><![CDATA[override]]></category>
		<category><![CDATA[Overrides]]></category>
		<category><![CDATA[sealed]]></category>
		<category><![CDATA[Shadows]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=143</guid>
		<description><![CDATA[Inheritance Written by – Vinay Hatwal Dt. 16-Jun-2009                                                                                 Inheritance is the OOPs concept in which new classes form from the existing classes i.e. using the class functionality in the new classes. Inheritance was first introduced in 1967 for Simula, a language which was used for simulation so the name is Simula. Inheritance is intended [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=143&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p align="center">Inheritance</p>
<p align="center">Written by – Vinay Hatwal</p>
<p align="center">Dt. 16-Jun-2009</p>
<p>                                                                               </p>
<p>Inheritance is the OOPs concept in which new classes form from the existing classes i.e. using the class functionality in the new classes. Inheritance was first introduced in 1967 for <a title="Simula" href="http://en.wikipedia.org/wiki/Simula">Simula</a>, a language which was used for simulation so the name is Simula.</p>
<p>Inheritance is intended to help <a title="Reusability" href="http://en.wikipedia.org/wiki/Reusability">reuse</a> existing code with little or no modification. Inheritance is also sometimes called generalization, because the <a title="Is-a" href="http://en.wikipedia.org/wiki/Is-a">is-a</a> relationships represent a hierarchy between classes of objects.</p>
<p>For Example, A “vehicle” is the generalization of “Car”, “Scooter”, “Bus” etc and the “Car”, “Scooter”, ”Bus” are the specialization of the “Vehicle”. Because the “Car” is a Vehicle so “Car” naturally inherits properties common to the entire vehicle like Color, No of Wheels, and EnginPower etc.</p>
<p>Following example show the inheritance in action. Shape is the Base Class and Square , Rectangle amd Circle are the classes derived from Shape Class and inherits all the functionality of the Shape class the shows the specialisation of the Shape Class.</p>
<div id="attachment_144" class="wp-caption aligncenter" style="width: 494px"><img class="size-full wp-image-144" title="in" src="http://vinayhatwal.files.wordpress.com/2009/06/in.jpg?w=484&#038;h=466" alt="Inheritance" width="484" height="466" /><p class="wp-caption-text">Inheritance</p></div>
<p><strong><span style="text-decoration:underline;">Inheritance in Action</span></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><strong>VB.NET</strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Public Class BaseClass</p>
<p> </p>
<p>End Class</p>
<p> </p>
<p> </p>
<p>Public Class DerivedClass</p>
<p>    Inherits BaseClass</p>
<p> </p>
<p>End Class</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><strong>C#.NET</strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>public class BaseClass</p>
<p>{</p>
<p>}</p>
<p> </p>
<p>public class DerivedClass : BaseClass</p>
<p>{</p>
<p>}</p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><span style="text-decoration:underline;"> </span></p>
<p><span style="text-decoration:underline;"> </span></p>
<p><span style="text-decoration:underline;"> </span></p>
<p>Above DerivedClass Will contain all the inheritable funtionality of the BaseClass. Inheritane can be used in</p>
<p><strong> </strong></p>
<p><strong>VB.NET – Inherits</strong></p>
<p><strong>C#.NET &#8211; :</strong></p>
<p> </p>
<p><span style="text-decoration:underline;"> </span></p>
<p><span style="text-decoration:underline;"> </span></p>
<p><span style="text-decoration:underline;">Access Specifires</span></p>
<p> </p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="227" valign="top"><strong>Functionality</strong></td>
<td width="175" valign="top"><strong>VB.NET</strong></td>
<td width="157" valign="top"><strong>C#.NET</strong></td>
</tr>
<tr>
<td width="227" valign="top">Gives variable public access which means that there is no restriction on their accessibility</td>
<td width="175" valign="top">Public</td>
<td width="157" valign="top">public</td>
</tr>
<tr>
<td width="227" valign="top">Gives variable private access which means that they are accessible only within their declaration content</td>
<td width="175" valign="top">Private</td>
<td width="157" valign="top">private</td>
</tr>
<tr>
<td width="227" valign="top">Protected access gives a variable accessibility within their own class or a class derived from that class</td>
<td width="175" valign="top">Protected</td>
<td width="157" valign="top">protected</td>
</tr>
<tr>
<td width="227" valign="top">Gives variable friend access which means that they are accessible within the program that contains their declaration</td>
<td width="175" valign="top">Friend</td>
<td width="157" valign="top">internal</td>
</tr>
<tr>
<td width="227" valign="top">Gives a variable both protected and friend access</td>
<td width="175" valign="top">Protected Friend</td>
<td width="157" valign="top">protected internal</td>
</tr>
<tr>
<td width="227" valign="top">Makes a variable static which means that the variable will hold the value even the procedure in which they are declared ends</td>
<td width="175" valign="top">Static</td>
<td width="157" valign="top">static</td>
</tr>
<tr>
<td width="227" valign="top">Declares a variable that can be shared across many instances and which is not associated with a specific instance of a class or structure</td>
<td width="175" valign="top">Shared</td>
<td width="157" valign="top">static</td>
</tr>
<tr>
<td width="227" valign="top">Makes a variable only to be read and cannot be written</td>
<td width="175" valign="top">ReadOnly</td>
<td width="157" valign="top">-</td>
</tr>
</tbody>
</table>
<p> </p>
<p> </p>
<p><strong>Keywords used in Inheritance in VB.NET/C#</strong></p>
<p><strong> </strong></p>
<p><strong>1)      </strong><strong>MustInherit, MustOverride /abstract</strong></p>
<p><strong>2)      </strong><strong>Overridable/virtual</strong></p>
<p><strong>3)      </strong><strong>Overrides/override</strong></p>
<p><strong>4)      </strong><strong>NonInheritable/sealed</strong></p>
<p><strong>5)      </strong><strong>Shadows/New</strong></p>
<p> </p>
<p><strong><span style="text-decoration:underline;">Concepts Regarding Interitance</span></strong></p>
<p><strong>1)      </strong><strong>Abstraction</strong></p>
<p>Abstraction is &#8220;the process of identifying common patterns that have systematic variations; an abstraction represents the common pattern and provides a means for specifying which variation to use&#8221; (Richard Gabriel).</p>
<p>In Abstraction we will look only on the keywords</p>
<p><strong>a)      </strong><strong>MustInherit, MustOverride /abstract</strong></p>
<p> </p>
<p>Abstract Classes or MustInherit class can not me instantiated. The can only be inherited in the derived class.</p>
<p>For Example –</p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>VB.NET</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>Public MustInherit Class Base</p>
<p>    Public Sub NormalMethod()</p>
<p>    End Sub</p>
<p>    Public MustOverride Sub MustOverridableMethod()</p>
<p>End Class</p>
<p> </p>
<p> </p>
<p>Public Class Derived</p>
<p>    Inherits Base</p>
<p>    Public Overrides Sub MustOverridableMethod()</p>
<p> </p>
<p>    End Sub</p>
<p>End Class</p>
<p> </p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>C#.NET</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>public abstract class Base</p>
<p>{</p>
<p>        public void NormalMethod()</p>
<p>        {</p>
<p>        }</p>
<p>        public abstract void MustOverridableMethod();</p>
<p>}</p>
<p>   </p>
<p>  public class Derived : Base</p>
<p>  {</p>
<p> </p>
<p>      public override void MustOverridableMethod()</p>
<p>              {</p>
<p>              throw new NotImplementedException();</p>
<p>      }</p>
<p>}</p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p> </p>
<p>In the above example if you are declaring the method as MustOverride/ abstract then u have to give definition of that method in the derived class. But if you are defining the method in the MustInherit/Abstract class then you may or may not define this method in the derived class.</p>
<p> </p>
<p> </p>
<p> </p>
<p><strong>b)      </strong><strong>Overridable/virtual and Overrides/override</strong></p>
<p> </p>
<p>Overridable/virtual is used to polimorphically declare the base class method. A non overridable/not virtual method can not me polymorfically declared in the base class because it will hide the base class method in the derived class (Refer to Shadowing).</p>
<p>When we declare a Overridable/virtual method, it must contain a method body. Other wise the compiler will generate an error. Remember that, since Overridable/virtual methods are used for achieving polymorphism and since polymorphism works only with objects, it not possible to declare a static method as virtual in C#. Similarly the private methods are also not possible to declare virtual, since they can&#8217;t override inside a derived class.</p>
<p> </p>
<p>For Example –<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>VB.NET</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>Public Class PolyBase</p>
<p>    Public Overridable Function GetName() As String</p>
<p>        Return &#8220;Base Polymorphic Class&#8221;</p>
<p>    End Function</p>
<p>End Class</p>
<p> </p>
<p>Public Class PolyDerived</p>
<p>    Inherits PolyBase</p>
<p>    Public Overrides Function GetName() As String</p>
<p>        Return &#8220;Derived Polymorphic Class&#8221;</p>
<p>    End Function</p>
<p>End Class</p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>C#.NET</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>public class PolyBase</p>
<p>    {</p>
<p>        public virtual string GetName()</p>
<p>        {</p>
<p>            return &#8220;Base Polymorphic Class&#8221;;</p>
<p>        }</p>
<p>    }</p>
<p> </p>
<p>    public class PolyDerived : PolyBase</p>
<p>    {</p>
<p>        public override string GetName()</p>
<p>        {</p>
<p>            return &#8220;Derived Polymorphic Class&#8221;;</p>
<p>        }</p>
<p>    }</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p> </p>
<p><strong>2)      </strong><strong>Sealed Classes &#8211; </strong></p>
<p> </p>
<p>Sealed Class can be instanciated but can not be inherited in another class .In VB.Net NotInheritable keyword is used to declare a class Seald and In C#.Net it is declared by sealed.</p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>VB.NET</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>Public NotInheritable Class NotInheritableClass</p>
<p>    Public Function Fun1() As String</p>
<p>        Return &#8220;My class can not be inherited&#8221;</p>
<p>    End Function</p>
<p>End Class</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>C#.NET</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>sealed class NonInheritableClass</p>
<p>       {</p>
<p>        public string Fun1()</p>
<p>        {</p>
<p>            return &#8220;this class can not be inherited&#8221;;</p>
<p>        }</p>
<p>}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><strong>3)      </strong><strong>Shadowing</strong></p>
<p>In .Net it is possible to declare the member of the base class with the same name in the derived class. In this class we are actully hiding the base class member in the derived class , if u do so then .Net compiler will show a warning.</p>
<p>Consider the following example-</p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>VB.NET</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><img class="aligncenter size-full wp-image-145" title="sh" src="http://vinayhatwal.files.wordpress.com/2009/06/sh.jpg?w=719&#038;h=222" alt="sh" width="719" height="222" /></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p> </p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>C#.NET</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><img class="aligncenter size-full wp-image-146" title="ssss" src="http://vinayhatwal.files.wordpress.com/2009/06/ssss.jpg?w=625&#038;h=269" alt="ssss" width="625" height="269" /></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p> </p>
<p>See the compiler warning closely.</p>
<p>In VB.Net it is clearly advising to use the Shadows with the new Fun1() to hide the base class functionality. Here the correct code is -</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>VB.NET</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>Public Class Base</p>
<p>    Private x As Integer</p>
<p>    Private y As Integer</p>
<p>    Public Function Fun1() As Integer</p>
<p>        Return x + y</p>
<p>    End Function</p>
<p>End Class</p>
<p> </p>
<p> </p>
<p>Public Class Derived</p>
<p>    Inherits Base</p>
<p>    Public Shadows Function Fun1() As Integer</p>
<p>        Return 10</p>
<p>    End Function</p>
<p>End Class</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>Shadows keyword hides the base class functionality and warning too.</p>
<p> </p>
<p>And in the C# it is advising to use the new keyword to hide the base class method. Here the correct code is-</p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>C#.NET</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>class Base</p>
<p>    {</p>
<p>        private  int x = 10;</p>
<p>        private int y = 20;</p>
<p>        public int Fun1()</p>
<p>        {</p>
<p>            return x + y;</p>
<p>        }</p>
<p>    }</p>
<p>   </p>
<p>    class Derived : Base</p>
<p>    {</p>
<p>        public new int Fun1()</p>
<p>        {</p>
<p>            return 10;</p>
<p>        }</p>
<p>    }</p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> </p>
<p>__________________________________________________________________________</p>
<p><strong> </strong></p>
<br />Posted in Inheritance Tagged: .Net, abstract, Access Specifires, Inheritance, MustInherit, MustOverride, New, NonInheritable, OPPS, Overridable, override, Overrides, sealed, Shadows, virtual <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayhatwal.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayhatwal.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayhatwal.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayhatwal.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=143&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2009/06/16/inheritance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/06/in.jpg" medium="image">
			<media:title type="html">in</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/06/sh.jpg" medium="image">
			<media:title type="html">sh</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/06/ssss.jpg" medium="image">
			<media:title type="html">ssss</media:title>
		</media:content>
	</item>
		<item>
		<title>New Features in Microsoft VS 2010</title>
		<link>http://vinayhatwal.wordpress.com/2009/04/17/new-features-in-microsoft-vs-2010/</link>
		<comments>http://vinayhatwal.wordpress.com/2009/04/17/new-features-in-microsoft-vs-2010/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 08:31:05 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[VS-2010]]></category>
		<category><![CDATA[new features in VS2010]]></category>
		<category><![CDATA[Vinayhatwal]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=139</guid>
		<description><![CDATA[New Features in Microsoft VS 2010     Cloud Development With Windows Azure Tools for Microsoft Visual Studio, developers can build, debug and deploy services and applications for Azure, the new cloud environment Microsoft announced in October 2008.     Web Development In Visual Studio 2010, Microsoft is continuing their investment in great web development [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=139&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="line-height:11.25pt;text-align:center;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;"><strong></p>
<p class="MsoNormal" style="text-align:center;margin:0 0 0 .25in;" align="center"><strong><span style="color:#666666;font-family:Arial;"><span style="font-size:small;">New Features in Microsoft VS 2010</span></span></strong></p>
<p class="MsoNormal" style="line-height:11.25pt;text-align:center;margin:0;"> </p>
<p></strong></span> </p>
<p class="MsoNormal" style="line-height:11.25pt;margin:0;"><strong><span style="font-size:9pt;color:#666666;font-family:Arial;">Cloud Development</span></strong></p>
<p class="MsoNormal" style="line-height:11.25pt;text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">With Windows Azure Tools for Microsoft Visual Studio, developers can build, debug and deploy services and applications for Azure, the new cloud environment Microsoft announced in October 2008. </span></p>
<p class="MsoNormal" style="line-height:11.25pt;text-align:justify;margin:0;"> </p>
<p class="MsoNormal" style="line-height:11.25pt;text-align:justify;margin:0;"> </p>
<h3 style="margin:auto 0;"><span style="font-size:x-small;color:#666666;font-family:Arial;">Web Development</span></h3>
<p class="MsoNormal" style="line-height:11.25pt;text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">In Visual Studio 2010, Microsoft is continuing their investment in great web development tools. Visual Studio 2010 enhancements for web developers include:</span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">A high-performance and standards-compliant JavaScript, IntelliSense<sup>®</sup> engine </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">&#8216;One Click Deployment&#8217; for quickly and easily publishing a website&#8217;s files and configuration settings from the development machines to the final deployed site </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Full support for Silverlight for developers wishing to build cutting-edge, rich internet applications. </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"> </p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"> </p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"> </p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"> </p>
<p class="MsoNormal" style="line-height:11.25pt;margin:0;"><strong><span style="font-size:9pt;color:#666666;font-family:Arial;">Democratising Application Lifecycle Management</span></strong></p>
<p class="MsoNormal" style="line-height:11.25pt;text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">Microsoft Visual Studio Team System 2010 will deliver new capabilities that embrace the needs of the users in the lifecycle – from architects to developers, from project managers to testers. Among the great new functionality in Visual Studio Team System 2010:</span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Discover and identify existing code assets and architecture with the new Architecture Explorer </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Design and share multiple diagram types, including use case, activity and sequence diagrams </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Improve testing efforts with tooling for better documentation of test scenarios and more thorough collection of test data </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Easily identify and run only the tests affected by a code change with the new Test Impact View </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Enhanced version control capabilities including gated check-in, branch visualisation and build workflow. </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"> </p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"> </p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"> </p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"> </p>
<p class="MsoNormal" style="line-height:11.25pt;margin:0;"><strong><span style="font-size:9pt;color:#666666;font-family:Arial;">Inspiring Developer Delight</span></strong></p>
<p class="MsoNormal" style="line-height:11.25pt;text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">Since the first release of Visual Studio, Microsoft has made application development more productive, efficient, flexible and profitable to the developers and companies that use it. Visual Studio 2010 continues to deliver on the core developer experience by significantly improving the day-to-day process for development teams:</span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Understand existing (and write new) code </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Intuitive web development from the back-end to the end result </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Wrangle disparate C++ code into one arena </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Build new Windows 7 applications or upgrade existing applications </span></p>
<p class="MsoNormal" style="text-indent:-.25in;line-height:11.25pt;text-align:justify;margin:0 0 0 58.55pt;"><span style="font-size:10pt;color:#666666;font-family:Symbol;"><span>·<span style="font:7pt 'Times New Roman';">         </span></span></span><span style="font-size:9pt;color:#666666;font-family:Arial;">Enable Office tools to make your solutions more flexible and productive for specific needs</span><span style="font-size:7.5pt;color:#666666;font-family:Arial;">. </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:10pt;"><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">Resource –</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;"> </span></p>
<p class="MsoNormal" style="margin:0 0 0 .25in;"><span style="font-size:9pt;color:#666666;font-family:Arial;"><a href="http://download.microsoft.com/download/C/0/9/C0965791-049B-4200-9008-F07A783026F6/VisualStudio2010_ProductOverview.pdf"><span style="color:#800080;">http://download.microsoft.com/download/C/0/9/C0965791-049B-4200-9008-F07A783026F6/VisualStudio2010_ProductOverview.pdf</span></a></span></p>
<br />Posted in VS-2010 Tagged: new features in VS2010, Vinayhatwal, VS-2010 <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayhatwal.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayhatwal.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayhatwal.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayhatwal.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=139&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2009/04/17/new-features-in-microsoft-vs-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>
	</item>
		<item>
		<title>.Net Framework 4.0</title>
		<link>http://vinayhatwal.wordpress.com/2009/04/17/net-framework-40/</link>
		<comments>http://vinayhatwal.wordpress.com/2009/04/17/net-framework-40/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 07:51:39 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[.Net Framework 4.0]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[new .net relieases]]></category>
		<category><![CDATA[new releases]]></category>
		<category><![CDATA[Vinayhatwal]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=132</guid>
		<description><![CDATA[.Net Framework 4.0  Every year the industry develops new technology and new trends. Now Microsoft is again come to provide next version of .net framework i.e. .Net Framework 4.0. As a result MS Visual Studio 2010 is just around the corner with the new innovation in application architecture, development, and deployment. So in this article [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=132&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align:center;"><span style="font-size:9pt;color:#666666;font-family:Arial;"><span style="font-size:14pt;font-family:&quot;"><span style="color:#000000;">.Net Framework 4.0</span></span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"> <span style="font-size:9pt;color:#666666;font-family:Arial;">Every year the industry develops new technology and new trends. Now Microsoft is again come to provide next version of .net framework i.e. .Net Framework 4.0. As a result MS Visual Studio 2010 is just around the corner with the new innovation in application architecture, development, and deployment. So in this article I am describing some new features coming in the .Net Framework 4.0. Before describing new features of .Net Framework 4.0, I am giving a summary of some of the main functionality in each .net version.</span> </p>
<p class="MsoNormal" style="text-align:justify;margin:0;"> </p>
<p class="MsoNormal" style="text-align:justify;margin:0;"> </p>
<table class="MsoTableTheme" style="border-collapse:collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width:1.45in;background-color:transparent;border:windowtext 1pt solid;padding:0 5.4pt;" width="139" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">.NET Framework 4.0</span></p>
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">(The Future Release)</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:windowtext 1pt solid;border-left:#ece9d8;width:161.25pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;" colspan="3" width="215" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">PLINQ</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:windowtext 1pt solid;border-left:#ece9d8;width:177.15pt;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;" colspan="3" width="236" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">TPL</span></p>
</td>
</tr>
<tr style="height:20.2pt;">
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:windowtext 1pt solid;width:1.45in;border-bottom:windowtext 1pt solid;height:20.2pt;background-color:transparent;padding:0 5.4pt;" width="139" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">.NET Framework 3.5</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:161.25pt;border-bottom:windowtext 1pt solid;height:20.2pt;background-color:transparent;padding:0 5.4pt;" colspan="3" width="215" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">LINQ</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:177.15pt;border-bottom:windowtext 1pt solid;height:20.2pt;background-color:transparent;padding:0 5.4pt;" colspan="3" width="236" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">ADO.NET Entity Framework</span></p>
</td>
</tr>
<tr style="height:17.5pt;">
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:windowtext 1pt solid;width:1.45in;border-bottom:windowtext 1pt solid;height:17.5pt;background-color:transparent;padding:0 5.4pt;" width="139" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">.NET Framework 3.0</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:72.7pt;border-bottom:windowtext 1pt solid;height:17.5pt;background-color:transparent;padding:0 5.4pt;" width="97" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">WPF</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:88.55pt;border-bottom:windowtext 1pt solid;height:17.5pt;background-color:transparent;padding:0 5.4pt;" colspan="2" width="118" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">WCF</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:88.55pt;border-bottom:windowtext 1pt solid;height:17.5pt;background-color:transparent;padding:0 5.4pt;" colspan="2" width="118" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">WF</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:88.6pt;border-bottom:windowtext 1pt solid;height:17.5pt;background-color:transparent;padding:0 5.4pt;" width="118" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">Card Space</span></p>
</td>
</tr>
<tr style="height:17.95pt;">
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:windowtext 1pt solid;width:1.45in;border-bottom:windowtext 1pt solid;height:17.95pt;background-color:transparent;padding:0 5.4pt;" rowspan="3" width="139" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">.NET Framework 2.0</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:117.1pt;border-bottom:windowtext 1pt solid;height:17.95pt;background-color:transparent;padding:0 5.4pt;" colspan="2" width="156" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">WinForms</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:117.05pt;border-bottom:windowtext 1pt solid;height:17.95pt;background-color:transparent;padding:0 5.4pt;" colspan="2" width="156" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0 0 0 35.9pt;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">ASP.NET</span></p>
</td>
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:104.25pt;border-bottom:windowtext 1pt solid;height:17.95pt;background-color:transparent;padding:0 5.4pt;" colspan="2" width="139" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0 0 0 34.05pt;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">ADO.NET</span></p>
</td>
</tr>
<tr style="height:17.05pt;">
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:4.7in;border-bottom:windowtext 1pt solid;height:17.05pt;background-color:transparent;padding:0 5.4pt;" colspan="6" width="451" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">Base Class Library</span></p>
</td>
</tr>
<tr>
<td style="border-right:windowtext 1pt solid;border-top:#ece9d8;border-left:#ece9d8;width:4.7in;border-bottom:windowtext 1pt solid;background-color:transparent;padding:0 5.4pt;" colspan="6" width="451" valign="top">
<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><span style="font-size:9pt;color:#666666;font-family:Arial;">CLR</span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="text-align:justify;margin:0;"> </p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">So you have just seen the major change in each version on .Net Framework. Above figure defines the feature stack of the .Net Framework. </span><span style="font-size:9pt;color:#666666;font-family:Arial;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:9pt;color:#666666;font-family:Arial;">Following are new features provided by .NET Framework 4.0 –</span></strong><span style="font-size:10pt;"><span style="color:#000000;font-family:Times New Roman;"> </span></span></p>
<ul style="margin-top:0;" type="disc">
<li class="MsoNormal"><strong><span style="font-size:10pt;font-family:Arial;">New Languages</span></strong><strong><span style="font-size:small;color:#000000;font-family:Times New Roman;"> </span></strong></li>
</ul>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">.NET 4.0 will include <a href="http://www.informit.com/guides/%3ca%20href="><span style="color:#666666;text-decoration:none;">IronPython</span></a>, <a href="http://www.ironruby.net/"><span style="color:#666666;text-decoration:none;">IronRuby</span></a>, and <a href="http://research.microsoft.com/fsharp/fsharp.aspx"><span style="color:#666666;text-decoration:none;">F#</span></a>, among others. The three named languages have been available in some form for a few years now, but it appears that with .NET 4.0 they become &#8220;official&#8221; in the same way as C#, Visual Basic .NET. Both IronPython and IronRuby leverage the Dynamic Language Runtime (DLR), a subsystem that supports dynamic languages on .NET. The DLR has been around for a couple of years now, but with .NET 4.0 becomes an integral part of the .NET runtime.</span><span style="font-size:9pt;color:#666666;font-family:Arial;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">In order to support the new languages, and to ensure language interoperability, the CLR team did make some changes. Two additions are particularly interesting to me: BigInteger and Tuple. Because these features are in the base class libraries, all .NET languages can use them</span><span style="font-size:10pt;"><span style="color:#000000;font-family:Times New Roman;"> </span></span></p>
<ul style="margin-top:0;" type="disc">
<li class="MsoNormal"><strong><span style="font-size:10pt;font-family:Arial;">Threading improvements</span></strong><span style="font-size:10pt;"><span style="color:#000000;font-family:Times New Roman;"> </span></span></li>
</ul>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">Framework 4.0 includes the Task Parallel Library (TPL), a library of objects that make it easier to write code that takes advantage of multiple cores. Not only do TPL functions relieve you of the tedium involved with starting and managing threads, they also help you to structure your code to make the most of the computing resources available.</span><span style="font-size:9pt;color:#666666;font-family:Arial;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">During development and use of the TPL, the CLR team found a number of areas in which the .NET thread pool (the subsystem that the TPL depends on) was less than optimum. They have since improved the thread pool, giving a performance boost not only TPL programs, but to all programs that make use of .NET threading services. </span><span style="font-size:10pt;"><span style="color:#000000;font-family:Times New Roman;"> </span></span></p>
<ul style="margin-top:0;" type="disc">
<li class="MsoNormal"><strong><span style="font-size:10pt;font-family:Arial;">Garbage Collector Improvements</span></strong><strong><span style="font-size:small;color:#000000;font-family:Times New Roman;"> </span></strong></li>
</ul>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">All in all, the .NET garbage collector is considered a good thing. However, it does have some drawbacks. In particular, it can severely impact performance in some cases.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">The server garbage collector in .NET 3.51 and earlier versions is optimized for higher throughput, but has to pause all threads when it does a full collection. The result is that processing comes to a halt whenever a full collection occurs. This can be very annoying.</span><span style="font-size:9pt;color:#666666;font-family:Arial;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">The pauses still occur in .NET 4.0, but the system will notify your program before a full collection starts, and notify it again when the garbage collector has finished with collection. In a multi-server environment, you can use this feature to direct traffic away from your server while it&#8217;s in the middle of a full collection. That helps with server farms, but doesn&#8217;t help with memory-intensive applications that are running on a single machine.</span><span style="font-size:9pt;color:#666666;font-family:Arial;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">The workstation garbage collector in 4.0 gets a new background collection feature, which results in fewer pauses and doesn&#8217;t require any changes to your code. Only very unusual circumstances will result in the long latency that you might have seen in versions 3.51 or earlier</span><strong><span style="font-size:small;color:#000000;font-family:Times New Roman;"> </span></strong></p>
<ul style="margin-top:0;" type="disc">
<li class="MsoNormal"><strong><span style="font-size:10pt;font-family:Arial;">PLINQ</span></strong><strong><span style="font-size:small;color:#000000;font-family:Times New Roman;"> </span></strong></li>
</ul>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">.Net Framework 3.5 introduced new concept i.e. LINQ(Language Integrated Queries). Microsoft original motivation behind LINQ was to address the impedance mismatch between programming languages and database</span><span style="font-size:9pt;color:#666666;font-family:Arial;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">Microsoft LINQ defines a set of proprietary query operators that can be used to query, project and filter data in <a title="Array" href="http://en.wikipedia.org/wiki/Array"><span style="color:#666666;text-decoration:none;">arrays</span></a>, enumerable <a title="Class (computer science)" href="http://en.wikipedia.org/wiki/Class_(computer_science)"><span style="color:#666666;text-decoration:none;">classes</span></a>, <a title="XML" href="http://en.wikipedia.org/wiki/XML"><span style="color:#666666;text-decoration:none;">XML</span></a> (XLINQ), <a title="Relational database" href="http://en.wikipedia.org/wiki/Relational_database"><span style="color:#666666;text-decoration:none;">relational database</span></a>, and third party data sources. While it allows any data source to be queried, it requires that the data be encapsulated as <a title="Object (computer science)" href="http://en.wikipedia.org/wiki/Object_(computer_science)"><span style="color:#666666;text-decoration:none;">objects</span></a>. So, if the data source does not natively store data as objects, the data must be <a title="Object-Relational mapping" href="http://en.wikipedia.org/wiki/Object-Relational_mapping"><span style="color:#666666;text-decoration:none;">mapped</span></a> to the object domain. Queries written using the query operators are executed either by the LINQ query processing engine or, via an extension mechanism, handed over to LINQ providers which either implement a separate query processing engine or translate to a different format to be executed on a separate data store (such as on a database server as <a title="SQL" href="http://en.wikipedia.org/wiki/SQL"><span style="color:#666666;text-decoration:none;">SQL</span></a> queries (DLINQ)). The results of a query are returned as a collection of in-memory objects that can be <a title="Enumeration" href="http://en.wikipedia.org/wiki/Enumeration"><span style="color:#666666;text-decoration:none;">enumerated</span></a> using a standard <a title="Iterator" href="http://en.wikipedia.org/wiki/Iterator"><span style="color:#666666;text-decoration:none;">iterator</span></a> function such as <a title="C Sharp (programming language)" href="http://en.wikipedia.org/wiki/C_Sharp_(programming_language)"><span style="color:#666666;text-decoration:none;">C#</span></a>&#8216;s <a title="Foreach" href="http://en.wikipedia.org/wiki/Foreach"><span style="color:#666666;text-decoration:none;">foreach</span></a>.</span><span style="font-size:9pt;color:#666666;font-family:Arial;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">Like all constructs in LINQ, PLINQ is based on extension methods, in this case the AsParallel method. Once you&#8217;ve built the expression tree representing the query, the AsParallel operation is added at the very end, which tells the &#8220;LINQ engine&#8221; to figure out parallel jobs and do all of the magic required to make the app benefit from multi-threaded execution. A conceptual example is shown below:</span><span style="font-size:9pt;color:#666666;font-family:Arial;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:9pt;color:#666666;font-family:Arial;">var result = (from p in db.Products join pd in xml.ProductDescriptions on p.ID equals pd.ID where p.Price &gt; 100 select new { p.Name, p.Price, pd.Description }).AsParallel();</span> </p>
<br />Posted in .Net Framework 4.0 Tagged: .Net, .Net Framework 4.0, new .net relieases, new releases, Vinayhatwal <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayhatwal.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayhatwal.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayhatwal.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayhatwal.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/132/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=132&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2009/04/17/net-framework-40/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows Services</title>
		<link>http://vinayhatwal.wordpress.com/2009/04/10/windows-services/</link>
		<comments>http://vinayhatwal.wordpress.com/2009/04/10/windows-services/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 07:58:38 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[Windows Services]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[services]]></category>
		<category><![CDATA[Vinayhatwal]]></category>
		<category><![CDATA[windows services]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=118</guid>
		<description><![CDATA[Windows Services By: Vinay Hatwal Dated: Apr 10, 2009 Level: Beginner   The idea of using Windows services came into my mind when I was working on Finger Print Attendance System for Bajaj Capital Ltd. This system was going to be used by all the branches of the company. So I wanted to synchronize the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=118&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><strong>Windows Services</strong></p>
<p style="text-align:left;">
<p class="MsoNormal">
<p class="MsoNormal"><em>By: Vinay Hatwal</em></p>
<p class="MsoNormal"><em>Dated: Apr 10, 2009<span> </span></em></p>
<p class="MsoNormal"><em>Level: Beginner</em></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="text-align:justify;">The idea of using Windows services came into my mind when I was working on Finger Print Attendance System for Bajaj Capital Ltd. This system was going to be used by all the branches of the company. So I wanted to synchronize the attendance of the employees of each branch with our company’s ERP system. So that, I decided to develop windows services for the same purpose. There was one issue in real time synchronization of attendance with the Head Office.<span> </span>The issue was slow internet connection and no internet connectivity available all the time. So the solution was to send the attendance when internet is connected not on the time of attendance punching. So the solution was WINDOWS SERVICES.</p>
<p class="MsoNormal" style="text-align:justify;">
<p class="MsoNormal" style="text-align:justify;">In this article I will explain how to make Windows Services by using c#.net.</p>
<p class="MsoNormal" style="text-align:justify;">
<p class="MsoNormal" style="text-align:justify;"><strong>Windows services</strong> are long running executable file developed for running in background as long a windows is running. These executables run in the background and there is no any requirement for the user interaction. They run in the background so that there is no need to take graphical interface in the Windows Services. You can think about UNIX Daemon if u r familiar with the UNIX environment. On the Windows the same concept is Windows Services. Windows Services can be configured to run automatically when Windows is booted. They can also be configured to run on Local machine, single user account, and also on Network.</p>
<p class="MsoNormal" style="text-align:justify;">
<p class="MsoNormal" style="text-align:justify;">You can find windows services in your local machine on</p>
<p class="MsoNormal" style="text-align:justify;">Start-&gt; Control Panel -&gt; Administrative Tools -&gt; Services</p>
<p class="MsoNormal" style="text-align:justify;"><span style="font-size:12pt;font-family:&quot;">These services looks like this—</span></p>
<p style="text-align:center;">
<p style="text-align:left;">
<div style="text-align:left;"><strong></strong></div>
<p><strong></p>
<div id="attachment_121" class="wp-caption aligncenter" style="width: 710px"><strong><img class="size-full wp-image-121 " title="111" src="http://vinayhatwal.files.wordpress.com/2009/04/111.jpg?w=700&#038;h=768" alt="Windows Service Browser" width="700" height="768" /></strong><p class="wp-caption-text">Windows Service Browser</p></div>
<p> </p>
<p></strong></p>
<p style="text-align:left;">
<p style="text-align:left;">
<p class="MsoNormal" style="text-align:justify;">By using windows service you can use databases, text files, and all shareable resources with it etc.</p>
<p class="MsoNormal" style="text-align:justify;">
<p class="MsoNormal" style="text-align:justify;">To create Windows Services in .net (I am creating in .net 2.0)</p>
<p class="MsoNormal" style="text-align:justify;">
<p class="MsoNormal" style="text-align:justify;">
<p class="MsoNormal" style="text-align:justify;"><strong><span style="font-size:14pt;">Creating Windows Services</span></strong></p>
<p class="MsoNormal" style="text-align:justify;">
<p class="MsoNormal" style="margin-left:.5in;text-align:justify;text-indent:-.25in;">&lt;!&#8211;[if !supportLists]&#8211;&gt;<span>1)<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span>&lt;!&#8211;[endif]&#8211;&gt;To create windows services, go to File menu and then select New Project, then select Windows Service. You will see the dialog box shown below. Name the project – MyWindowService.</p>
<p><img class="aligncenter size-full wp-image-122" title="12" src="http://vinayhatwal.files.wordpress.com/2009/04/12.jpg?w=680&#038;h=494" alt="12" width="680" height="494" /></p>
<p class="MsoNormal" style="text-align:justify;"><span style="font-size:11pt;">2) After clicking on OK you will see the following. Change the name of the service from Service1.cs to MyService.cs. </span></p>
<p><img class="aligncenter size-full wp-image-123" title="2" src="http://vinayhatwal.files.wordpress.com/2009/04/2.jpg?w=1024&#038;h=768" alt="2" width="1024" height="768" /></p>
<p class="MsoNormal" style="text-align:justify;"><span style="font-size:11pt;">3) Now go to in on the properties on the MyService and change the property Service Name to MyService.</span></p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;"><span style="font-size:11pt;">4) Do right click on the MyService design view and select <strong>View Code</strong> option from the context menu. You can see two overrided methods in the window OnStart() and OnStop(). </span></p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;"><span style="font-size:11pt;">These are the members of the ServiceBase class and inheritted by the MyService Class. There are some more members also present in the ServiceBase class like OnContinue(), OnPause() etc. but I am just describing about these two only.<span> </span></span></p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;"><span style="font-size:11pt;">The idea of using windows service is only behind these to methods. Any work u want to perform on the sharable resources, you can write code for that in the OnStart() method. I have just put Beep () here. It will give the beep sound on starting the Window Service. And just 2 beep on Stoping it. You can see in the coding below.</span></p>
<p><img class="aligncenter size-full wp-image-124" title="3" src="http://vinayhatwal.files.wordpress.com/2009/04/3.jpg?w=1024&#038;h=768" alt="3" width="1024" height="768" /></p>
<p class="MsoNormal" style="margin-left:.5in;text-align:justify;text-indent:-.25in;">&lt;!&#8211;[if !supportLists]&#8211;&gt;<span style="font-size:11pt;"><span>5)<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span>&lt;!&#8211;[endif]&#8211;&gt;<span style="font-size:11pt;">to install this Windows Service on the local system you need to add installers in your Service. Just right click on the Service Design window and then select <strong>Add Installer.</strong></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-align:justify;text-indent:-.25in;">
<p class="MsoNormal" style="margin-left:.5in;text-align:justify;text-indent:-.25in;">
<p class="MsoNormal" style="margin-left:.5in;text-align:justify;text-indent:-.25in;">&lt;!&#8211;[if !supportLists]&#8211;&gt;<span style="font-size:11pt;"><span>6)<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span>&lt;!&#8211;[endif]&#8211;&gt;<span style="font-size:11pt;">Project Installer will automatically be added in your solution, name ProjectInstaller.sc. and you can also find two component in it </span></p>
<p class="MsoNormal" style="margin-left:1in;text-align:justify;text-indent:-.25in;">&lt;!&#8211;[if !supportLists]&#8211;&gt;<span style="font-size:11pt;"><span>a.<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span>&lt;!&#8211;[endif]&#8211;&gt;<span style="font-size:11pt;">serviceProcessInstaller1</span></p>
<p class="MsoNormal" style="margin-left:1in;text-align:justify;text-indent:-.25in;">&lt;!&#8211;[if !supportLists]&#8211;&gt;<span style="font-size:11pt;"><span>b.<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span>&lt;!&#8211;[endif]&#8211;&gt;<span style="font-size:11pt;">serviceInstaller1</span></p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.5in;text-align:justify;text-indent:-.25in;">&lt;!&#8211;[if !supportLists]&#8211;&gt;<span style="font-size:11pt;"><span>7)<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span>&lt;!&#8211;[endif]&#8211;&gt;<span style="font-size:11pt;">You can now decide how your Windows Process will be display, you can set the account for your service on which it will be running, and you can give the Display Service Name, Description and the start type of the service like Automat, Manual, or Disabled. For doing all these you can follow these steps</span></p>
<p class="MsoNormal" style="margin-left:1in;text-align:justify;text-indent:-.25in;">&lt;!&#8211;[if !supportLists]&#8211;&gt;<span style="font-size:11pt;"><span>a.<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span>&lt;!&#8211;[endif]&#8211;&gt;<span style="font-size:11pt;">Go to on the properties of <strong>serviceProcessInstaller1</strong>, and set <strong>Account</strong><span> </span>property to Local System, so that it would be sharable to all users.</span></p>
<p class="MsoNormal" style="margin-left:1in;text-align:justify;text-indent:-.25in;">&lt;!&#8211;[if !supportLists]&#8211;&gt;<span style="font-size:11pt;"><span>b.<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span>&lt;!&#8211;[endif]&#8211;&gt;<span style="font-size:11pt;">Now go to on the properties of <strong>serviceInstaller1, </strong>and<strong> </strong>ser <strong>Description</strong> as u like and set <strong>Display Name</strong> as u want to display in the Services Console, and now set<span> </span><strong>StartType</strong> to <strong>Automatic</strong> so that the service can be run on the starting of the Windows operation system.</span></p>
<p class="MsoNormal" style="margin-left:.75in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.5in;text-align:justify;text-indent:-.25in;">&lt;!&#8211;[if !supportLists]&#8211;&gt;<span style="font-size:11pt;"><span> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> <span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span>&lt;!&#8211;[endif]&#8211;&gt;<span style="font-size:11pt;">After doing all the configuration just press F6 for building the solution. Now Your Window Service is ready to use.</span></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.5in;text-align:justify;text-indent:-.25in;">&lt;!&#8211;[if !supportLists]&#8211;&gt;<span style="font-size:11pt;"><span>9)<span style="font-family:&quot;font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span>&lt;!&#8211;[endif]&#8211;&gt;<span style="font-size:11pt;">Now for using it u have to install this service on your local machine. You can do this by using the instalUtill.exe utility provided by .net framework to install this service on your machine.</span></p>
<p class="MsoNormal" style="text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><span style="font-size:11pt;">Now take the executable of this service and jus copy it into your system32 directory.</span></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><span style="font-size:11pt;">Go to your application path where your project is running, and go to the bin\debug directory then copy MyWindowServices.exe and paste it into syetem32.</span></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><span style="font-size:11pt;">Now go to on the <strong>Visual Studio 2005 Command Prompt</strong> and type the following for installing the newly developed Window Service–</span></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><strong><span style="font-size:11pt;">C:\&gt; installutil c:\windows\system32\</span> </strong><strong><span style="font-size:11pt;">MyWindowServices.exe</span></strong></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;">
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><strong><span style="font-size:11pt;"><img class="aligncenter size-full wp-image-125" title="4" src="http://vinayhatwal.files.wordpress.com/2009/04/4.jpg?w=667&#038;h=503" alt="4" width="667" height="503" /></span></strong></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;">
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;">
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><span style="font-size:11pt;">To uninstall use –</span></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><strong><span style="font-size:11pt;">C:\&gt; installutil /u c:\windows\system32\</span> </strong><strong><span style="font-size:11pt;">MyWindowServices.exe</span></strong></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p><span style="font-size:11pt;font-family:&quot;">You can see your service in the service console like </span></p>
<p><span style="font-size:11pt;font-family:&quot;"><img class="aligncenter size-full wp-image-126" title="5" src="http://vinayhatwal.files.wordpress.com/2009/04/5.jpg?w=1024&#038;h=768" alt="5" width="1024" height="768" /></span></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><span style="font-size:11pt;">Now just do right click on it and the start. You will listen one beep on starting and two beep on stopping the Windows Service.</span></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><span style="font-size:11pt;">So friends. Enjoy the Window Services, hope your will learn by this article. Hope you will be enjoying after creation the windows service.</span></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><span style="font-size:11pt;">I am always waiting for your comments and suggestion so that I can improve my articles.<span> </span></span></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><span style="font-size:11pt;">Again<span> </span>Coming Soon…………………….</span></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"> </p>
<p class="MsoNormal" style="margin-left:.25in;text-align:justify;"><strong><span style="font-size:11pt;">Vinay Hatwal</span></strong></p>
<br />Posted in Windows Services Tagged: .Net, services, Vinayhatwal, windows services <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayhatwal.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayhatwal.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayhatwal.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayhatwal.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=118&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2009/04/10/windows-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/04/111.jpg" medium="image">
			<media:title type="html">111</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/04/12.jpg" medium="image">
			<media:title type="html">12</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/04/2.jpg" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/04/3.jpg" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/04/4.jpg" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2009/04/5.jpg" medium="image">
			<media:title type="html">5</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://vinayhatwal.wordpress.com/2008/10/26/113/</link>
		<comments>http://vinayhatwal.wordpress.com/2008/10/26/113/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 19:04:24 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[Internet Explorer 8 beta]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=113</guid>
		<description><![CDATA[  NEW Features in Internet Explorer 8 beta   Ø     New to Beta 2! InPrivate Ø     New to Beta 2!Delete Browsing History Ø     Search Ø     New to Beta 2!Search Suggestions Ø     New to Beta 2! UserPreference Protection Ø     New to Beta 2! CaretBrowsing Ø     Accelerators(previously known as Activities) Ø     Web Slices Ø     New to Beta 2!Suggested Sites Ø     Favorites Bar Ø     New to Beta 2! TabGrouping [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=113&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="Section1">
<p class="MsoNormal" style="margin-left:.25in;text-align:center;" align="center"> </p>
<p style="text-align:center;"><strong>NEW Features in Internet Explorer 8 beta</strong></p>
<p class="MsoNormal" style="margin-left:.25in;text-align:center;" align="center"><span style="color:#ff9933;"> </span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">New to Beta 2! InPrivate</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">New to Beta 2!Delete Browsing History</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">Search</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">New to Beta 2!Search Suggestions</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">New to Beta 2! UserPreference Protection</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">New to Beta 2! CaretBrowsing</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">Accelerators(previously known as Activities)</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">Web Slices</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">New to Beta 2!Suggested Sites</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">Favorites Bar</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">New to Beta 2! TabGrouping</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;">Automatic CrashRecovery</span></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:-.25in;"><span class="MsoHyperlink"><span>Ø<span style="font:7pt;">     </span></span></span><span class="MsoHyperlink"><span style="font-size:11pt;color:red;text-decoration:none;"><span style="color:red;text-decoration:none;">SmartScreen</span></span> Filter (previouslyknown as the <span class="SpellE">Phishing</span> Filter)</span></p>
<p class="MsoNormal"><span style="font-size:9pt;color:#FF9933;"><br />
</span></p>
<p><strong><span style="font-size:11pt;font-family:Tahoma;color:red;">New to Beta 2! <span class="SpellE">InPrivate</span></span><br />
</strong><span style="font-size:10pt;font-family:Tahoma;color:black;"><br />
</span><span class="GramE"><span><span style="font-size:10pt;font-family:Tahoma;color:#646464;">When</span></span></span><span style="font-size:10pt;font-family:Tahoma;color:#646464;"> using the Internet for such activities as checking e-mail on afriend&#8217;s computer or shopping for a gift on a family PC, some users prefer notto leave any traces of their session. The <span class="SpellE">InPrivate</span>Browsing feature of Internet Explorer 8 prevents the browser from savingsession history, temporary Internet files, form data, cookies, and usernamesand passwords.</span></p>
<p class="MsoNormal" style="text-align:justify;"><span class="SpellE"><span style="font-size:10pt;font-family:Tahoma;color:#646464;">ctivate</span></span><span> <span class="SpellE">InPrivate</span>Browsing by selecting</span> <span>Start InPrivate</span> Browsing <span style="font-size:10pt;font-family:Tahoma;color:#646464;">either from a</span> <span>New Tab page</span> <span style="font-size:10pt;font-family:Tahoma;color:#646464;">or from the</span> <span>Safety</span> <span style="font-size:10pt;font-family:Tahoma;color:#646464;">menu—which is new in Internet Explorer 8. With the featureactivated, Internet Explorer 8 will launch a session that will retain noinformation and leave no trace of the user&#8217;s browsing activity. By default,activation of <span class="SpellE">InPrivate</span> Browsing also activates InPrivate</span> Blocking (discussed in the next section). Simplyclosing the browser window will end the <span class="SpellE"><span class="GramE">InPrivate</span></span>session.</p>
<p class="MsoNormal" style="text-align:justify;"><span> </span></p>
<h2 style="margin:18.75pt 0;"><span class="MsoHyperlink">DeleteBrowsing History</span></h2>
<p class="MsoNormal" style="margin-bottom:12pt;text-align:justify;"><span style="font-size:10pt;font-family:Tahoma;color:#646464;">Introduced in Internet Explorer 7, the Delete BrowsingHistory</span> feature enables a single-click deletion of the datasaved by Internet Explorer. Deleting records of web browsing activity has neverbeen easier!</p>
<p class="MsoNormal" style="margin-bottom:12pt;text-align:justify;"><span style="font-size:10pt;font-family:Tahoma;color:#646464;">Not all such records, however, need to be deleted. Forfrequently visited websites, the information stored in cookies is especiallyuseful. While many websites offer the so-called &#8220;Remember me&#8221; option,others (for example, financial websites) will store a cookie on every computerfrom which a user has accessed them; one use of this would be to eliminate therequirement for challenge questions (e.g. &#8220;What was your high schoolmascot?&#8221;)</span></p>
<p class="MsoNormal" style="margin-bottom:12pt;text-align:justify;"><span style="font-size:10pt;font-family:Tahoma;color:#646464;">Internet Explorer 8 addresses this issue by allowing users topreserve the cookies and temporary Internet files from the websites added tothe Favorites list</span></p>
<p class="MsoNormal" style="margin-bottom:12pt;text-align:justify;"><span style="font-size:10pt;font-family:Tahoma;color:#646464;">Thus, to stay registered with a specific website, a user wouldsimply add the website&#8217;s URL to Favorites, making sure that Preserve Favoriteswebsite data is selected; Internet Explorer will preserve all cookies and cachefiles for the website.</span></p>
<p class="MsoNormal" style="margin-bottom:12pt;text-align:justify;"><span style="font-size:10pt;font-family:Tahoma;color:#646464;">However, if a user wants to erase the browsing history completely,the Delete Browsing History on Exit feature will do the job!</span></p>
<h2 style="margin:18.75pt 0;"><span class="MsoHyperlink">Search</span></h2>
<p class="MsoNormal" style="margin-bottom:12pt;text-align:justify;"><span style="font-size:10pt;font-family:Tahoma;color:#646464;">The search functionality of Internet Explorer 8 builds upon thework we started in Internet Explorer 7, which saw the introduction of a searchbox that supports the addition of search providers through <span class="SpellE">OpenSearch</span>description files. We have enhanced the search box in Internet Explorer 8,adding features that will help users initiate a better search query and easilyswitch to a secondary search provider.</span></p>
<p class="MsoNormal" style="margin-bottom:12pt;text-align:justify;"><span style="font-size:10pt;font-family:Tahoma;color:#646464;">The main modification we have made in search is an improvedsearch box drop-down which will help users execute better queries. The InternetExplorer 8 search box drop-down includes AutoComplete, Search suggestions andresults from local history. AutoComplete results, which were available inInternet Explorer 7, show users queries that they had previously typed in thesearch box. Search Suggestions allow your currently selected search provider tosuggest different queries to you as you are typing in the search box. (Theseare discussed in detail in the section below.) Finally history results show theuser pages they had previously browsed to which are related to what they arecurrently typing in the search box.</span></p>
<h2 style="margin:18.75pt 0;"><span class="MsoHyperlink">SearchSuggestions</span></h2>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>Search suggestionsallow a search provider to suggest different queries while a user is typingtext into the search box. Search suggestions, as they are implemented incurrent toolbars and competing browsers, consist mainly of text suggestions forrelated terms that users might want to find; in some cases, specific links arealso suggested.</span></p>
<h2 style="margin:18.75pt 0;"><span class="MsoHyperlink">CaretBrowsing</span></h2>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>Caret Browsing is anew Accessibility feature that allows users to navigate a webpage using amoveable cursor on the screen and the keyboard. Users can select and copy textdown to a single character using only the keyboard. Other content types, liketable or images, can also be selected and copied.</span></p>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>Moving the cursorwithin the text of a webpage is similar to moving the cursor within the text ofa Word document. Holding the shift key down and pressing the arrow keys selectstext. Pressing F7 turns Caret Browsing on or off. It can be enabled on a pertab basis or for all tabs and windows.</span></p>
<h2 style="margin:18.75pt 0;"><span class="MsoHyperlink">Accelerators</span></h2>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>Accelerators are acontextual feature used to quickly access a service from any webpage. It iscommon for users to copy and paste content from one webpage to another, andaccelerators simplify this process.</span></p>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>Accelerators allowusers to find information without leaving the current webpage. For example, todetermine the location of a specific restaurant, a user will select therestaurant&#8217;s address, generating an in-place view of the map. Clicking the viewwill open a full webpage that includes additional information from the mappingservice.</span></p>
<h2 style="margin:18.75pt 0;"><span class="MsoHyperlink">WebSlices</span></h2>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>Web Slices is a new featurethat allows users to connect to a website by subscribing to content directlywithin a webpage on that website. Web Slices behave just like feeds, whereusers can subscribe to get updates and notifications of changes.</span></p>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>Internet Explorer 8users discover Web Slices within a webpage and add them to the Favorites bar: arow located below the Address bar and dedicated to easy access of links. Once auser has subscribed to a webpage, the browser will detect changes in the WebSlice and get notified about updates. Users can preview these updates directlyfrom the Favorites bar, and click through to the website to get moreinformation.</span></p>
<h2 style="margin:18.75pt 0;"><span class="MsoHyperlink">SuggestedSites</span></h2>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>Suggested Sites is anew feature which helps you find new websites that are interesting and relevantto you. With your permission, Internet Explorer will suggest new websites basedon sites you have visited in the past. You can see these suggestions by openingthe Suggested Sites Web Slice…</span></p>
<p class="MsoNormal" style="text-align:justify;"><span class="GramE"><span style="font-size:10pt;font-family:Tahoma;color:#646464;">or</span></span><span> by visiting theSuggested Sites page from the </span><span><span style="font-size:10pt;font-family:Tahoma;color:#646464;">Internet</span></span><span><span style="font-size:10pt;font-family:Tahoma;color:#646464;"> </span></span><span><span style="font-size:10pt;font-family:Tahoma;color:#646464;">Explorer</span></span><span><span style="font-size:10pt;font-family:Tahoma;color:#646464;"> </span></span><span><span style="font-size:10pt;font-family:Tahoma;color:#646464;">Favorites</span></span><span><span style="font-size:10pt;font-family:Tahoma;color:#646464;"> </span></span><span><span style="font-size:10pt;font-family:Tahoma;color:#646464;">Center</span></span><span style="font-size:10pt;font-family:Tahoma;color:#646464;">.</span></p>
<p class="MsoNormal" style="text-align:justify;"><span> </span></p>
<h2 style="margin:18.75pt 0;"><span class="MsoHyperlink">FavoritesBar</span></h2>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>In Internet Explorer7, the Links bar provided users with one-click access to their favorite sites.This bar has undergone a complete renovation for Internet Explorer 8.Specifically, it has been renamed Favorites, and it will allow users to accessnot only their favorite web content, such as links, feeds and Web Slices, butalso the documents created in Microsoft Word, Excel, and PowerPoint.</span></p>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>By using the new Addto Favorites Bar command, which is conveniently located on the Favorites baritself, a user can easily add a link to the Favorites bar</span></p>
<p class="MsoNormal"><span><span style="font-size:9pt;font-family:Tahoma;color:#646464;"> </span></span></p>
<h2 style="margin:18.75pt 0;"><span class="MsoHyperlink">TabGrouping</span></h2>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>This new feature ofInternet Explorer 8 Beta 2 allows users to put related tabs—the tabs thatoriginate from the same webpage—into groups. Users can form tab groups in one ofseveral ways, such as by opening a link from within a webpage in another tab,or by right-clicking a specific tab and clicking New Tab. If, for example, auser chooses to queue up several different search results, the related tabswill not only open next to the original search result page (as opposed to theend of the tab band) but will also be put all in one group represented by asolid color. Different colors for different browsing tasks—for example, aresearch project, an online shopping spree, or a set of news articles openedfrom the same newspaper website—allow users to quickly identify the tabs.</span></p>
<h2 style="margin:18.75pt 0;"><span class="MsoHyperlink">AutomaticCrash Recovery</span></h2>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>The Automatic CrashRecovery (ACR) feature of Internet Explorer 8 helps to prevent the loss of workin the unlikely event of browser failure or <span class="SpellE">nonresponse</span>.ACR takes advantage of the Loosely Coupled feature of Internet Explorer toprovide new crash recovery capabilities, including tab <span class="GramE">recovery,that</span> will minimize interruptions to a browsing session.</span></p>
<h2 style="margin:18.75pt 0;"><span class="SpellE"><span style="font-size:11pt;font-family:Tahoma;color:red;">SmartScreen</span></span><span style="font-size:11pt;font-family:Tahoma;color:red;"> Filter</span></h2>
<p style="text-align:justify;line-height:18pt;margin:3pt 0 11.25pt;"><span>A <span class="SpellE">phishing</span>site imitates a legitimate site to steal the user&#8217;s personal or financialinformation. In Internet Explorer 7, we introduced the <span class="SpellE">Phishing</span>Filter: a feature that warns users that they are about to visit a phishing</span> site. For Internet Explorer 8, we have built uponthe success of the <span class="SpellE">Phishing</span> Filter—which blocks overa million <span class="SpellE">phishing</span> attacks weekly—to develop the SmartScreen Filter. The latter offers the followingenhancements:</p>
<p class="MsoNormal" style="margin-left:20.25pt;text-indent:-.25in;"><span><span>·                   </span></span><span>Improved userinterface</span></p>
<p class="MsoNormal" style="margin-left:20.25pt;text-indent:-.25in;"><span><span>·                   </span></span><span>Faster performance</span></p>
<p class="MsoNormal" style="margin-left:20.25pt;text-indent:-.25in;"><span><span>·                   </span></span><span>New heuristics andenhanced telemetry</span></p>
<p class="MsoNormal" style="margin-left:20.25pt;text-indent:-.25in;"><span><span>·                   </span></span><span>Anti-malware</span> support for blocking unsafe downloads</p>
<p class="MsoNormal" style="margin-left:20.25pt;text-indent:-.25in;"><span><span>·                   </span></span><span>Improved group policysupport</span></p>
<p class="MsoNormal"><strong> </strong></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">References</p>
<p class="MsoNormal"> </p>
</div>
<br />Posted in Internet Explorer 8 beta  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayhatwal.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayhatwal.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayhatwal.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayhatwal.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=113&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2008/10/26/113/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>
	</item>
		<item>
		<title>PL/SQL Pragma</title>
		<link>http://vinayhatwal.wordpress.com/2008/08/25/plsql-pragma/</link>
		<comments>http://vinayhatwal.wordpress.com/2008/08/25/plsql-pragma/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 04:53:38 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[PL/SQL Pragma]]></category>
		<category><![CDATA[Oracle Pragma]]></category>
		<category><![CDATA[Pragma]]></category>
		<category><![CDATA[Vinayhatwal]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=94</guid>
		<description><![CDATA[PL/SQL Pragma   Pragma – Pragma is nothing but the compiler directive which simply conveys the information to the compiler. Because the Pragma is the complier directive so the processed at compile time not run time.   AUTONOMOUS_TRANSACTION Pragma   AUTONOMOUS_TRANSACTION Pragma instructs to the compiler to mark a transaction autonomous, or you can independent. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=94&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><strong><span style="font-size:20pt;color:#ff0000;font-family:&quot;">PL/SQL Pragma</span></strong></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;color:#ff0000;font-family:&quot;">Pragma – </span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">Pragma is nothing but the compiler directive which simply conveys the information to the compiler. Because the Pragma is the complier directive so the processed at compile time not run time.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;font-family:&quot;"> </span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;color:#ff0000;font-family:&quot;">AUTONOMOUS_TRANSACTION Pragma</span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;font-family:&quot;"> </span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">AUTONOMOUS_TRANSACTION Pragma instructs to the compiler to mark a transaction autonomous, or you can independent. An Autonomous transaction is the independent transactions which runs by the another transaction or main transaction. An autonomous transaction suspends the main transaction in which they are calling, do the SQL statements, commit or rollback then according to the user’s need then after completing resume the main transaction. </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">Commit or Rollback only works for the statements which are inside the calling transaction so that they are independent to the main transaction.<span>  </span>It does not share any lock, resources and any commit or rollback dependence with the main transaction. </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">If you are using it with the triggers then unlike normal triggers these autonomous triggers can perform the DDL operation by using the native dynamic SQL. If you set the isolation level of the main transaction to SERIALIZABLE, as follows, changes made by its autonomous transactions are not visible to the main transaction hen it resumes:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">See, if the main transaction perform the rollback at any save point after the autonomous block then it will not effect the changes made by the autonomous transaction because the autonomous transaction is fully independent from it’s main transaction.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;color:#ff0000;font-family:&quot;">Limitations –</span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">You can not use the Pragma in the Subprogram that resides in the package. You can only user Pragma in the individual subprogram. You can use Pragma anywhere in the declarative part of the PL/SQL Block but always use it on the top position in the declarative part for readability.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;color:#ff0000;font-family:&quot;">Consider the following block of code –</span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><em><span style="font-size:11pt;background:white;color:#008000;font-family:&quot;">&#8211; Main Procedure (Caller Procedure) </span></em></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">create</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">or</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">replace</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">procedure</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> MainProc </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">as</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">begin</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">update</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#808000;font-family:&quot;">myemployeemaster</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">set</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> employeename</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">=</span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">&#8216;vinny&#8217;</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">where</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> employeename</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">=</span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">&#8216;Ashish&#8217;</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span>SimpleProc</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">;</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>      </span></span><em><span style="font-size:11pt;background:white;color:#008000;font-family:&quot;">&#8211; Calling an ordinary procedure </span></em></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">rollback;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">exception</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">when</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">others</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">then</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">null;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">end;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><em><span style="font-size:11pt;background:white;color:#008000;font-family:&quot;">&#8211; Procedure without Autonomous Transaction Block (Calee Procedure)<span>   </span></span></em></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">create</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">or</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">replace</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">procedure</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> SimpleProc </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">as</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">begin</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">update</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#808000;font-family:&quot;">myemployeemaster</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">set</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> employeename</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">=</span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">&#8216;Vikram&#8217;</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">where</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> employeename</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">=</span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">&#8216;Pawan Kumar&#8217;</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">commit;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">exception</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">when</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">others</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">then</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">null;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">end;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"><span> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;color:#ff0000;font-family:&quot;">Explanation- </span></strong></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">In the above example the MainProc updates the MyEmployeeMaster table and update the name<span>  </span>Ashish to Vinny. But After a SimpleProc call the procedure want to rollback his transaction. But when the SimpleProc procedure called the control of MaiProc goes into the SiimpleProc. In the SimpleProc MyEmployeeMaster is again updating the name Pawan Kumar with the name Vikram and then it commit its transactions. After the completing of SimpleProc the control again goes to the MainProc Procedure and then want to rollback all the changes done by it. But See, The SimpleProc Transaction has already committed the whole transactions. See the effect in the table MyEmployeeMaster, You will see that all the transactions are committed even of the MainProc Procedure.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">It happened because the in the both procedure only single transaction is working, both are the part of a single transaction. So If you want to work on different Procedure for different transactions then you can use the Autonomous_Transaction Pragma. This Pragma will direct to the compiler for doing the different Transaction for the block where it defined.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;color:#ff0000;font-family:&quot;">Now the following Block of code is modified by using Autonomous_Transaction Pragma –</span></strong></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&quot;"><span> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><em><span style="font-size:11pt;background:white;color:#008000;font-family:&quot;">&#8211; Main Procedure (Caller Procedure) </span></em></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">create</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">or</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">replace</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">procedure</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> MainProc </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">as</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">begin</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">update</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#808000;font-family:&quot;">myemployeemaster</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">set</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> employeename</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">=</span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">&#8216;Vinay&#8217;</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">where</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> employeename</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">=</span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">&#8216;Vikram&#8217;</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span>AutoProc</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">;</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>      </span></span><em><span style="font-size:11pt;background:white;color:#008000;font-family:&quot;">&#8211; Calling an ordinary procedure </span></em></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">rollback;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">exception</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">when</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">others</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">then</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">null;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">end;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><em><span style="font-size:11pt;background:white;color:#008000;font-family:&quot;">&#8211; Procedure without Autonomous Transaction Block (Calee Procedure)<span>   </span></span></em></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">create</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">or</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">replace</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">procedure</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> AutoProc </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">as</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">pragma</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> autonomous_transaction</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">begin</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">update</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#808000;font-family:&quot;">myemployeemaster</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">set</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> employeename</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">=</span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">&#8216;Pawan Kumar&#8217;</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">where</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> employeename</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">=</span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">&#8216;vinny&#8217;</span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">commit;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"><span>    </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">exception</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">when</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#ff0000;font-family:&quot;">others</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">then</span><span style="font-size:11pt;background:white;color:#000000;font-family:&quot;"> </span><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">null;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;background:white;color:#0000ff;font-family:&quot;">end;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;color:#ff0000;font-family:&quot;">Explanation- </span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">Now consider the about block of code. In this code AutoProc Procedure difines the Pragma Autonomous_Transaction. So that it has a different transaction for this procedure . When a Commit operation is performed then it will only commit those transactions which are rekated to this procedure. And when the control goes back to the MainProc then it will rollback the transactions of the MainProc Procedure. So As a result name vinny in the MyEmployeeMaster is changed with the name Pawan Kumar. But<span>  </span>Vikram has not changed with the Vinay.</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vinayhatwal.wordpress.com/94/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vinayhatwal.wordpress.com/94/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayhatwal.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayhatwal.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayhatwal.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayhatwal.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=94&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2008/08/25/plsql-pragma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle Cursors</title>
		<link>http://vinayhatwal.wordpress.com/2008/08/19/oracle-cursors/</link>
		<comments>http://vinayhatwal.wordpress.com/2008/08/19/oracle-cursors/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 04:42:07 +0000</pubDate>
		<dc:creator>vinayhatwal</dc:creator>
				<category><![CDATA[Oracle Cursors]]></category>
		<category><![CDATA[Cursors]]></category>
		<category><![CDATA[Explicit Cursors]]></category>
		<category><![CDATA[Implicit Cursors]]></category>
		<category><![CDATA[Vinayhatwal]]></category>

		<guid isPermaLink="false">http://vinayhatwal.wordpress.com/?p=77</guid>
		<description><![CDATA[ORACLE CURSORS     Cursors are the work place user by the Oracle engine for its internal processing to save the data returned by the SQL statements. The type of a cursor depends upon the nature of its working. For Example if Oracle Engine open a cursor for its internal processing then it is known [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=77&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align:center;margin:0;" align="center"><strong><span style="font-size:17pt;color:#ff0000;font-family:&quot;">ORACLE CURSORS</span></strong></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:13pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;color:#000000;font-family:&quot;">Cursors are the work place user by the Oracle engine for its internal processing to save the data returned by the SQL statements. The type of a cursor depends upon the nature of its working. For Example if Oracle Engine open a cursor for its internal processing then it is known as <strong>Implicit Cursor</strong> and is a cursor defined by the user as a user defined cursor then it is called as <strong>Explicit Cursor</strong>.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;">
<p class="MsoNormal" style="margin:0;"> </p>
<p><span style="color:#000000;font-family:&quot;"><span style="font-size:small;"> <a href="http://vinayhatwal.files.wordpress.com/2008/08/cursors3.jpg"><img class="aligncenter size-full wp-image-85" src="http://vinayhatwal.files.wordpress.com/2008/08/cursors3.jpg?w=637&#038;h=232" alt="" width="637" height="232" /></a><a href="http://vinayhatwal.files.wordpress.com/2008/08/cursors2.jpg"></a></span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;">
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:17pt;color:#ff0000;font-family:&quot;">Implicit Cursors</span></strong></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:11pt;color:#ff0000;font-family:&quot;"> </span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">Implicit Cursors are automatically used by the Oracle Engine to store some information regarding the internal processing of the server. Implicit Cursors are automatically created, fetches records and closed by the oracle database server.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">Basically Internal Cursors are used to table the information about last insert, update, delete or single row select statement.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;font-family:&quot;">Implicit Cursor Attributes</span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;font-family:&quot;"> </span></strong></p>
<p class="MsoNormal" style="text-indent:-24pt;text-align:justify;margin:0 0 0 42pt;"><strong><span style="font-size:11pt;font-family:&quot;"><span>1)<span style="font-family:&quot;">       </span></span></span></strong><strong><span style="font-size:11pt;font-family:&quot;">SQL%ISOPEN </span></strong><span style="font-size:11pt;font-family:&quot;">–<strong> </strong>If the cursor is open then this attribute returns TRUE otherwise returns FALSE. In the case of implicit cursors this attribute always return FALSE because Implicit Cursors are automatically open and the closed by the Oracle Engine.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 0 0.25in;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-indent:-24pt;text-align:justify;margin:0 0 0 42pt;"><strong><span style="font-size:11pt;font-family:&quot;"><span>2)<span style="font-family:&quot;">       </span></span></span></strong><strong><span style="font-size:11pt;font-family:&quot;">SQL%FOUND –</span></strong><span style="font-size:11pt;font-family:&quot;"> If cursor affects one or more then one row by the SQL statement then this attribute will return TRUE otherwise it will return FALSE.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-indent:-24pt;text-align:justify;margin:0 0 0 42pt;"><strong><span style="font-size:11pt;font-family:&quot;"><span>3)<span style="font-family:&quot;">       </span></span></span></strong><strong><span style="font-size:11pt;font-family:&quot;">SQL%NOTFOUND –</span></strong><span style="font-size:11pt;font-family:&quot;"> This is opposite to the SQL%FOUND attribute. If the statement will not return any of the value then this attribute will be TRUE otherwise it will by FALSE.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-indent:-24pt;text-align:justify;margin:0 0 0 42pt;"><strong><span style="font-size:11pt;font-family:&quot;"><span>4)<span style="font-family:&quot;">       </span></span></span></strong><strong><span style="font-size:11pt;font-family:&quot;">SQL%ROWCOUNT – </span></strong><span style="font-size:11pt;font-family:&quot;">You can count number of affected rows by the last SQL statement by using this attribute.<strong></strong></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:11pt;font-family:&quot;">Consider the following block of code-</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;">Take the table used in the tutorial Native Dynamic SQL (MyEmployeeMaster).</span></span></p>
<div style="border-right:medium none;border-top:medium none;border-left:medium none;border-bottom:windowtext 1pt solid;padding:0 0 1pt;">
<p class="MsoNormal" style="text-align:justify;margin:0;padding:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
</div>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">CREATE</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">OR</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">REPLACE</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">PROCEDURE</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> demo_imp </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">IS</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span> </span>row_deleted </span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">VARCHAR2</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">(</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;">30</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">BEGIN</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>   </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">update</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#808000;font-family:Courier;">MYEMPLOYEEMASTER</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">set</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> EMPLOYEENAME</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">=</span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;Ashish&#8217;</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">where</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">upper(</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;">EMPLOYEENAME</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">)</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">like</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;%V%&#8217;</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">IF</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">SQL</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;">%ISOPEN </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">THEN</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>            </span><strong><em>dbms_output.put_line</em></strong></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">(</span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;SQL%FOUND &#8211; True&#8217;</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">else</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>            </span><strong><em>dbms_output.put_line</em></strong></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">(</span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;SQL%FOUND &#8211; False&#8217;</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">END</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">IF;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">IF</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">SQL</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;">%</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">FOUND</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">THEN</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>            </span><strong><em>dbms_output.put_line</em></strong></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">(</span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;SQL%FOUND &#8211; True&#8217;</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">else</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>            </span><strong><em>dbms_output.put_line</em></strong></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">(</span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;SQL%FOUND &#8211; False&#8217;</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">END</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">IF;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>               </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>             </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">IF</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">SQL</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;">%</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">NOTFOUND</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">THEN</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>            </span><strong><em>dbms_output.put_line</em></strong></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">(</span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;SQL%NOTFOUND &#8211; True&#8217;</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">else</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>            </span><strong><em>dbms_output.put_line</em></strong></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">(</span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;SQL%NOTFOUND &#8211; False&#8217;</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">END</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">IF;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>   </span><span>      </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span><strong><em>dbms_output.put_line</em></strong></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">(</span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;SQL%ROWCOUNT &#8211; &#8216;</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> || </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">SQL</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;">%</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">ROWCOUNT</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> || </span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216; NO OF ROWS AFFACTED&#8217;</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">END</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> demo_imp</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">;</span></p>
<div style="border-right:medium none;border-top:medium none;border-left:medium none;border-bottom:windowtext 1pt solid;padding:0 0 1pt;">
<p class="MsoNormal" style="text-align:justify;margin:0;padding:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
</div>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="text-decoration:underline;"><span style="font-family:&quot;"><span style="font-size:small;">Resule of above procedure – </span></span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="text-decoration:underline;"><span style="font-family:&quot;"><span style="text-decoration:none;"><span style="font-size:small;"> </span></span></span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;">SQL&gt; set serverout on;</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;">SQL&gt;<span>  </span>exec demo_imp;</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;">SQL%FOUND &#8211; False</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;">SQL%FOUND &#8211; True</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;">SQL%NOTFOUND &#8211; False</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;">SQL%ROWCOUNT &#8211; 3 NO OF ROWS AFFACTED</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:17pt;color:#ff0000;font-family:&quot;">Explicit Cursors –</span></strong></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:17pt;color:#ff0000;font-family:&quot;"> </span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;">Explicit Cursors are explicitly used by the user for the data processing. Explicit Cursors are not automatically opens and close by like an Implicit Cursor. It is declare, open and close by the user in the PL/SQL block. Following are the steps to take by the user for using the Explicit Cursors in their PL/SQL block.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
<p class="MsoNormal" style="text-indent:-0.5in;text-align:justify;margin:0 0 0 0.75in;"><span style="font-family:&quot;"><span><span style="font-size:small;">1)</span><span style="font-family:&quot;">              </span></span></span><span style="font-family:&quot;"><span style="font-size:small;">Declare the cursor in the declaration section with CURSOR keyword.</span></span></p>
<p class="MsoNormal" style="text-indent:-0.5in;text-align:justify;margin:0 0 0 0.75in;"><span style="font-family:&quot;"><span><span style="font-size:small;">2)</span><span style="font-family:&quot;">              </span></span></span><span style="font-family:&quot;"><span style="font-size:small;">Open the declared Cursor by using the OPEN keyword.</span></span></p>
<p class="MsoNormal" style="text-indent:-0.5in;text-align:justify;margin:0 0 0 0.75in;"><span style="font-family:&quot;"><span><span style="font-size:small;">3)</span><span style="font-family:&quot;">              </span></span></span><span style="font-family:&quot;"><span style="font-size:small;">Fetch the Record from the opened cursor by the FETCH … INTO keywords.</span></span></p>
<p class="MsoNormal" style="text-indent:-0.5in;text-align:justify;margin:0 0 0 0.75in;"><span style="font-family:&quot;"><span><span style="font-size:small;">4)</span><span style="font-family:&quot;">              </span></span></span><span style="font-family:&quot;"><span style="font-size:small;">Process the data in the cursor by using the loop by using the LOOP…. END LOOP block.</span></span></p>
<p class="MsoNormal" style="text-indent:-0.5in;text-align:justify;margin:0 0 0 0.75in;"><span style="font-family:&quot;"><span><span style="font-size:small;">5)</span><span style="font-family:&quot;">              </span></span></span><span style="font-family:&quot;"><span style="font-size:small;">Fetch the next record and point out the pointer to the next record by using the FETCH…. INTO.</span></span></p>
<p class="MsoNormal" style="text-indent:-0.5in;margin:0 0 0 0.75in;"><span style="font-family:&quot;"><span><span style="font-size:small;">6)</span><span style="font-family:&quot;">              </span></span></span></p>
<div class="MsoNormal" style="text-indent:-0.5in;margin:0 0 0 0.75in;"><span style="font-family:&quot;"><span style="font-size:small;">Close the opened cursor by using the CLOSE keyword.</span></span></div>
<div><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></div>
<div><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></div>
<p><span style="font-family:&quot;"><span style="font-size:small;"> </p>
<p></span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;font-family:&quot;">Explicit Cursor Attributes-</span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size:11pt;font-family:&quot;"><span>                </span></span></strong></p>
<p class="MsoNormal" style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.5in;"><strong><span style="font-size:11pt;font-family:&quot;"><span>1)<span style="font-family:&quot;">   </span></span></span></strong><strong><span style="font-size:11pt;font-family:&quot;">SQL%ISOPEN </span></strong><span style="font-size:11pt;font-family:&quot;">–<strong> </strong>If the cursor is open then this attribute returns TRUE otherwise returns FALSE.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 0 0.25in;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.5in;"><strong><span style="font-size:11pt;font-family:&quot;"><span>2)<span style="font-family:&quot;">   </span></span></span></strong><strong><span style="font-size:11pt;font-family:&quot;">SQL%FOUND –</span></strong><span style="font-size:11pt;font-family:&quot;"> If cursor affects one or more then one row by the SQL statement then this attribute will return TRUE otherwise it will return FALSE.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 0 0.25in;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.5in;"><strong><span style="font-size:11pt;font-family:&quot;"><span>3)<span style="font-family:&quot;">   </span></span></span></strong><strong><span style="font-size:11pt;font-family:&quot;">SQL%NOTFOUND –</span></strong><span style="font-size:11pt;font-family:&quot;"> This is opposite to the SQL%FOUND attribute. If the statement will not return any of the value then this attribute will be TRUE otherwise it will by FALSE.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 0 0.25in;"><span style="font-size:11pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="text-indent:-0.25in;text-align:justify;margin:0 0 0 0.5in;"><strong><span style="font-size:11pt;font-family:&quot;"><span>4)<span style="font-family:&quot;">   </span></span></span></strong><strong><span style="font-size:11pt;font-family:&quot;">SQL%ROWCOUNT – </span></strong><span style="font-size:11pt;font-family:&quot;">You can count number of affected rows by the last SQL statement by using this attribute.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
<div style="border-right:medium none;border-top:medium none;border-left:medium none;border-bottom:windowtext 1pt solid;padding:0 0 1pt;">
<p class="MsoNormal" style="text-align:justify;margin:0;padding:0;"><span style="font-family:&quot;"><span style="font-size:small;">Consider the following block of code</span></span></p>
</div>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 0 0.25in;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">CREATE</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">OR</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">REPLACE</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">PROCEDURE</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> demo_exp </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">IS</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span> </span>cur sys_refcursor</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">;</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>   </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span> </span>employeeidx </span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">number</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span> </span>eployeenamex </span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">varchar2</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">(</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;">20</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">BEGIN</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>   </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>    </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">open</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> cur </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">for</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">select</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> employeeid</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">,</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> employeename </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">from</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#808000;font-family:Courier;">myemployeemaster</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>    </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">fetch</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> cur </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">into</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> employeeidx</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">,</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;">eployeenamex </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">;</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>  </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>    </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">while</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> cur%</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">found</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>    </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">loop</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span><strong><em>dbms_output.put_line</em></strong></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">(</span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;employeeid: &#8216;</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> || employeeidx<span>  </span>|| </span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;&#8212;-&#8217;</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> || </span><span style="font-size:10pt;background:white;color:#ff0000;font-family:Courier;">&#8216;eployeename: &#8216;</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> || eployeenamex </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">fetch</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> cur </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">into</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> employeeidx</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">,</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;">eployeenamex </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">;</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>  </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>        </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">commit;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>    </span></span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">end</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> </span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">loop;</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"><span>    </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 0 0.25in;"><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">END</span><span style="font-size:10pt;background:white;color:#000000;font-family:Courier;"> demo_imp</span><span style="font-size:10pt;background:white;color:#0000ff;font-family:Courier;">;</span><span style="font-size:small;"><span style="font-family:&quot;"><span>       </span></span><strong></strong></span></p>
<div style="border-right:medium none;border-top:medium none;border-left:medium none;border-bottom:windowtext 1pt solid;padding:0 0 1pt;">
<p class="MsoNormal" style="text-align:justify;margin:0;padding:0;"><span style="font-family:&quot;"><span style="font-size:small;"> </span></span></p>
</div>
<p>&lt;p class=&#8221;MsoNormal&#8221; style=&#8221;text-align:justify;margin:0;&#8221;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vinayhatwal.wordpress.com/77/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vinayhatwal.wordpress.com/77/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayhatwal.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayhatwal.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayhatwal.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayhatwal.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayhatwal.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayhatwal.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayhatwal.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayhatwal.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayhatwal.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayhatwal.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayhatwal.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayhatwal.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayhatwal.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayhatwal.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayhatwal.wordpress.com&amp;blog=4320862&amp;post=77&amp;subd=vinayhatwal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayhatwal.wordpress.com/2008/08/19/oracle-cursors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30134ff30180ffc15825d15c005dbce5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vinayhatwal</media:title>
		</media:content>

		<media:content url="http://vinayhatwal.files.wordpress.com/2008/08/cursors3.jpg" medium="image" />
	</item>
	</channel>
</rss>
