<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-651353080669432981</id><updated>2026-07-03T09:44:20.205-07:00</updated><category term="Java Script...."/><title type='text'>Basic Knowledge in Microsoft Technology and Data Science with Python</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-6304830356133733800</id><published>2020-03-14T09:56:00.000-07:00</published><updated>2020-03-14T22:39:44.700-07:00</updated><title type='text'>Hive Partitions, Types of Hive Partitioning with Examples</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 class=&quot;post-title entry-title fittexted_for_single_post_title&quot; style=&quot;background-color: white; border: 0px; color: #444444; font-family: Georgia, Georgia, serif; font-size: 38.8px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-weight: 400; letter-spacing: -1px; line-height: 1.5em; margin: 0px 0px 10px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 38.25px; font-style: inherit; letter-spacing: -0.7px; text-transform: uppercase;&quot;&gt;1. Objective&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;entry themeform fittexted_for_entry&quot; style=&quot;background-color: white; border: 0px; font-family: Georgia, Georgia, serif; font-size: 18px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.6em; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;entry-inner&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
The&amp;nbsp;&lt;a href=&quot;http://data-flair.training/blogs/apache-hive-tutorial/&quot; style=&quot;border: 0px; color: #65abf6; font: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Hive tutorial&lt;/span&gt;&lt;/a&gt;&amp;nbsp;explains about the Hive partitions. This blog will help you to answer what is Hive partitioning, what is the need of partitioning, how it improves the performance? Partitioning is the optimization technique in Hive which improves the performance significantly. Apache Hive is the data warehouse on the top of&amp;nbsp;&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;http://data-flair.training/blogs/hadoop-introduction-tutorial-quick-guide/&quot; style=&quot;border: 0px; color: #65abf6; font: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;Hadoop&lt;/a&gt;&lt;/span&gt;, which enables ad-hoc analysis over structured and semi-structured data. Let’s discuss Apache Hive partitioning in detail.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
So, let’s start the Hive Partitions tutorial.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 38.25px; font-style: inherit; font-weight: inherit; letter-spacing: -0.7px;&quot;&gt;2.&amp;nbsp;What are the Hive Partitions?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Apache Hive&lt;/span&gt;&amp;nbsp;organizes tables into&amp;nbsp;&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;partitions&lt;/span&gt;. Partitioning is a way of dividing a table into related parts based on the values of particular columns like date, city, and department. Each table in the hive can have one or more partition keys to identify a particular partition. Using partition it is easy to do queries on slices of the data.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: 38.25px; font-style: inherit; font-weight: inherit; letter-spacing: -0.7px;&quot;&gt;3. Why is Partitioning Important?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
In the current century, we know that the huge amount of data which is in the range of petabytes is getting stored in&lt;a href=&quot;http://data-flair.training/blogs/comprehensive-hdfs-guide-introduction-architecture-data-read-write-tutorial/&quot; style=&quot;border: 0px; color: #65abf6; font: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;HDFS&lt;/span&gt;.&lt;/a&gt;&amp;nbsp;So due to this, it becomes very difficult for&amp;nbsp;Hadoop&amp;nbsp;users to query this huge amount of data.&lt;br /&gt;
The Hive was introduced to lower down this burden of data querying. Apache Hive converts the SQL queries into&amp;nbsp;&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;http://data-flair.training/blogs/hadoop-mapreduce-introduction-tutorial-comprehensive-guide/&quot; style=&quot;border: 0px; color: #65abf6; font: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;MapReduce&lt;/a&gt;&lt;/span&gt;&amp;nbsp;jobs and then submits it to the&amp;nbsp;&lt;a href=&quot;http://data-flair.training/blogs/install-configure-apache-hadoop-2-7-x-on-ubuntu/&quot; style=&quot;border: 0px; color: #65abf6; font: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Hadoop cluster&lt;/span&gt;&lt;/a&gt;. When we submit a SQL query, Hive read the entire data-set. So, it becomes inefficient&amp;nbsp;to run&amp;nbsp;&lt;a href=&quot;http://data-flair.training/blogs/hadoop-mapreduce-job-execution-flow/&quot; style=&quot;border: 0px; color: #65abf6; font: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MapReduce jobs&lt;/span&gt;&lt;/a&gt;&amp;nbsp;over a large table. Thus this is resolved by creating partitions in tables. Apache Hive makes this job of implementing partitions very easy by creating partitions by its automatic partition scheme at the time of table creation.&lt;br /&gt;
In Partitioning method, all the table data is divided into multiple partitions. Each partition corresponds to a specific value(s) of partition column(s). It is kept as a sub-record inside the table’s record present in the HDFS. Therefore on querying a particular table, appropriate partition of the table is queried which contains the query value. Thus this decreases the I/O time required by the query. Hence increases the performance speed.&lt;/div&gt;
&lt;h2 class=&quot;fittexted_for_content_h2&quot; style=&quot;border: 0px; color: #444444; font-family: inherit; font-size: 38.25px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; letter-spacing: -0.7px; line-height: 1.3em; margin: 0px 0px 14px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;
4. How to Create Partitions in Hive?&lt;/h2&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #444444; font-weight: inherit;&quot;&gt;To create data partitioning in Hive following command is used-&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;em style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;CREATE TABLE table_name (column1 data_type, column2 data_type) PARTITIONED BY (partition1 data_type, partition2 data_type,….);&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;/div&gt;
&lt;h2 class=&quot;fittexted_for_content_h2&quot; style=&quot;border: 0px; color: #444444; font-family: inherit; font-size: 38.25px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; letter-spacing: -0.7px; line-height: 1.3em; margin: 0px 0px 14px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;
5. Hive Data Partitioning Example&lt;/h2&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
Now let’s understand data partitioning in Hive with an example. Consider a table named&amp;nbsp;&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Tab1&lt;/span&gt;. The table contains client detail like id, name, dept, and yoj( year of joining). Suppose we need to retrieve the details of all the clients who joined in 2012. Then, the query searches the whole table for the required information. But if we partition the client data with the year and store it in a separate file, this will reduce the query processing time. The below example will help us to learn how to partition a file and its data-&lt;br /&gt;
The file name says file1 contains client data table:&lt;/div&gt;
&lt;div class=&quot;EnlighterJSWrapper eclipseEnlighterJSWrapper&quot; style=&quot;border: 0px; color: #444444; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 10px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; margin: 0px; overflow-wrap: break-word; overflow: auto; padding: 0px; position: relative; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;ol class=&quot;hoverEnabled eclipseEnlighterJS EnlighterJS&quot; style=&quot;border-radius: 5px; border: 8px solid rgb(243, 243, 243); color: #939393; font-size: 11px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px 0px 20px; overflow-wrap: break-word; overflow: auto; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li class=&quot; odd&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 5px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;tab1/clientdata/file1&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; even&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;id, name, dept, yoj&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; odd&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, sunny, SC, &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2009&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; even&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, animesh, HR, &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2009&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; odd&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, sumeer, SC, &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2010&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; even&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 5px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, sarthak, TP, &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2010&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-weight: inherit;&quot;&gt;Now, let us partition above data into two files using years&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;EnlighterJSWrapper eclipseEnlighterJSWrapper&quot; style=&quot;border: 0px; color: #444444; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 10px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; margin: 0px; overflow-wrap: break-word; overflow: auto; padding: 0px; position: relative; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;ol class=&quot;hoverEnabled eclipseEnlighterJS EnlighterJS&quot; style=&quot;border-radius: 5px; border: 8px solid rgb(243, 243, 243); color: #939393; font-size: 11px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px 0px 20px; overflow-wrap: break-word; overflow: auto; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li class=&quot; odd&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 5px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;tab1/clientdata/&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2009&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/file2&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; even&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, sunny, SC, &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2009&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; odd&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, animesh, HR, &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2009&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; even&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;tab1/clientdata/&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2010&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/file3&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; odd&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, sumeer, SC, &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2010&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; even&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 5px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, sarthak, TP, &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2010&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-weight: inherit;&quot;&gt;Now when we are retrieving the data from the table, only the data of the specified partition will be queried. Creating a partitioned table is as follows:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;EnlighterJSWrapper eclipseEnlighterJSWrapper&quot; style=&quot;border: 0px; color: #444444; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 10px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; margin: 0px; overflow-wrap: break-word; overflow: auto; padding: 0px; position: relative; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;ol class=&quot;hoverEnabled eclipseEnlighterJS EnlighterJS&quot; style=&quot;border-radius: 5px; border: 8px solid rgb(243, 243, 243); color: #939393; font-size: 11px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px 0px 20px; overflow-wrap: break-word; overflow: auto; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li class=&quot; odd&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 5px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CREATE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;me0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;table_tab1&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;border: 0px; color: #777777; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;id &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;INT&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, name &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;STRING&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, dept &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;STRING&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, yoj &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;INT&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;border: 0px; color: #777777; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PARTITIONED&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;me0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;BY&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;border: 0px; color: #777777; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;year &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;STRING&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;border: 0px; color: #777777; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; even&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 1px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LOAD&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;DATA&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LOCAL&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;INPATH&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; tab1’/clientdata/&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2009&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/file2’&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OVERWRITE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;INTO&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; studentTab &lt;/span&gt;&lt;span class=&quot;me0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PARTITION&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;border: 0px; color: #777777; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;border: 0px; color: #777777; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st1&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;2009&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;border: 0px; color: #777777; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot; odd&quot; style=&quot;border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(248, 248, 248); border-image: initial; border-style: solid; border-width: 0px 0px 0px 2px; color: #787878; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: outside decimal; margin: 0px 0px 0px 40px; padding: 1px 5px 5px 14px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LOAD&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;DATA&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LOCAL&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;INPATH&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; tab1’/clientdata/&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2010&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/file3’&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OVERWRITE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;INTO&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; studentTab &lt;/span&gt;&lt;span class=&quot;me0&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PARTITION&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;border: 0px; color: #777777; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;border: 0px; color: #777777; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st1&quot; style=&quot;border: 0px; color: #990073; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;2010&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;border: 0px; color: #777777; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;border: 0px; color: black; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;h2 class=&quot;fittexted_for_content_h2&quot; style=&quot;border: 0px; color: #444444; font-family: inherit; font-size: 38.25px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; letter-spacing: -0.7px; line-height: 1.3em; margin: 0px 0px 14px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;
6. Types of Hive Partitioning&lt;/h2&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
Till now we have discussed Introduction to Hive Partitions and How to create Hive partitions. Now we are going to introduce the types of data partitioning in Hive. There are two types of Partitioning in Apache Hive-&lt;/div&gt;
&lt;ul style=&quot;border: 0px; color: #444444; font: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Static Partitioning&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Dynamic Partitioning&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
Let’s discuss these types of Hive Partitioning one by one-&lt;/div&gt;
&lt;h3 class=&quot;fittexted_for_content_h3&quot; style=&quot;border: 0px; color: #444444; font-family: inherit; font-size: 31.5px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; letter-spacing: -0.5px; line-height: 1.3em; margin: 0px 0px 14px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;
i. Hive Static Partitioning&lt;/h3&gt;
&lt;ul style=&quot;border: 0px; color: #444444; font: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Insert input data files individually into a partition table is Static Partition.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Usually when loading files (big files) into&amp;nbsp;&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Hive tables&amp;nbsp;&lt;/span&gt;static partitions are preferred.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Static Partition saves your time in loading data compared to dynamic partition.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;You “statically” add a partition in the table and move the file into the partition of the table.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;We can alter the partition in the static partition.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;You can get the partition column value from the filename, day of date etc without reading the whole big file.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;If you want to use the Static partition in the hive you should set property&amp;nbsp;&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;set hive.mapred.mode = strict&amp;nbsp;&lt;/span&gt;This property set by default in hive-site.xml&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Static partition is in Strict Mode.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;You should use where&amp;nbsp;clause&amp;nbsp;to use limit in the static partition.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;You can perform Static partition on Hive Manage table or external table.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;fittexted_for_content_h3&quot; style=&quot;border: 0px; color: #444444; font-family: inherit; font-size: 31.5px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; letter-spacing: -0.5px; line-height: 1.3em; margin: 0px 0px 14px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;
ii. Hive Dynamic Partitioning&lt;/h3&gt;
&lt;ul style=&quot;border: 0px; color: #444444; font: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Single insert to partition table is known as a dynamic partition.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Usually, dynamic partition loads the data from the non-partitioned table.&lt;/li&gt;
&lt;div class=&quot;google-auto-placed ap_container&quot; style=&quot;border: 0px; clear: none; font: inherit; height: auto; margin: 0px; padding: 0px; text-align: center; vertical-align: baseline; width: 552px;&quot;&gt;
&lt;ins class=&quot;adsbygoogle adsbygoogle-noablate&quot; data-ad-client=&quot;ca-pub-9834688387117374&quot; data-ad-format=&quot;auto&quot; data-adsbygoogle-status=&quot;done&quot; style=&quot;background: transparent; border: 0px; display: block; font: inherit; margin: auto; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;ins id=&quot;aswift_4_expand&quot; style=&quot;background: transparent; border: none; display: inline-table; font: inherit; height: 0px; margin: 0px; padding: 0px; position: relative; vertical-align: baseline; visibility: visible; width: 552px;&quot;&gt;&lt;ins id=&quot;aswift_4_anchor&quot; style=&quot;background: transparent; border: none; display: block; font: inherit; height: 0px; margin: 0px; opacity: 0; overflow: hidden; padding: 0px; position: relative; vertical-align: baseline; visibility: visible; width: 552px;&quot;&gt;&lt;iframe allowfullscreen=&quot;true&quot; allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;138&quot; hspace=&quot;0&quot; id=&quot;aswift_4&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;aswift_4&quot; scrolling=&quot;no&quot; style=&quot;border-style: initial; border-width: 0px; font: inherit; height: 138px; left: 0px; margin: 0px; padding: 0px; position: absolute; top: 0px; vertical-align: baseline; width: 552px;&quot; vspace=&quot;0&quot; width=&quot;552&quot;&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/ins&gt;&lt;/div&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Dynamic&amp;nbsp;Partition takes more&amp;nbsp;time in loading data compared to static&amp;nbsp;partition.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;When you have large data stored in a table then the Dynamic partition is&amp;nbsp;suitable.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;If you want to partition a number of columns but you don’t know how many columns then also dynamic partition is suitable.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Dynamic partition there is no required where clause to use limit.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;we can’t perform alter on the Dynamic partition.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;You can perform dynamic partition on hive external table and managed table.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;If you want to use the Dynamic partition in the hive then the mode is in non-strict mode.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Here are Hive dynamic partition properties you should allow&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 class=&quot;fittexted_for_content_h2&quot; style=&quot;border: 0px; color: #444444; font-family: inherit; font-size: 38.25px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; letter-spacing: -0.7px; line-height: 1.3em; margin: 0px 0px 14px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;
7. Hive Partitioning – Advantages and Disadvantages&lt;/h2&gt;
&lt;div class=&quot;code-block code-block-1&quot; style=&quot;border: 0px; clear: both; color: #444444; font: inherit; margin: 8px auto; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit; text-align: left;&quot;&gt;Let’s discuss some benefits and limitations of Apache Hive Partitioning-&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;a) Hive Partitioning Advantages&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;border: 0px; color: #444444; font: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Partitioning in Hive distributes execution load horizontally.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;In partition faster execution of queries with the low volume of data takes place. For example, search population from Vatican City returns very fast instead of searching entire world population.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;b) Hive Partitioning Disadvantages&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;border: 0px; color: #444444; font: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;There is the possibility of too many small partition creations- too many directories.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Partition is effective for low volume data. But there some queries like group by on high volume of data take a long time to execute. For example, grouping population of China will take a long time as compared to a grouping of the population in Vatican City.&lt;/li&gt;
&lt;li style=&quot;border: 0px; font: inherit; list-style: disc; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;There is no need for searching entire table column for a single record.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
So, this was all in Hive Partitions. Hope you like our explanation.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/rr17cbPGWGA/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;366&quot; src=&quot;https://www.youtube.com/embed/rr17cbPGWGA?feature=player_embedded&quot; width=&quot;520&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;h2 class=&quot;fittexted_for_content_h2&quot; style=&quot;border: 0px; color: #444444; font-family: inherit; font-size: 38.25px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; letter-spacing: -0.7px; line-height: 1.3em; margin: 0px 0px 14px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/h2&gt;
&lt;h2 class=&quot;fittexted_for_content_h2&quot; style=&quot;border: 0px; color: #444444; font-family: inherit; font-size: 38.25px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; letter-spacing: -0.7px; line-height: 1.3em; margin: 0px 0px 14px; overflow-wrap: break-word; padding: 0px; vertical-align: baseline;&quot;&gt;
8. Conclusion – Hive Partitions&lt;/h2&gt;
&lt;div style=&quot;border: 0px; color: #444444; font: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
Hope this blog will help you a lot to understand what exactly is partition in Hive, what is Static partitioning in Hive, What is Dynamic partitioning in Hive. We have also covered various advantages and disadvantages of Hive partitioning. If you have any query related to Hive Partitions, so please leave a comment. We will be glad to solve them.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/6304830356133733800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2020/03/hive-partitions-types-of-hive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/6304830356133733800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/6304830356133733800'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2020/03/hive-partitions-types-of-hive.html' title='Hive Partitions, Types of Hive Partitioning with Examples'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/rr17cbPGWGA/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-5972650917402389163</id><published>2020-02-28T09:04:00.002-08:00</published><updated>2020-02-28T09:08:37.547-08:00</updated><title type='text'>Hive Installation and Launch !</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: #fefdfa; color: #d52a33; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
Hive installation on Windows 10&lt;/h3&gt;
&lt;div class=&quot;post-header&quot; style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 1.6; margin: 0px 0px 1em;&quot;&gt;
&lt;div class=&quot;post-header-line-1&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-5938247125980587713&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; height: auto !important; line-height: 1.4; position: relative; width: 696px;&quot;&gt;
&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Bz5MlfwXHiarlBVk2QiOld1_t715dObeWDyzyE-2JHh4yl2MvYQqafgKXdas1EucjWbyU_U_JlwUSvzE1eKGStXfss2aMJRJHYxpJvvhpDa400jK_Y9dY6XyzMhjRZi4oe9AbbjlEQ/s1600/Apache_Hive_logo.svg.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1200&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Bz5MlfwXHiarlBVk2QiOld1_t715dObeWDyzyE-2JHh4yl2MvYQqafgKXdas1EucjWbyU_U_JlwUSvzE1eKGStXfss2aMJRJHYxpJvvhpDa400jK_Y9dY6XyzMhjRZi4oe9AbbjlEQ/s200/Apache_Hive_logo.svg.png&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; width=&quot;200&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hive Introduction&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In reference to&amp;nbsp;&lt;a href=&quot;https://www.solutionmandi.com/2018/11/hadoop-installation-on-windows-10.html&quot; style=&quot;color: #7d181e; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;Hadoop&amp;nbsp;&lt;/a&gt;and&amp;nbsp;&lt;a href=&quot;https://www.solutionmandi.com/2018/11/hbase-installation-on-windows-10.html&quot; style=&quot;color: #7d181e; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;HBase&amp;nbsp;&lt;/a&gt;outline as well installation over Windows environment, already we have been talked and gone through the same in my previous post. We came to know that Hadoop can perform only batch processing, and data will be accessed only in a sequential manner. It does mean one has to search the entire data-set even for the simplest of jobs.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In such scenario, a huge data-set when processed results in another huge data set, which should also be processed sequentially. At this point, a new solution is needed to access any point of data in a single unit of time (random access). Here the HBase can store massive amounts of data from terabytes to petabytes and allows fast random reads and writes that cannot be handled by the Hadoop.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;HBase is an open source non-relational (NoSQL) distributed column-oriented database that runs on top of HDFS and real-time read/write access to those large data-sets. Initially, it was Google Big Table, afterwards it was re-named as HBase and is primarily written in Java, designed to provide quick random access to huge amounts of the data-set.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Next in this series, we will walk through Apache Hive, the Hive is a data warehouse infrastructure work on Hadoop Distributed File System and MapReduce to encapsulate Big Data, and makes querying and analyzing stress-free. In fact, it is an ETL tool for Hadoop ecosystem, enables developers to write Hive Query Language (HQL) statements very similar to SQL statements.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hive Installation&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In brief, Hive is a data warehouse software project built on top of Hadoop, that facilitate reading, writing, and managing large datasets residing in distributed storage using SQL. Honestly, before moving ahead, it is essential to install Hadoop first, I am considering Hadoop is already installed, if not, then go to my previous post&amp;nbsp;&lt;a href=&quot;https://www.solutionmandi.com/2018/11/hadoop-installation-on-windows-10.html&quot; style=&quot;color: #7d181e; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;how to install Hadoop on Windows environment&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;I went through Hive (2.1.0) installation on top of Derby Metastore (10.12.1.1), though you can use any stable version.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Download Hive 2.1.0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;https://archive.apache.org/dist/hive/hive-2.1.0/&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Download Derby Metastore 10.12.1.1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;https://archive.apache.org/dist/db/derby/db-derby-10.12.1.1/&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Download hive-site.xml&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;https://mindtreeonline-my.sharepoint.com/:u:/g/personal/m1045767_mindtree_com1/EbsE-U5qCIhIpo8AmwuOzwUBstJ9odc6_QA733OId5qWOg?e=2X9cfX&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;https://drive.google.com/file/d/1qqAo7RQfr5Q6O-GTom6Rji3TdufP81zd/view?usp=sharing&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP - 1: Extract the Hive file&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Extract file apache-hive-2.1.0-bin.tar.gz and place under &quot;D:\Hive&quot;, you can use any preferred location –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[1] You will get again a tar file post extraction –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiekkvxf79o-F_2m7Z_TOJRkmoQkT1MEa-Jxv2-cYIlr6NlTOHhOvESqx9tBI6phyh7n0V9WgBMXJGxIaKpIg7sZBMCvia3xpLH-UehiaBpALVhchQ8zjlEzZ1TXbx-OCuyBcPE3N03Xw/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Hive folder&quot; border=&quot;0&quot; data-original-height=&quot;185&quot; data-original-width=&quot;471&quot; height=&quot;155&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiekkvxf79o-F_2m7Z_TOJRkmoQkT1MEa-Jxv2-cYIlr6NlTOHhOvESqx9tBI6phyh7n0V9WgBMXJGxIaKpIg7sZBMCvia3xpLH-UehiaBpALVhchQ8zjlEzZ1TXbx-OCuyBcPE3N03Xw/s400/1.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[2] Go inside of apache-hive-2.1.0-bin.tar folder and extract again –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwMAoLm7H2oBocX0d1u3HEn2Ge5yw4l_y8EZpiTaHBLda6Tc7B-60bgIPurfRZkFOkp-nFciqVjbFxIOMCr6SToGuDLZua6R0a68-nPJyYr7WlQpK__iIYCTaJIEAPmb6EuwNpmQxOig/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #d52a33; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Extracted folder&quot; border=&quot;0&quot; data-original-height=&quot;150&quot; data-original-width=&quot;791&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwMAoLm7H2oBocX0d1u3HEn2Ge5yw4l_y8EZpiTaHBLda6Tc7B-60bgIPurfRZkFOkp-nFciqVjbFxIOMCr6SToGuDLZua6R0a68-nPJyYr7WlQpK__iIYCTaJIEAPmb6EuwNpmQxOig/s640/2.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[3] Copy the leaf folder “apache-hive-2.1.0-bin” and move to the root folder &quot;D:\Hive&quot; and removed all other files and folders –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI3k19pnoJiybFJ1XrzlJRHQZMQ4-gmqYO7HCXAawTSvo0ljb3Cp5AoTkb-hReJXmJZSgol7phV6Ekgvy2o0O0e0CEc1OYGsuMZFskNgMUyKb8GCH5sd3kMQaB3-HN6ZcGSllZdEltug/s1600/4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;img alt=&quot;Hive folder details&quot; border=&quot;0&quot; data-original-height=&quot;497&quot; data-original-width=&quot;647&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI3k19pnoJiybFJ1XrzlJRHQZMQ4-gmqYO7HCXAawTSvo0ljb3Cp5AoTkb-hReJXmJZSgol7phV6Ekgvy2o0O0e0CEc1OYGsuMZFskNgMUyKb8GCH5sd3kMQaB3-HN6ZcGSllZdEltug/s400/4.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP - 2: Extract the Derby file&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Similar to Hive, extract file db-derby-10.12.1.1-bin.tar.gz and place under &quot;D:\Derby&quot;, you can use any preferred location –&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqR8iUuG3frFFQd5PyKGcPmkP5F52S2VCZYb7YNvK0Uy1W8G8YaMvDRtbeMfHfy6GAGXReC12pnwu8ytcjfYOlbR3o6dt6QdM-gYC6wvAGvm7NAFctEqEZXUkykyFKrTCVNgUtTmkZvw/s1600/5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Derby folder&quot; border=&quot;0&quot; data-original-height=&quot;179&quot; data-original-width=&quot;643&quot; height=&quot;110&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqR8iUuG3frFFQd5PyKGcPmkP5F52S2VCZYb7YNvK0Uy1W8G8YaMvDRtbeMfHfy6GAGXReC12pnwu8ytcjfYOlbR3o6dt6QdM-gYC6wvAGvm7NAFctEqEZXUkykyFKrTCVNgUtTmkZvw/s400/5.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxsxEhM8Acan2j6LmwSKjstE1EoN9p6wPLCi96FyfhpxzVJvTK3vt9TS4UstXdwKoIGgShFq-rMtPeJcbyJWlAxxyj25nsP_Xm_IAas8rIWRpoSUQkxb34MKGEzNZpDn5-iC4Sapj5-g/s1600/6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;img alt=&quot;Derby folder details&quot; border=&quot;0&quot; data-original-height=&quot;466&quot; data-original-width=&quot;656&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxsxEhM8Acan2j6LmwSKjstE1EoN9p6wPLCi96FyfhpxzVJvTK3vt9TS4UstXdwKoIGgShFq-rMtPeJcbyJWlAxxyj25nsP_Xm_IAas8rIWRpoSUQkxb34MKGEzNZpDn5-iC4Sapj5-g/s400/6.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP - 3: Moving hive-site.xml file&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Drop the downloaded file “hive-site.xml” to hive configuration location “D:\Hive\apache-hive-2.1.0-bin\conf”.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhICRoiyflNtXWz_9VXA9F1vvqb1x3648tG29K6QQudGImKd-nYZHB8vDW2MlMysIVsF_17X13bv92JNaw5WAigRe05YnP2ZFQa4nwNdCunfahmNPM1RhmYUl3ZKx3ylBqSPeFKbFPNRA/s1600/7.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Hive-site.xml&quot; border=&quot;0&quot; data-original-height=&quot;418&quot; data-original-width=&quot;635&quot; height=&quot;263&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhICRoiyflNtXWz_9VXA9F1vvqb1x3648tG29K6QQudGImKd-nYZHB8vDW2MlMysIVsF_17X13bv92JNaw5WAigRe05YnP2ZFQa4nwNdCunfahmNPM1RhmYUl3ZKx3ylBqSPeFKbFPNRA/s400/7.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP - 4: Moving Derby&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;libraries&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Next, need to drop all derby library to hive library location –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[1] Move to library folder under derby location D:\Derby\db-derby-10.12.1.1-bin\lib.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRoGttBhMZ-JihOt8N2I9fuwr-6b8L3i5wUML-XpMreN0knkZJiv0hf71Lu3F-HUuD2mXCI9c9a8zzP4bVos-U_-Oxb1mTxFwv5BIOvuze-1wa2iLeRWD49nFGwHoVdioVCpRzs_WOfQ/s1600/8.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Derby libraries&quot; border=&quot;0&quot; data-original-height=&quot;289&quot; data-original-width=&quot;602&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRoGttBhMZ-JihOt8N2I9fuwr-6b8L3i5wUML-XpMreN0knkZJiv0hf71Lu3F-HUuD2mXCI9c9a8zzP4bVos-U_-Oxb1mTxFwv5BIOvuze-1wa2iLeRWD49nFGwHoVdioVCpRzs_WOfQ/s400/8.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[2] Select all and copy all libraries.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[3] Move to library folder under hive location D:\Hive\apache-hive-2.1.0-bin\lib.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLUMAMLVHmtRWfLyzpwAj5qv4-CPXmk-w0tlQ_5FAX748a-3WdBdKAp7-qx26KSUSlV0sPgw6btQmgXz14vBZQD-ZwUvtvDaC_OphfIyfRh-9F7qx57AyjIrmsTie-h9m5Y5jmeolMJQ/s1600/9.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Moved libraries&quot; border=&quot;0&quot; data-original-height=&quot;354&quot; data-original-width=&quot;571&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLUMAMLVHmtRWfLyzpwAj5qv4-CPXmk-w0tlQ_5FAX748a-3WdBdKAp7-qx26KSUSlV0sPgw6btQmgXz14vBZQD-ZwUvtvDaC_OphfIyfRh-9F7qx57AyjIrmsTie-h9m5Y5jmeolMJQ/s400/9.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[4] Drop all selected libraries here.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu4V41dcZ69236Kh2rJR7O5BulMfm52DKsgD4rQ2hhah1pEr4nAhN2X47WNFGD1MSkayOMrDRkEzUB8mN0cttgLQFTxfTz1c_Y5Wv4B_27WbDUX_GsSUBncGKLX4WiMxSRj3kubrhNSQ/s1600/10.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;img alt=&quot;Libraries&quot; border=&quot;0&quot; data-original-height=&quot;542&quot; data-original-width=&quot;619&quot; height=&quot;350&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu4V41dcZ69236Kh2rJR7O5BulMfm52DKsgD4rQ2hhah1pEr4nAhN2X47WNFGD1MSkayOMrDRkEzUB8mN0cttgLQFTxfTz1c_Y5Wv4B_27WbDUX_GsSUBncGKLX4WiMxSRj3kubrhNSQ/s400/10.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP - 5: Configure Environment variables&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Set the path for the following Environment variables (User Variables) on windows 10 –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;HIVE_HOME - D:\Hive\apache-hive-2.1.0-bin&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;HIVE_BIN - D:\Hive\apache-hive-2.1.0-bin\bin&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;HIVE_LIB - D:\Hive\apache-hive-2.1.0-bin\lib&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;DERBY_HOME - D:\Derby\db-derby-10.12.1.1-bin&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;HADOOP_USER_CLASSPATH_FIRST - true&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;This PC - &amp;gt; Right Click - &amp;gt; Properties - &amp;gt; Advanced System Settings - &amp;gt; Advanced - &amp;gt; Environment Variables&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXITeOD6WkpiPihkxAdCA90r2nwlyTGGX-7WvnGOjjioE75dcXGjVwXyjkRBz0X9dc4JwsTVYIZF9Yrj1mKZ_kE72n_P7pthbhEf-u2cqrIZCASLRfaGu0aN95f0L6ba1daRdXzfTCZA/s1600/11.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;HIVE_HOME&quot; border=&quot;0&quot; data-original-height=&quot;202&quot; data-original-width=&quot;917&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXITeOD6WkpiPihkxAdCA90r2nwlyTGGX-7WvnGOjjioE75dcXGjVwXyjkRBz0X9dc4JwsTVYIZF9Yrj1mKZ_kE72n_P7pthbhEf-u2cqrIZCASLRfaGu0aN95f0L6ba1daRdXzfTCZA/s640/11.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirlkHl-IET7p0AcVsEpFw1UJd-lLN-ZIx96BIS0v_ClgRy3NPQ0Hhi-praMhLIstEZjPE545LSOHJSes7klrFuFwu_Aacj-Yb9EO1wrSjlEdT5IkQrmUb8OAN9WerHAMa_I4yl3Vo8QA/s1600/12.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;HIVE_BIN&quot; border=&quot;0&quot; data-original-height=&quot;210&quot; data-original-width=&quot;918&quot; height=&quot;145&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirlkHl-IET7p0AcVsEpFw1UJd-lLN-ZIx96BIS0v_ClgRy3NPQ0Hhi-praMhLIstEZjPE545LSOHJSes7klrFuFwu_Aacj-Yb9EO1wrSjlEdT5IkQrmUb8OAN9WerHAMa_I4yl3Vo8QA/s640/12.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVDvP83KTtIHhp4iM6lvKnc9cI0cyRkc5aWNx0vlSRsm3JAl19VV3AhRtMPqzdJWRU1yLMUI2Yx4f2TWsxTBFMIEYdqJmU_v1qp_-jRqj_lzQzgNp8VhYwDH8hitPfEtyojoLr9DhYeQ/s1600/13.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;HIVE_LIB&quot; border=&quot;0&quot; data-original-height=&quot;200&quot; data-original-width=&quot;920&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVDvP83KTtIHhp4iM6lvKnc9cI0cyRkc5aWNx0vlSRsm3JAl19VV3AhRtMPqzdJWRU1yLMUI2Yx4f2TWsxTBFMIEYdqJmU_v1qp_-jRqj_lzQzgNp8VhYwDH8hitPfEtyojoLr9DhYeQ/s640/13.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1VtcS2aREcOvfeju5PG5B8zgc89TvHbn7sZeNtQiXzEMl87i6TXsba54WzMmJ6krdTQTNfEE3jLeYrWjhPnRhZxu8wik-9sVoIvPZSDqGb5dSJSv2Akp4GEbXKXZRNFpL8IfCPQB4cA/s1600/14.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;DERBY_HOME&quot; border=&quot;0&quot; data-original-height=&quot;198&quot; data-original-width=&quot;923&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1VtcS2aREcOvfeju5PG5B8zgc89TvHbn7sZeNtQiXzEMl87i6TXsba54WzMmJ6krdTQTNfEE3jLeYrWjhPnRhZxu8wik-9sVoIvPZSDqGb5dSJSv2Akp4GEbXKXZRNFpL8IfCPQB4cA/s640/14.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBRaj8YW2p4WADjEz3CzPInCkdYFz2Mn6vJsjkgExv6WY907EAgO5rqRKT0kM-8O_UN5eeG0d03A4BsoqrgnGuy75njQ7Q-SA8nfky2f9k8dpefUey7mxxFffZ9jpWWPUERKTSijtKAQ/s1600/15.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;HADOOP_USER&quot; border=&quot;0&quot; data-original-height=&quot;200&quot; data-original-width=&quot;917&quot; height=&quot;139&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBRaj8YW2p4WADjEz3CzPInCkdYFz2Mn6vJsjkgExv6WY907EAgO5rqRKT0kM-8O_UN5eeG0d03A4BsoqrgnGuy75njQ7Q-SA8nfky2f9k8dpefUey7mxxFffZ9jpWWPUERKTSijtKAQ/s640/15.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP - 6: Configure System variables&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Next onward need to set System variables, including Hive bin directory path –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;HADOOP_USER_CLASSPATH_FIRST - true&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Variable: Path&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Value:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;D:\Hive\apache-hive-2.1.0-bin\bin&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;D:\Derby\db-derby-10.12.1.1-bin\bin&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1x0zbIMIZEiCd8oyZqTve9yQbjzzhOQJXSYQkDK9hmbl8W7AqAnINtfI2W5DnK4ukeEmd8yZ3sfWRvp9CkTgB_5kqOkMONsNmC0jcF2tdBkJzDvpY1bAA2cKcdlDh47zB-oEvsD2HHg/s1600/16.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;System Variables&quot; border=&quot;0&quot; data-original-height=&quot;185&quot; data-original-width=&quot;578&quot; height=&quot;127&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1x0zbIMIZEiCd8oyZqTve9yQbjzzhOQJXSYQkDK9hmbl8W7AqAnINtfI2W5DnK4ukeEmd8yZ3sfWRvp9CkTgB_5kqOkMONsNmC0jcF2tdBkJzDvpY1bAA2cKcdlDh47zB-oEvsD2HHg/s400/16.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP - 7: Working with hive-site.xml&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Now need to do a cross check with Hive configuration file for Derby details –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;hive-site.xml&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[1] Edit file D:/Hive/apache-hive-2.1.0-bin/conf/hive-site.xml, paste below xml paragraph and save this file.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;property&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;name&amp;gt;javax.jdo.option.ConnectionURL&amp;lt;/name&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;value&amp;gt;jdbc:derby://localhost:1527/metastore_db;create=true&amp;lt;/value&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;description&amp;gt;JDBC connect string for a JDBC metastore&amp;lt;/description&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;property&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;name&amp;gt;javax.jdo.option.ConnectionDriverName&amp;lt;/name&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;value&amp;gt;org.apache.derby.jdbc.ClientDriver&amp;lt;/value&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;description&amp;gt;Driver class name for a JDBC metastore&amp;lt;/description&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;property&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;name&amp;gt;hive.server2.enable.impersonation&amp;lt;/name&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;description&amp;gt;Enable user impersonation for HiveServer2&amp;lt;/description&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;name&amp;gt;hive.server2.authentication&amp;lt;/name&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;value&amp;gt;NONE&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;description&amp;gt; Client authentication types. NONE: no authentication check LDAP: LDAP/AD based authentication KERBEROS: Kerberos/GSSAPI authentication CUSTOM: Custom authentication provider (Use with property hive.server2.custom.authentication.class) &amp;lt;/description&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;property&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;name&amp;gt;datanucleus.autoCreateTables&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;value&amp;gt;True&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/property&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;lt;/configuration&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP - 8: Start the Hadoop&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Here need to start Hadoop first -&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Open command prompt and change directory to “D:\Hadoop\hadoop-2.8.0\sbin&quot; and type &quot;&lt;b&gt;start-all.cmd&lt;/b&gt;&quot; to start apache.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh2Un4SbcsnG44Zf9ZnAOYR4txczOFzH1ELpEST1kpTpRr8Z9tZhLgbkMYZ8llykdy0cOBy4zx5YgHK0lTtoDIJmdcKRnF2YwPSQpQNWxFQHWLWkS2YH_aP2OvjVJK44wX4SFXcYevqw/s1600/17.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;img alt=&quot;Start Hadoop&quot; border=&quot;0&quot; data-original-height=&quot;80&quot; data-original-width=&quot;509&quot; height=&quot;61&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh2Un4SbcsnG44Zf9ZnAOYR4txczOFzH1ELpEST1kpTpRr8Z9tZhLgbkMYZ8llykdy0cOBy4zx5YgHK0lTtoDIJmdcKRnF2YwPSQpQNWxFQHWLWkS2YH_aP2OvjVJK44wX4SFXcYevqw/s400/17.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;It will open four instances of cmd for following tasks –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hadoop Datanaode&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hadoop Namenode&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Yarn Nodemanager&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Yarn Resourcemanager&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6f2ckO-NSdBs64BK1B1_jnm1rCszAQMq8a-z8ZQRjZ3VTHPrXAMFQ3GiscxTfkfkE9zjmGFyncBhyphenhyphenqkuUrxuahZXaEssYRqWmrhVaHltix0CUxh-Xjlqhvr9vf91kD8VewNyJSdYTDw/s1600/18.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;img alt=&quot;Hadoop Started&quot; border=&quot;0&quot; data-original-height=&quot;560&quot; data-original-width=&quot;1343&quot; height=&quot;264&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6f2ckO-NSdBs64BK1B1_jnm1rCszAQMq8a-z8ZQRjZ3VTHPrXAMFQ3GiscxTfkfkE9zjmGFyncBhyphenhyphenqkuUrxuahZXaEssYRqWmrhVaHltix0CUxh-Xjlqhvr9vf91kD8VewNyJSdYTDw/s640/18.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;It can be verified via browser also as –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Namenode (hdfs) - http://localhost:50070&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Datanode - http://localhost:50075&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;All Applications (cluster) - http://localhost:8088 etc.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_ceSxyp-se9ukL5B8kV65eFbByFOareZ8xENRlL6IedZus9R82lLcmXRfTuJbAuvFwTrYFhClYL6JnIOkz8KGvdSKmY08NiWDV36-IXNe44UJGzAivHFzh_vOQLFWAB1weblrs_xoLw/s1600/19.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Hadoop In Browser&quot; border=&quot;0&quot; data-original-height=&quot;564&quot; data-original-width=&quot;1121&quot; height=&quot;321&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_ceSxyp-se9ukL5B8kV65eFbByFOareZ8xENRlL6IedZus9R82lLcmXRfTuJbAuvFwTrYFhClYL6JnIOkz8KGvdSKmY08NiWDV36-IXNe44UJGzAivHFzh_vOQLFWAB1weblrs_xoLw/s640/19.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Since the ‘start-all.cmd’ command has been deprecated so you can use below command in order wise -&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;“start-dfs.cmd” and&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;“start-yarn.cmd”&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP - 9: Start Derby server&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Post successful execution of Hadoop, change directory to “D:\Derby\db-derby-10.12.1.1-bin\bin” and type “&lt;b&gt;startNetworkServer -h 0.0.0.0&lt;/b&gt;” to start derby server.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ3nRcUgRNi-F_ogw5SEYwcieN1bNh9XGFq7ZN0KVLLHpwhzY3CEKVPQz0IvMqy7IpwIBmE-o3CdqsoZO7xRzMI8H46RD_NecJShb-t7IVF4XqTYNeRtjR-6slZ4hZCMIxriD5Er9mjg/s1600/20.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Start Derby&quot; border=&quot;0&quot; data-original-height=&quot;70&quot; data-original-width=&quot;752&quot; height=&quot;59&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ3nRcUgRNi-F_ogw5SEYwcieN1bNh9XGFq7ZN0KVLLHpwhzY3CEKVPQz0IvMqy7IpwIBmE-o3CdqsoZO7xRzMI8H46RD_NecJShb-t7IVF4XqTYNeRtjR-6slZ4hZCMIxriD5Er9mjg/s640/20.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVocA6AQMLR_cFV3NKVTv68Z0IXk3WBX10Uay5yC7SRItRlOQvICC3P0KovzRhqp-j4TMx7IJP-yOD9abRVk1I1KeSycOUjuu4yjItEVG_0qaTldD_ogO4Oiw0sRkjtBB3c3uyKtmImQ/s1600/21.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Derby Started&quot; border=&quot;0&quot; data-original-height=&quot;161&quot; data-original-width=&quot;1073&quot; height=&quot;96&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVocA6AQMLR_cFV3NKVTv68Z0IXk3WBX10Uay5yC7SRItRlOQvICC3P0KovzRhqp-j4TMx7IJP-yOD9abRVk1I1KeSycOUjuu4yjItEVG_0qaTldD_ogO4Oiw0sRkjtBB3c3uyKtmImQ/s640/21.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP - 10: Start the Hive&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Derby server has been started and ready to accept connection so open a new command prompt under administrator privileges and move to hive directory as “D:\Hive\apache-hive-2.1.0-bin\bin” –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[1] Type “jps -m” to check NetworkServerControl&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhjbEjJS2DVczMCR02Kde81UR_x1Dm2UE5mBDpXrrSzcmiUCn4AicmyhpcTclHlnUGTwZHipIMAVZ6WF4FvAnWvGWdODjvfb8-G5Tcis3HO5SZPysnTqkBgFpJFd7EpLv9kJIVDg07Zg/s1600/22.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Validate server&quot; border=&quot;0&quot; data-original-height=&quot;186&quot; data-original-width=&quot;508&quot; height=&quot;145&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhjbEjJS2DVczMCR02Kde81UR_x1Dm2UE5mBDpXrrSzcmiUCn4AicmyhpcTclHlnUGTwZHipIMAVZ6WF4FvAnWvGWdODjvfb8-G5Tcis3HO5SZPysnTqkBgFpJFd7EpLv9kJIVDg07Zg/s400/22.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[2] Type “hive” to execute hive server.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiy7ZnjTqD9yaQykcEhXVl2E6sduv7HtIvi_9jS35GzEPaIZKoRACGSJgoIgr5oAKyyyZw2295pocjGYqyJJYtNseKYfiVaQvKTNYwr2ds27htU4tB29s0S9DJaez0VUTmomc9MMcFzuw/s1600/23.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Start Hive&quot; border=&quot;0&quot; data-original-height=&quot;70&quot; data-original-width=&quot;471&quot; height=&quot;58&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiy7ZnjTqD9yaQykcEhXVl2E6sduv7HtIvi_9jS35GzEPaIZKoRACGSJgoIgr5oAKyyyZw2295pocjGYqyJJYtNseKYfiVaQvKTNYwr2ds27htU4tB29s0S9DJaez0VUTmomc9MMcFzuw/s400/23.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb1MKK5v0gTvQlTMPH_MIAVdFKDFmjcFYJ8MNXnqopDWDclErJzXdrnhZ9iqo68NbHxBjdlpdg2ncxb8dSPFFg1zzpHdRlAlVXFArYHq3WaLvBlF-KMYsotpLWD6L_jHYnUnuD2uWqgg/s1600/24.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Hive Started&quot; border=&quot;0&quot; data-original-height=&quot;425&quot; data-original-width=&quot;1226&quot; height=&quot;220&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb1MKK5v0gTvQlTMPH_MIAVdFKDFmjcFYJ8MNXnqopDWDclErJzXdrnhZ9iqo68NbHxBjdlpdg2ncxb8dSPFFg1zzpHdRlAlVXFArYHq3WaLvBlF-KMYsotpLWD6L_jHYnUnuD2uWqgg/s640/24.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Congratulations, Hive installed !! 😊&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;clear: both; color: #d52a33; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;STEP-11: Some&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;hands on activities&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[1] Create Database in Hive -&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;CREATE DATABASE IF NOT EXISTS TRAINING;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikyu240VPI4Vg7kciwRw0c10a-6bwkjMijXBeVCKzx92L6Je6KFGh5qBkiiM8ggya090aunr56Ba-l4UXkrTO3NIW8OagwN9-Y-SbrfaTDG_PPk2qQ5X9JytTw929jMBy4owR3IskqXA/s1600/25.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Create database&quot; border=&quot;0&quot; data-original-height=&quot;134&quot; data-original-width=&quot;519&quot; height=&quot;101&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikyu240VPI4Vg7kciwRw0c10a-6bwkjMijXBeVCKzx92L6Je6KFGh5qBkiiM8ggya090aunr56Ba-l4UXkrTO3NIW8OagwN9-Y-SbrfaTDG_PPk2qQ5X9JytTw929jMBy4owR3IskqXA/s400/25.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[2] Show Database -&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;SHOW DATABASES;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-UcPbwmyV6k6rmJvtFmliD_YNXt68vYasJRcsazls-t66iyVsaqpBOmjpNxfwsIXdGUX3qvbks_fsEvaN86DiaqylkYJWPUzuTEEtn0wsIALEYjLBk6yIMz0SonA2fpqrHTXldI-0RQ/s1600/26.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Show Databases&quot; border=&quot;0&quot; data-original-height=&quot;160&quot; data-original-width=&quot;386&quot; height=&quot;132&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-UcPbwmyV6k6rmJvtFmliD_YNXt68vYasJRcsazls-t66iyVsaqpBOmjpNxfwsIXdGUX3qvbks_fsEvaN86DiaqylkYJWPUzuTEEtn0wsIALEYjLBk6yIMz0SonA2fpqrHTXldI-0RQ/s320/26.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[3] Creating Hive Tables -&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;CREATE TABLE IF NOT EXISTS testhive(col1 char(10), col2 char(20));&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmLWXL4spGfCeoOvA9B45lBcg_dJEx-xINubMqGcj8hQbXL1p424rKdPmb2il5tPzcLOG41Tl4g4YGmSV368q_S7JF363awrMcDGRXvTG-gRyF9DjvUBChcAhLi8McEgLwyGQuYmrQ6g/s1600/27.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Create table&quot; border=&quot;0&quot; data-original-height=&quot;192&quot; data-original-width=&quot;793&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmLWXL4spGfCeoOvA9B45lBcg_dJEx-xINubMqGcj8hQbXL1p424rKdPmb2il5tPzcLOG41Tl4g4YGmSV368q_S7JF363awrMcDGRXvTG-gRyF9DjvUBChcAhLi8McEgLwyGQuYmrQ6g/s640/27.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKmzTbIuF8EAZnaMhoZOzxcl5xpLAzDTHPN_bVy7QgT8wi3LW8xBchlrDkzBrRUT0f5olGD14I7RZrikq932IYlpA_7XO0gQ2QvmL8X43jqAquqoQ4PE-ih__QmfnpObZIj9VbOvhZeg/s1600/28.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Create table&quot; border=&quot;0&quot; data-original-height=&quot;424&quot; data-original-width=&quot;781&quot; height=&quot;347&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKmzTbIuF8EAZnaMhoZOzxcl5xpLAzDTHPN_bVy7QgT8wi3LW8xBchlrDkzBrRUT0f5olGD14I7RZrikq932IYlpA_7XO0gQ2QvmL8X43jqAquqoQ4PE-ih__QmfnpObZIj9VbOvhZeg/s640/28.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[4] DESCRIBE Table Command in Hive -&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;Describe Students&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiheehRaagH_b5dbsPWKQKpQ4KeXtAxkNhsynOrSCVeiH-FdJyFggxxXX4JXlT5G0A7o5bsbF6v-2eQQ9Z51D9u5h8JEkh_rptwzyQnHH8I97OCrPc5SfNihA4ZZvtYhhB11wXmcJj_Hw/s1600/29.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;describe students&quot; border=&quot;0&quot; data-original-height=&quot;266&quot; data-original-width=&quot;611&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiheehRaagH_b5dbsPWKQKpQ4KeXtAxkNhsynOrSCVeiH-FdJyFggxxXX4JXlT5G0A7o5bsbF6v-2eQQ9Z51D9u5h8JEkh_rptwzyQnHH8I97OCrPc5SfNihA4ZZvtYhhB11wXmcJj_Hw/s400/29.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[5] Usage of LOAD Command for Inserting Data Into Hive Tables&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Create a sample text file using ‘|’ delimiter –&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYVmLUW06YFMwRA68EfhtqTjDPZ0kEHcyaxhr7dnjRhZyLd18dunA2bP4ED3NtqFa6-oGyArhbrNdnS-wCj03bR7HJix334TPh2aAHdSjQzCh_xiEced6l6h393M9jp59fsMdT3tL42w/s1600/30.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;text file&quot; border=&quot;0&quot; data-original-height=&quot;381&quot; data-original-width=&quot;579&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYVmLUW06YFMwRA68EfhtqTjDPZ0kEHcyaxhr7dnjRhZyLd18dunA2bP4ED3NtqFa6-oGyArhbrNdnS-wCj03bR7HJix334TPh2aAHdSjQzCh_xiEced6l6h393M9jp59fsMdT3tL42w/s400/30.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKTEjhin2rG1x5tdE20wR1JAAuDGHiirzQM3GCnZbv0OhqxolLrp0uhw2ZfOAc6XOcSnlw_ISenlUFif_db2Pf6LFws1AE7M2Sxd17IV73szvspe6palL-JnL5jgrYSteOPEBtPPAzNw/s1600/31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Load data&quot; border=&quot;0&quot; data-original-height=&quot;123&quot; data-original-width=&quot;877&quot; height=&quot;89&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKTEjhin2rG1x5tdE20wR1JAAuDGHiirzQM3GCnZbv0OhqxolLrp0uhw2ZfOAc6XOcSnlw_ISenlUFif_db2Pf6LFws1AE7M2Sxd17IV73szvspe6palL-JnL5jgrYSteOPEBtPPAzNw/s640/31.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;[6] Hive Select Data from Table -&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;SELECT * FROM STUDENTS;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOLBnNDN5GSxTwePmNZr6hg1fOnhvYWZb9HTpYcYN6K-1CTJNK9XUubcSGyhyDHzlJbNTH7x2SQ6RT59odJ0e8Q2YQ0T6TQGVkNBstkixEqFBS6MARRjyHtZFHsuXe6rZ-EVUE_BcOSA/s1600/32.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #7d181e; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;Select &quot; border=&quot;0&quot; data-original-height=&quot;580&quot; data-original-width=&quot;591&quot; height=&quot;391&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOLBnNDN5GSxTwePmNZr6hg1fOnhvYWZb9HTpYcYN6K-1CTJNK9XUubcSGyhyDHzlJbNTH7x2SQ6RT59odJ0e8Q2YQ0T6TQGVkNBstkixEqFBS6MARRjyHtZFHsuXe6rZ-EVUE_BcOSA/s400/32.jpg&quot; style=&quot;background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; title=&quot;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Stay in touch for more&amp;nbsp;&lt;a href=&quot;http://www.solutionmandi.com/&quot; style=&quot;color: #7d181e; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;posts&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/5972650917402389163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2020/02/hive-installation-and-launch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/5972650917402389163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/5972650917402389163'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2020/02/hive-installation-and-launch.html' title='Hive Installation and Launch !'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Bz5MlfwXHiarlBVk2QiOld1_t715dObeWDyzyE-2JHh4yl2MvYQqafgKXdas1EucjWbyU_U_JlwUSvzE1eKGStXfss2aMJRJHYxpJvvhpDa400jK_Y9dY6XyzMhjRZi4oe9AbbjlEQ/s72-c/Apache_Hive_logo.svg.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-1343514583591761301</id><published>2014-03-24T07:55:00.002-07:00</published><updated>2017-04-15T12:49:51.719-07:00</updated><title type='text'>MVC</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;

&lt;p&gt;The Model-View-Controller (MVC) architecture separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes.&lt;/p&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;p&gt;Unfortunately, the popularity of this pattern has resulted in a number of faulty usages; each technology (Java, ASP.NET, etc.) has defined it in their own way making it difficult to understand. In particular, the term &quot;controller&quot; has been used to mean different things in different contexts. The definitions given bellow are the closes possible ones I found for ASP.NET version of MVC.&lt;/p&gt;
&lt;br/&gt;&lt;br/&gt;
    Model: DataSet and typed DataSet (some times business object, object collection, XML, etc.) are the most common uses of the model.&lt;br/&gt;&lt;br/&gt;
    View: The ASPX and ASCX files generally handle the responsibilities of the view.&lt;br/&gt;
    Controllers: The handling of events or the controlling is usually done in the code-behind class.&lt;br/&gt;
&lt;br/&gt;&lt;br/&gt;
In a complex n-tier distributed system the MVC architecture place the vital role of organizing the presentation tier of the system.
&lt;br/&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.codeproject.com/Articles/207797/Learn-MVC-Model-View-Controller-step-by-step-in &quot;&gt;&lt;/a&gt;


&lt;br /&gt;&lt;/div&gt;


&lt;br /&gt;
&lt;div style=&quot;color:Green;&quot;&gt;
&lt;h2&gt;Webmind Services&lt;/h2&gt;
To getting the IT Services like Mobile Apps, Websites , Ecommerce Website and Software development , please visit :-

Website :- &lt;a href=&quot;http://www.webmindservices.com&quot; target=&quot;_blank&quot;&gt;http://www.webmindservices.com&lt;/a&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/1343514583591761301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2014/03/mvc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/1343514583591761301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/1343514583591761301'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2014/03/mvc.html' title='MVC'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-949438552291250231</id><published>2013-11-15T13:29:00.002-08:00</published><updated>2013-11-15T13:31:09.195-08:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-add-space: auto; text-indent: -.25in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;View State&lt;/u&gt;:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-add-space: auto; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
- View state is maintained in page level only.&lt;br /&gt;
- View state of one page is not visible in another page.&lt;br /&gt;
- View state information stored in client only.&lt;br /&gt;
- View state persist the values of particular page in the client (browser) when
post back operation done.&lt;br /&gt;
- View state used to persist page-instance-specific data. (&lt;a href=&quot;http://www.aspdotnet-suresh.com/2012/11/viewstate-in-aspnet-with-example-in-c.html&quot; target=&quot;_blank&quot;&gt;Read more&lt;/a&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;

&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-add-space: auto; text-indent: -.25in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Session State&lt;/u&gt;:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-add-space: auto; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
- Session state is maintained in session level.&lt;br /&gt;
- Session state value is available in all pages within a user session.&lt;br /&gt;
- Session state information stored in server.&lt;br /&gt;
- Session state persist the data of particular user in the server. This data
available till user close the browser or session time completes.&lt;br /&gt;
- Session state used to persist the user-specific data on the server side.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;&quot;&gt;&amp;nbsp;(&lt;a href=&quot;http://www.aspdotnet-suresh.com/2012/11/aspnet-session-state-example-in-c-vbnet.html&quot; target=&quot;_blank&quot;&gt;Read more&lt;/a&gt;) &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: Verdana;&quot;&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/949438552291250231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2013/11/view-state-view-state-is-maintained-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/949438552291250231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/949438552291250231'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2013/11/view-state-view-state-is-maintained-in.html' title=''/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-8688835132657965872</id><published>2013-11-15T12:38:00.003-08:00</published><updated>2013-11-15T12:40:43.816-08:00</updated><title type='text'>Difference between an EXE and a DLL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;text&quot;&gt;hi,&lt;br /&gt;&amp;nbsp;&amp;nbsp; DLL:&lt;br /&gt;1)it has versioning&lt;br /&gt;2)it is not self executable&lt;br /&gt;3)it runs in application process memory&lt;br /&gt;4)it has no entry point&lt;br /&gt;5)it is reusable&lt;br /&gt;6)Out Process Server&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Exe:&lt;br /&gt;1)it is self executable&lt;br /&gt;2)it has no versioning&lt;br /&gt;3)it runs in own memory&lt;br /&gt;4)it have main function(Entry point)&lt;br /&gt;5)it is self executable&lt;br /&gt;6) In Process Server&lt;br /&gt;&amp;nbsp;&lt;br /&gt; Note:DLL is Superset of Exe&lt;/div&gt;

&lt;div&gt;&lt;/div&gt;

&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/8688835132657965872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2013/11/exe-and-dll.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/8688835132657965872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/8688835132657965872'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2013/11/exe-and-dll.html' title='Difference between an EXE and a DLL'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-3766667383450417138</id><published>2013-11-08T13:30:00.002-08:00</published><updated>2013-11-08T13:30:24.264-08:00</updated><title type='text'>Freelancer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!-- Place this tag where you want the button to render --&gt;
&lt;a name=&quot;freelancer_Hireme&quot; user_id=&quot;8859990&quot; size=&quot;standard&quot; annotation=&quot;none&quot; title=&quot;Hire me! on Freelancer.com&quot; href=&quot;https://www.freelancer.com/users/8859990.html&quot;&gt;Web Search Freelancer&lt;/a&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
(function() {
var po = document.createElement(&quot;script&quot;);
po.type = &quot;text/javascript&quot;;
po.async = true;
po.src = (&quot;https:&quot; == document.location.protocol ? &quot;https&quot; : &quot;http&quot;) + &quot;://www.freelancer.com/js/hireme/widget.js&quot;;
var s = document.getElementsByTagName(&quot;script&quot;)[0];
s.parentNode.insertBefore(po, s);
})();
&lt;/script&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/3766667383450417138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2013/11/freelancer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/3766667383450417138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/3766667383450417138'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2013/11/freelancer.html' title='Freelancer'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-3965021200864796557</id><published>2013-08-03T04:53:00.000-07:00</published><updated>2013-08-03T05:04:18.687-07:00</updated><title type='text'>What is Inheritance in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Inheritance can be classified to 5 types.&lt;/b&gt;
&lt;br/&gt;
1.Single Inheritance&lt;br/&gt;
2.Hierarchical Inheritance&lt;br/&gt;
3.Multi Level Inheritance&lt;br/&gt;
4.Hybrid Inheritance&lt;br/&gt;
5.Multiple Inheritance
&lt;br/&gt;&lt;br/&gt;

1. Single Inheritance

when a single derived class is created from a single base class then the inheritance is called as single inheritance.
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuGca2vSC3XASDZJM20RjvjSnutUBkGfO8GOO-C4h2cyEwcJaUY3Cxay_PZg9T9urh0l3GkkPaJV6PWP6cdrt8Wu-MBHHB72bHxROV1ju1jP-ofT4YBDBodJgaH1U5Ay49APCOfyf6Qf8/s1600/Single-level-inheritance.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuGca2vSC3XASDZJM20RjvjSnutUBkGfO8GOO-C4h2cyEwcJaUY3Cxay_PZg9T9urh0l3GkkPaJV6PWP6cdrt8Wu-MBHHB72bHxROV1ju1jP-ofT4YBDBodJgaH1U5Ay49APCOfyf6Qf8/s320/Single-level-inheritance.jpg&quot; /&gt;&lt;/a&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.programcall.com/19/csnet/inheritance-with-an-example-in-csnet.aspx&quot;&gt;Single Inheritance Example Program&lt;/a&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;2. Hierarchical Inheritance&lt;/b&gt;
&lt;br/&gt;
when more than one derived class are created from a single base class, then that inheritance is called as hierarchical inheritance.
&lt;br/&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir15vySvfSTirmX35epfhfjY7HH9Pgsjti08dmvQR_nofHrJKPXnMhLeRpAE43ocsuR2Xe-P1mmPKoLFZ9N4UlImXRo5SYhf18a5Ik8s8weBcfAlNrlOFru-MauTfLXo-DftM2E5kxoRU/s1600/inheritance-Hierarchical-cs.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir15vySvfSTirmX35epfhfjY7HH9Pgsjti08dmvQR_nofHrJKPXnMhLeRpAE43ocsuR2Xe-P1mmPKoLFZ9N4UlImXRo5SYhf18a5Ik8s8weBcfAlNrlOFru-MauTfLXo-DftM2E5kxoRU/s320/inheritance-Hierarchical-cs.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br/&gt;
Hierarical Inheritance

&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;3. Multi Level Inheritance&lt;/b&gt;
&lt;br/&gt;
when a derived class is created from another derived class, then that inheritance is called as multi level inheritance.
&lt;br/&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-6S5pGqYuwUSG_AiRs1bhT5nHVtOgBaskHhm9Sa1FSR9nUU3U_JEQVSUMvz-CJCjxlva_3j_hU8-Wl7v7JCfdMdev6Ws_Nl1IGMKxdh85KfU5aZrv0yEFHhH6kLEG2wC88luAo9viNPw/s1600/inheritance-multi-level.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-6S5pGqYuwUSG_AiRs1bhT5nHVtOgBaskHhm9Sa1FSR9nUU3U_JEQVSUMvz-CJCjxlva_3j_hU8-Wl7v7JCfdMdev6Ws_Nl1IGMKxdh85KfU5aZrv0yEFHhH6kLEG2wC88luAo9viNPw/s320/inheritance-multi-level.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Multi level Inheritance

&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;4. Hybrid Inheritance&lt;/b&gt;
&lt;br /&gt;
Any combination of single, hierarchical and multi level inheritances is called as hybrid inheritance.
&lt;br/&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4pr6qUtcLOOydco4tJ4KX0xUcnq9NXaH3YBj7K9H-Ja_nPlQpb8ABvqwtEqYZT8A5F8eOFSvE2-C2vSHXe0UYS39ikvjMYAQFYw6iPJQD2J3l0qYNsI3gw_GErISGNcydHTtkt_bEwoU/s1600/inheritance-hybrid.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4pr6qUtcLOOydco4tJ4KX0xUcnq9NXaH3YBj7K9H-Ja_nPlQpb8ABvqwtEqYZT8A5F8eOFSvE2-C2vSHXe0UYS39ikvjMYAQFYw6iPJQD2J3l0qYNsI3gw_GErISGNcydHTtkt_bEwoU/s320/inheritance-hybrid.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br/&gt;
Hybrid inheritance in C#

&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;5. Multiple Inheritance&lt;/b&gt;
&lt;br/&gt;
when a derived class is created from more than one base class then that inheritance is called as multiple inheritance. But multiple inheritance is not supported by .net using classes and can be done using interfaces.
&lt;br/&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbSf6PsvQDs3e4lWgoSZjk55WdjZWFLy0acC_Jo5ykUbCk1XNjeDp8QdNnBqeBFwj8ko6V9fKkVm_ANvyjscAEIEVvNDoh81j7C1hRXL94HAuIB642Z62ockTgj3CJB8EoDuBWs7YX344/s1600/multiple+inheritance.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbSf6PsvQDs3e4lWgoSZjk55WdjZWFLy0acC_Jo5ykUbCk1XNjeDp8QdNnBqeBFwj8ko6V9fKkVm_ANvyjscAEIEVvNDoh81j7C1hRXL94HAuIB642Z62ockTgj3CJB8EoDuBWs7YX344/s320/multiple+inheritance.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br/&gt;
Multiple inheritance in C#

  Multiple Inheritance Example

&lt;br/&gt;&lt;br/&gt;
Handling the complexity that causes due to multiple inheritance is very complex. Hence it was not supported in dotnet with class and it can be done with interfaces.
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/3965021200864796557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2013/08/what-is-inheritance-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/3965021200864796557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/3965021200864796557'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2013/08/what-is-inheritance-in-c.html' title='What is Inheritance in C#'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuGca2vSC3XASDZJM20RjvjSnutUBkGfO8GOO-C4h2cyEwcJaUY3Cxay_PZg9T9urh0l3GkkPaJV6PWP6cdrt8Wu-MBHHB72bHxROV1ju1jP-ofT4YBDBodJgaH1U5Ay49APCOfyf6Qf8/s72-c/Single-level-inheritance.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-608666375826207776</id><published>2013-07-29T14:19:00.001-07:00</published><updated>2013-07-29T14:19:15.049-07:00</updated><title type='text'>Create Your Password Protected Folder</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;

Before you get started you need to create a folder that will house your password protected folder, this is just an ordinary folder and can be located anywhere and named anything.



Navigate into your newly created folder and create a new Text Document. This can easily be done from the context menu.



Open the document, now paste the following code into the contents of the document:

cls 
@ECHO OFF 
title Folder Private 
if EXIST &quot;HTG Locker&quot; goto UNLOCK 
if NOT EXIST Private goto MDLOCKER 
:CONFIRM 
echo Are you sure you want to lock the folder(Y/N) 
set/p &quot;cho=&gt;&quot; 
if %cho%==Y goto LOCK 
if %cho%==y goto LOCK 
if %cho%==n goto END 
if %cho%==N goto END 
echo Invalid choice. 
goto CONFIRM 
:LOCK 
ren Private &quot;HTG Locker&quot; 
attrib +h +s &quot;HTG Locker&quot; 
echo Folder locked 
goto End 
:UNLOCK 
echo Enter password to unlock folder 
set/p &quot;pass=&gt;&quot; 
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL 
attrib -h -s &quot;HTG Locker&quot; 
ren &quot;HTG Locker&quot; Private 
echo Folder Unlocked successfully 
goto End 
:FAIL 
echo Invalid password 
goto end 
:MDLOCKER 
md Private 
echo Private created successfully 
goto End 
:End
Change the PASSWORD_GOES_HERE text to the password you want to set. Now go ahead and save the file as locker.bat.



Once the file is saved as a batch file you can delete the original text file.



Now run your batch file by double clicking on it–the first time you run it, it will create a folder called Private. This is where you can store all your secret things. When you have finished adding all your stuff to the Private folder, run locker.bat again.



This time you will be asked if you sure that you want to lock the folder, press the “Y” key and hit enter to lock your folder.



You will see that your Private folder quickly disappears.



If you run the script yet again, you will prompted for a password.



If you enter the same password as you set in the script the Private folder will reappear if you enter the incorrect password the script will just Terminate.
&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/608666375826207776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2013/07/create-your-password-protected-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/608666375826207776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/608666375826207776'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2013/07/create-your-password-protected-folder.html' title='Create Your Password Protected Folder'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-257487672876217624</id><published>2013-07-24T12:47:00.002-07:00</published><updated>2013-07-24T13:01:38.660-07:00</updated><title type='text'>System Development Life</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
System Development Life Cycles fall into a number of different system development models, iterative being the most common but they also include waterfall, spiral and chaos models. They all encompass the full project life cycle. Common software development methodologies include Agile/Scrum, Structured Systems Analysis and Design Method (SSADM) and Microsoft Solutions Framework (MSF).
Each step in a systems life cycle can be broken down into many smaller sub-steps or processes. Each stage follows logically after the previous, but it is an oversimplification to say that one stage is a distinct step after another. It is important to understand that the system lifecycle is iterative as well as the stages involved along the way.
Different methodologies will have different variations of this lifecycle model. A common iterative lifecycle is show in the diagram below and each stage is described after the diagram.
Stages of a system life cycle&lt;/br&gt;&lt;/br&gt;
1. Initial Idea&lt;/br&gt;
2. Feasibility Study&lt;/br&gt;
3. Requirements Analysis&lt;/br&gt;
4. Systems Analysis and Specification&lt;/br&gt;
5. Systems Design&lt;/br&gt;
6. Development&lt;/br&gt;
7. Testing&lt;/br&gt;
8. Implementation&lt;/br&gt;
9. Maintenance and Review&lt;/br&gt;
 
 
&lt;b&gt;Initial Idea&lt;/b&gt;&lt;/br&gt;
All projects must start with an initial idea. Usually this consists of a brief definition on what is the project all about, what is its purpose and what the project aims to accomplish. How will the success of the project be measured?
&lt;/br&gt;&lt;/br&gt;
&lt;b&gt;Feasibility Study&lt;/b&gt;&lt;/br&gt;
Expanding on the Initial Idea, the Feasibility Study involves drawing up the terms of reference, which state the objectives and scope of the project, how long it should take and how the results should be presented. The terms of reference are usually drawn up by senior management. The feasibility study must determine if development of the project is justified in terms of economic and organisational terms.
The main role of the analyst in the feasibility study is to analyse the current system at a high level. Data Flow Diagrams (DFD) are used to describe how the current system performs and to illustrate known problems.
Feasibility studies are not carried out for all projects, and smaller projects omit this stage.
&lt;/br&gt;&lt;/br&gt;
&lt;b&gt;Requirements Analysis&lt;/b&gt;
&lt;/br&gt;
The Requirements Analysis stage defines a series of possible solutions to the problem and presents them to management in terms of business options. These options may be supported by technical documents such as high-level DFD’s, Logical Data Models (LDM) and Work Practise Models. The requirements analysis report must also contain financial and risk assessments to be presented and supported by outline implementation descriptions.
The steps involved within the requirements analysis will define the flow of data in the system, deriving system functions and to develop user role specifications, prototypes and process specifications.
&lt;/br&gt;&lt;/br&gt;
&lt;b&gt;Systems Analysis and Specification&lt;/b&gt;
&lt;/br&gt;
The Systems Analysis stage is an extension to the feasibility study. If the project has a feasibility study then the bulk of the work has already been done. A terms of reference will also be required if one does not exist. The output from this stage is the System Specification which gives precise details of what the new system is required to do, but does not go into how it does it. It provides a logical model of the new system.
Once agreed, the specification is the basis for the work done by the system designers.
&lt;/br&gt;&lt;/br&gt;
&lt;b&gt;Systems Design&lt;/b&gt;
&lt;/br&gt;
This stage deals with how the requirements of the new system are carried out (how the logical model is implemented as a physical system). The system designer will develop a number of design options and test them against the requirements specification and design criteria. The one that comes closest to the design brief with the most cost effective use of equipment and personnel is selected and broken down into more detailed specs.
Because of this the design stage has two phases: produce outline designs based on requirements specification with input from users and the detailed designs produced from the selected design.
&lt;/br&gt;&lt;/br&gt;
&lt;b&gt;Development&lt;/b&gt;
&lt;/br&gt;
This is the only stage in the development where program code is written. The designs and specifications provide enough detail for the programmer to code and test individual modules. Each unit is tested to ensure that it meets the requirements of the specification.&lt;/br&gt;&lt;/br&gt;
&lt;b&gt;Testing&lt;/b&gt;
&lt;/br&gt;
Within the life cycle there are various levels of testing as well as the unit testing performed in the development stage.
Link testing ensures that programs work together, e.g. the data passed from one program to another has the correct format.
System testing ensures that the system as a whole performs according to the design specification. Recovery procedures must be tested as well as normal operation procedures.
Finally user acceptance testing is carried out by the users in stages to ensure that the system is usable.
Any modifications are passed back to the design stage where changes are made as necessary and passed to the development team.
&lt;/br&gt;&lt;/br&gt;
&lt;b&gt;Implementation&lt;/b&gt;&lt;/br&gt;
When the testing has been carried out to the users satisfaction the system, or parts of it, are put live. The “put live” phase can also be known as implementation, cut over or production. This is when the users start using the system to carry out their business activities.&lt;/br&gt;
There are two main approaches to implementation a project:&lt;/br&gt;
 Phased: Stand-alone subsets of the system are implemented over a period of time.&lt;/br&gt;
 Big Bang: The whole system is put live in one go.
&lt;/br&gt;
Some systems will require special programs or tasks to convert existing data to a format usable by the new system. The process of changing data from the old system to the new is called conversion.&lt;/br&gt;&lt;/br&gt;
&lt;b&gt;Maintenance and Review&lt;/b&gt;
&lt;/br&gt;
Once the system is put into place, maintenance is required to ensure satisfactory operation.
Maintenance should include regular reviews and evaluations to ensure that it is achieving its objectives, identify any aspects that can be improved or any operational problems. Maintenance falls into two categories, implementation of new features or elimination of errors.
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/257487672876217624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2013/07/system-development-life-cycles-fall.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/257487672876217624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/257487672876217624'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2013/07/system-development-life-cycles-fall.html' title='System Development Life'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-368505935596982846</id><published>2012-03-03T22:19:00.000-08:00</published><updated>2012-03-03T22:20:01.239-08:00</updated><title type='text'>Tray Application</title><content type='html'>If you are a .NET developer, you will probably be used to creating several different types of application. You’ll be familiar with either WPF or WinForms as the primary technology for desktop applications with a graphical user interface (GUI). You may also have required a console application for special needs such as batch processing or automated workflow. Finally, for more advanced applications, you may have needed to create a Windows service application, a type that, technically, does not even have a user interface. &lt;br /&gt;&lt;br /&gt;There is one interesting type remaining: the system tray application.&lt;br /&gt; &lt;br /&gt;This type of application is a kind of hybrid: it acts like a service, in that it sits in the background until you give it focus, then it acts like a GUI, allowing you to interact with it like a WinForms or WPF application.&lt;br /&gt; &lt;br /&gt;You can find quite a number of articles on tray applications, just as I did when I needed to create my first one. I hit two problems during my self-edification: first, I did not find any single article that had all the necessary details. I collected bits and pieces from several to achieve a useful and usable solution. Second, many of these articles provide a kludge disguised as a solution: it is workable but certainly not the best way to create a system tray application.&lt;br /&gt; &lt;br /&gt;In this article I’ll describe the best practice for creating a tray application, complete with a tray application framework in C# that you can put to immediate use.&lt;br /&gt; &lt;br /&gt;Because I didn’t like being told by one source that tray applications could exist only in WinForms, but not WPF, I’ll show you how you may choose to use either WinForms, WPF or both together with this framework. For those WPF purists, it turns out that there are also independently developed libraries created by industrious developers that allow you to create strictly a WPF solution.&lt;br /&gt; &lt;br /&gt;As I believe it is easier to learn with real code rather than study academic exercises, I present in this article a complete, open-source, tray application built on my framework. While it is possible that only a fraction of the readership needs this particular utility, you should still find it valuable as a real-world example.&lt;br /&gt; &lt;br /&gt;Introducing HostSwitcher: A Tray App for Some of You&lt;br /&gt; &lt;br /&gt;My tray application, HostSwitcher, lets you re-route entries in your hosts file with a single click on the context menu attached to the icon in the system tray. I needed this myself because my work involved a network application that communicated with several servers at any given time. Frequently, sometimes several times a day, I need to reroute entries in my host file among several sets of servers: one set of servers is for production, one for the current development effort, one for the legacy development effort, and one for scratch work. Thus, several times a day I edit the hosts file, commenting out one group of lines and uncommenting a second group. Each developer on the project has to do this same silly procedure. I wanted a simple, easy, and fast way to do that automatically. &lt;br /&gt;&lt;br /&gt;Requirements&lt;br /&gt; &lt;br /&gt;I needed two things to make this work: Firstly, a tray application framework (that I could tailor to access servers from its context menu), and, secondly, a mechanism to drive the generation of the contents of the context menu from the hosts file. I did not find any plug-and-play library components for the tray application framework so I needed to craft my own. My requirements were:&lt;br /&gt; •First and foremost, the app must exist as a tray application. Many of the solutions, as I hinted earlier, are really WinForms applications coerced into being tray applications (akin to forcing a square peg into a round hole!).&lt;br /&gt; •Only one instance of the app may run. Attempting to start a second instance immediately terminates.&lt;br /&gt; •The app, from the icon in the system tray, must be able to open a WinForms or WPF window as needed.&lt;br /&gt; •Closing the tray application also closes any open windows. &lt;br /&gt;•The system tray icon must easily support dynamic context menus.&lt;br /&gt; &lt;br /&gt;The last requirement in the list directly supports the second facet of this application, converting hosts file data to context menu choices. I quickly settled on adding meta-comments to overlay on existing hosts file entries. Since these are comments, they are completely transparent to other consumers of the hosts file. Because there is markup on IP addresses right in the hosts file, this reduces maintenance by avoiding duplication with some external resource, and makes it very simple to modify hosts entries and groupings at any time.&lt;br /&gt; &lt;br /&gt;Instrumenting Your Hosts File&lt;br /&gt; &lt;br /&gt;HostSwitcher is simple to operate; almost everything you need to know is on the one-page introduction (Figure 1) that appears automatically upon first launch if you have not yet decorated your hosts file. (You can also open that introduction page from the context menu.) As shown in the figure, you start with the servers listed in your host file. Organize these into server groups, where all servers in a group should operate in unison; that is, since each server group is bound to a single context menu entry they all are enabled or all disabled together. Next you can cluster your server groups with other related server groups to form a project where each server group in the project should be mutually exclusive of its sibling groups. (They are mutually exclusive within the perspective of HostSwitcher but there is, of course, nothing preventing you from editing your hosts file manually and corrupting it however you please. Projects appear as top-level entries in the context menu; server groups appear as children of their parent project.&lt;br /&gt; &lt;br /&gt;In the example in Figure 1, only a small portion of the hosts file is shown. (I happen to have thousands of lines in this host file as a protective measure on my computer.) HostSwitcher is only aware of these 16 lines, though, because they are the ones I have decorated with meta-comments (shown in green). Each meta-comment indicates a project/server group pair in brackets with a virgule separating them. You may use any other characters you please for both the project name and the server group name. Each time you open HostSwitcher’s context menu it rereads the hosts file. That way, if you do edit it externally it will pick up on your most current changes. Thus, as soon as you save the newly decorated hosts file you can open the context menu and it will correctly reflect your projects; no need to restart the application.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Figure 1 HostSwitcher Information Page&lt;br /&gt; &lt;br /&gt;This shows how to decorate your hosts file and how that manifests in the context menu attached to the icon in the system tray.&lt;br /&gt; &lt;br /&gt;Usage&lt;br /&gt; &lt;br /&gt;HostSwitcher, as mentioned earlier, automates the process of commenting and uncommenting specific lines in your host file simply by selecting a server group from the context menu of the system tray icon. It operates on all the relevant host file lines of a project at once, resolved down to its constituent server groups. When it enables one server group it just uncomments the lines of the host file containing the servers in that group. Similarly, when it disables a server group it comments out the respective lines in the hosts file. At the user level, selecting a server group in the context menu enables that server group and disables all other server groups in the project.&lt;br /&gt; &lt;br /&gt;The example in Figure 1 defines two projects: Project-1 and Other Project. The screen shot of the context menu at the bottom shows the Project-1 submenu opened and the three server groups contained therein. Observe how these come directly from the hosts file. Each server group has a colored icon indicating its state: green for enabled, red for disabled, and yellow for mixed. Technically speaking mixed is bad. You do not want a server group to have both enabled and disabled servers because that violates the cardinal rule of servers in a server group—they should always operate in unison. By the way, when you hover over a server group name without selecting it, its tooltip indicates how many individual servers are enabled and how many are disabled. So you may determine from the tooltips how many servers you have in any particular group.&lt;br /&gt; &lt;br /&gt;Another bad condition is having more than one server group enabled within a single project; i.e. you should never have more than one green icon in a project. Remember the cardinal rule of server groups within a project: they are mutually exclusive.&lt;br /&gt; &lt;br /&gt;Fortunately, it is trivial to clean up any bad states—just select a server group in a “corrupt” project on HostSwitcher&#39;s context menu. Remember: selecting a server group enables that server group and disables all other server groups in the project. It follows, therefore, if you need to have “corrupt” entries (as far as HostSwitcher is concerned) for performing other tasks on your computer, when you want to come back to HostSwitcher just select your target server group and you are ready to go.&lt;br /&gt; &lt;br /&gt;Features&lt;br /&gt; &lt;br /&gt;Besides activating a server group, HostSwitcher’s context menu also allows you to:&lt;br /&gt; •Open the hosts file itself (in Notepad). &lt;br /&gt;•Open the folder containing the hosts file (in Explorer). &lt;br /&gt;•View a server details page showing the results of parsing your hosts file (Figure 2)—this is handy to debug your hosts file setup.&lt;br /&gt; •View the introductory page (Figure 1) to remind yourself how to instrument your hosts file.&lt;br /&gt; •The HostSwitcher icon itself has these features: &lt;br /&gt;•Double-clicking the icon in the system tray re-opens the introduction/help page.&lt;br /&gt; •Hovering over the icon identifies the selected server group for your first few projects. (A .NET limitation restricts this tooltip to just 63 characters.)&lt;br /&gt; &lt;br /&gt;Host Details View&lt;br /&gt; &lt;br /&gt;Particularly when you first attempt to decorate your hosts file, the host details window comes in very handy to check the results of your work. As Figure 2 shows, you see both the actual host file entries and the meta-comments attached to them. Note that this includes all instrumented lines, whether or not the entire line is commented out or not. In fact, it tells you which lines are completely commented out in the Status column. Active (i.e. uncommented) lines are marked as enabled; commented lines are marked as disabled.&lt;br /&gt; &lt;br /&gt;This window into your hosts file provides one additional feature that occasionally comes in quite handy: you can sort the table by clicking on any of the column headers. In Figure 1 notice that the entries are written sorted by server group. In Figure 2 I have clicked on the project name column header to resort the entries for a different perspective. Here you see for each host name the different IPs it will point to depending on your choice of server group.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Figure 2 Host Details View&lt;br /&gt; &lt;br /&gt;This window lets you check whether you have instrumented your hosts file correctly, showing you what HostSwitcher’s parsing ends up with.&lt;br /&gt; &lt;br /&gt;Running on Windows 7&lt;br /&gt; &lt;br /&gt;Just for completeness, here is a tip for running under Windows 7. A new tray icon is set by default to only appear when it “has something to say”, i.e. when it issues a notification. It is still in the tray, but you have to click the leftmost icon to reveal the hidden tray icons, then—in the case of HostSwitcher—right-click its icon to open its context menu (bottom left, Figure 3). All terribly cumbersome. You can adjust the properties easily, though. Click the Customize link at the bottom of the hidden icon panel to open the Notification Area Icons control panel. Scroll until you find HostSwitcher and change its setting from Only show notifications to Show icon and notifications (top, Figure 3) to migrate the icon down to the main tray (bottom right, Figure 3).&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Figure 3 Adjusting the Tray Icon Properties&lt;br /&gt; &lt;br /&gt;The new icon for HostSwitcher is hidden in the tray by default, but you can adjust it to sit in the main tray.&lt;br /&gt; &lt;br /&gt;Execution Has Its Privileges&lt;br /&gt; &lt;br /&gt;Because the Hosts file in Windows is in a protected, system directory you must have administrative privileges to run HostSwitcher. Even with administrator privileges, on Windows 7 you can still choose to run your applications normally or with administrative rights. HostSwitcher must be run as the latter. If you use the installer accompanying this article, or even if you compile the project in Visual Studio yourself, it automatically attempts to run with administrative rights. If for some reason you like to explicitly invoke Run as Administrator when you launch a program requiring it, you can turn off the automatic setting in the app.manifest file in the HostSwitcher project directory: comment out the line for requestedExecutionLevel then recompile the solution.&lt;br /&gt; &lt;br /&gt;The Tray Application Framework&lt;br /&gt; &lt;br /&gt;The Secret of the Tray&lt;br /&gt; &lt;br /&gt;The secret to tray applications is… Well, it is obvious as soon as you read it. I found assorted articles on the web that were ignorant of it, and others that were not, but none realized the gem of knowledge they had to convey to their readers.&lt;br /&gt; &lt;br /&gt;&quot;I thought at first that you had done something clever, but I see that there was nothing in it, after all.&quot;&lt;br /&gt;The Red-Headed League, A. Conan Doyle&lt;br /&gt; &lt;br /&gt;Many of the articles you find on tray applications use a form-centric focus: you start with your form, then minimize it to the system tray and hide it from the taskbar. That approach mostly works but it is backwards. The key to applying best practices to designing a tray application is shifting your perspective to a tray-centric focus: instead of thinking of your form (be it WinForms or WPF) as the master controller of your application, think of the little tiny tray icon as the master controller. It runs right in the system tray, spawning child windows only when needed.&lt;br /&gt; &lt;br /&gt;As I was experimenting with the form-centric approach I found one significant deficiency: it is challenging to start an application in the tray. You could click a button on the form to send it to the tray, but actually starting it there—with the form completely hidden—is difficult. Either way you need to make sure to remove your app from the taskbar when you go to the tray and rematerialize it when you restore your app. This bookkeeping hassle is not even relevant in the tray-centric approach: you start in the tray, which has no taskbar presence, and only open a form at an appropriate point. Opening the form puts it in the taskbar; closing it again removes it, all automatically.&lt;br /&gt; &lt;br /&gt;The Master Controller of a Tray App: The NotifyIcon&lt;br /&gt; &lt;br /&gt;With either a form-centric or a tray-centric approach, you still use the same mechanism—the NotifyIcon. Instantiating a NotifyIcon creates your tray icon. You do not have to hook up the NotifyIcon to anything; simply instantiating it is all you need. This method, then, is the entire code to create a system tray icon with a custom icon, tooltip, (empty) context menu, and a couple event handlers:&lt;br /&gt; &lt;br /&gt;private void InitializeContext()&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;    components = new System.ComponentModel.Container();&lt;br /&gt; &lt;br /&gt;    notifyIcon = new NotifyIcon(components)&lt;br /&gt; &lt;br /&gt;                        {&lt;br /&gt; &lt;br /&gt;                            ContextMenuStrip = new ContextMenuStrip(),&lt;br /&gt; &lt;br /&gt;                            Icon = new Icon(IconFileName),&lt;br /&gt; &lt;br /&gt;                            Text = DefaultTooltip,&lt;br /&gt; &lt;br /&gt;                            Visible = true&lt;br /&gt; &lt;br /&gt;                        };&lt;br /&gt; &lt;br /&gt;    notifyIcon.ContextMenuStrip.Opening += ContextMenuStrip_Opening;&lt;br /&gt; &lt;br /&gt;    notifyIcon.DoubleClick += notifyIcon_DoubleClick;&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Tailoring Your Program Entry Point: The ApplicationContext&lt;br /&gt; &lt;br /&gt;When you create a normal WinForms application, Visual Studio auto-generates part of the code for the form itself (stored in YourForm.designer.cs) but it also generates an even more crucial portion of code that is less exposed, stored in Program.cs. This file provides an entry point for your entire application—the Application object. For a form-centric application, the key line of code that launches your form as the mainstay of the application is:&lt;br /&gt; &lt;br /&gt;         Application.Run(new Form1());&lt;br /&gt; &lt;br /&gt;Jessica Fosler, in her article Creating Applications with NotifyIcon in Windows Forms, breaks down that single statement into this equivalent code to provide a better understanding of what happens:&lt;br /&gt; &lt;br /&gt;        Form1 form1 = new Form1();&lt;br /&gt;        ApplicationContext applicationContext = new ApplicationContext();&lt;br /&gt; &lt;br /&gt;        applicationContext.MainForm = form1;&lt;br /&gt; &lt;br /&gt;        Application.Run(applicationContext);&lt;br /&gt; &lt;br /&gt;This sequence reveals the hidden intermediary component between your Form and the central Application.Run method—the ApplicationContext object. Attaching the form to the MainForm property of the ApplicationContext does two things. First, calling Application.Run invokes the form’s Show method, opening your form to begin processing events. Second, it ensures the entire application terminates when the form closes. Those two actions describe just how a form-centric application behaves. For a tray-centric application, on the other hand, the entry point code is just as simple but significantly different:&lt;br /&gt; &lt;br /&gt;        ApplicationContext applicationContext = new CustomApplicationContext();&lt;br /&gt;        Application.Run(applicationContext);&lt;br /&gt; &lt;br /&gt;This code creates a custom ApplicationContext, which you will see next. Notably there is no mention of any Form here. It (or they) will be instantiated as needed by the custom ApplicationContext. When you pass the custom ApplicationContext to the Run method, rather than open a form, here you are just passing control to the ApplicationContext. The final bit of code you need to get from there to the InitializeContext method shown earlier is just the constructor for the custom ApplicationContext:&lt;br /&gt; &lt;br /&gt;public CustomApplicationContext() &lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;    InitializeContext();&lt;br /&gt; &lt;br /&gt;    hostManager = new HostManager(notifyIcon);&lt;br /&gt; &lt;br /&gt;    hostManager.BuildServerAssociations();&lt;br /&gt; &lt;br /&gt;    if (!hostManager.IsDecorated) { ShowForm(); }&lt;br /&gt; &lt;br /&gt;The first statement materializes the user interface—in this case, the icon in the system tray. The remaining lines of the constructor are specific to the HostSwitcher application; yours will be tailored to your own application. For this application, the code creates a HostManager (the workhorse of HostSwitcher) and does an initial pass of parsing the hosts file. Finally, if the parsing step indicated that the file has no decoration—probably indicating this is the first time the application has been launched—it displays the form showing basic program operation (see Figure 1).&lt;br /&gt; &lt;br /&gt;Rounding Out the ApplicationContext&lt;br /&gt; &lt;br /&gt;The web of connections is starting to materialize: the ApplicationContext constructor is called from the Main method in Program.cs. The constructor in turn invokes InitializeContext, which creates the NotifyIcon. InitializeContext also adds a couple event handlers to the NotifyIcon, notably the one that fires when the user opens the context menu. This event handler code, shown here, is specific to HostSwitcher, except for the important first line. Whenever you are dynamically generating a context menu you must set the e.Cancel flag to false: that allows the context menu to continue opening even if it is empty at the moment of clicking. (By the time it opens, the code in the event handler should have populated it, of course.)&lt;br /&gt; &lt;br /&gt;private void ContextMenuStrip_Opening(&lt;br /&gt;    object sender, System.ComponentModel.CancelEventArgs e)&lt;br /&gt; &lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;    e.Cancel = false;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    hostManager.BuildServerAssociations();&lt;br /&gt; &lt;br /&gt;    hostManager.BuildContextMenu(notifyIcon.ContextMenuStrip);&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    notifyIcon.ContextMenuStrip.Items.Add(new ToolStripSeparator());&lt;br /&gt; &lt;br /&gt;    notifyIcon.ContextMenuStrip.Items.Add(hostManager&lt;br /&gt; &lt;br /&gt;.ToolStripMenuItemWithHandler(&quot;Show &amp;Details&quot;, showDetailsItem_Click));&lt;br /&gt; &lt;br /&gt;    notifyIcon.ContextMenuStrip.Items.Add(hostManager&lt;br /&gt; &lt;br /&gt;.ToolStripMenuItemWithHandler(&quot;&amp;Help/About&quot;, showHelpItem_Click));&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    notifyIcon.ContextMenuStrip.Items.Add(new ToolStripSeparator());&lt;br /&gt; &lt;br /&gt;    notifyIcon.ContextMenuStrip.Items.Add(hostManager&lt;br /&gt; &lt;br /&gt;.ToolStripMenuItemWithHandler(&quot;&amp;Exit&quot;, exitItem_Click));&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;For HostSwitcher, I reread the hosts file each time the user opens the context menu (BuildServerAssociations) to keep it current. The hostManager then builds the custom portion of the context menu and the remaining lines here finish up the menu with commands to open different child windows.&lt;br /&gt; &lt;br /&gt;These next methods comprise the rest of the generic portion of the custom ApplicationContext, mostly verbatim from Fosler’s Creating Applications with NotifyIcon in Windows Forms. They take care of proper cleanup in the class:&lt;br /&gt; &lt;br /&gt;private void exitItem_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;    ExitThread();&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;protected override void Dispose(bool disposing)&lt;br /&gt; &lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;    if ( disposing &amp;&amp; components != null) { components.Dispose(); }&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;protected override void ExitThreadCore()&lt;br /&gt; &lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;    if (mainForm != null) { mainForm.Close(); }&lt;br /&gt; &lt;br /&gt;    notifyIcon.Visible = false; // should remove lingering tray icon!&lt;br /&gt; &lt;br /&gt;    base.ExitThreadCore();&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Customizing WinForm Connections&lt;br /&gt; &lt;br /&gt;The only remaining portions of the custom ApplicationContext involve hooking up any child forms you may need. First you need a method to display the form if it already exists, or create one if it does not. You should use the code shown here as a template for your own child forms, changing the one line that indicates the Form name and optionally, its arguments. You may also want to change the variable name; I use detailsForm here because it shows the details view for HostSwitcher.&lt;br /&gt; &lt;br /&gt;private void ShowDetailsForm()&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;    if (detailsForm == null)&lt;br /&gt; &lt;br /&gt;    {&lt;br /&gt; &lt;br /&gt;        detailsForm = new DetailsForm {HostManager = hostManager};&lt;br /&gt; &lt;br /&gt;        detailsForm.Closed += detailsForm_Closed;&lt;br /&gt; &lt;br /&gt;        detailsForm.Show();&lt;br /&gt; &lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt;    else { detailsForm.Activate(); }&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;With this method in hand you need to invoke it from your tray icon’s context menu and clean it up when closed:&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;// attach to context menu items&lt;br /&gt; &lt;br /&gt;void showDetailsItem_Click(object sender, EventArgs e)  { ShowDetailsForm();  }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;// null out the forms so we know to create a new one.&lt;br /&gt; &lt;br /&gt;void detailsForm_Closed(object sender, EventArgs e)     { detailsForm = null; }&lt;br /&gt; &lt;br /&gt;WPF Can Play, Too!&lt;br /&gt; &lt;br /&gt;The NotifyIcon, as neutral as it may seem, exists in the WinForms namespace. I was wondering if it could play well with WPF too since WPF does not have its own. In my previous article on WPF and WinForms interoperability (Mixing WPF and WinForms) I came to appreciate the enormous size and complexity of making these two technologies play well together and kudos to Microsoft for making it a reality. Because of the support from the Framework, it is trivial to use a WPF window instead of a WinForms window. First, create a WPF window. (Do this in a new, separate project because Visual Studio does not let you put a WPF window in a WinForms project. The project should be a WPF Custom Control Library. See Johan Danforth&#39;s blog entry Open a WPF Window from WinForms that shows you the step by step procedure in a very clear and concise article!) With that in hand you then use this slightly different method to display the form:&lt;br /&gt; &lt;br /&gt;private void ShowIntroForm()&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;    if (introForm == null)&lt;br /&gt; &lt;br /&gt;    {&lt;br /&gt; &lt;br /&gt;         introForm = new WpfFormLibrary.IntroForm();&lt;br /&gt; &lt;br /&gt;         introForm.Closed += mainForm_Closed;&lt;br /&gt; &lt;br /&gt;         ElementHost.EnableModelessKeyboardInterop(introForm);&lt;br /&gt; &lt;br /&gt;         introForm.Show();&lt;br /&gt; &lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt;    else { introForm.Activate(); }&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;The only difference from the WinForms version, discounting names, is the additional line invoking the EnableModelessKeyboardInterop method. Danforth explains that this line is important to properly handle keyboard input; further details are available in the MSDN forum post Windows Form opening WPF window as well.&lt;br /&gt; &lt;br /&gt;Then, just as with the WinForms version, you need to hook up the child form with event handlers. The first line is unique here only because I chose this child form to respond to double-clicking the tray icon; you could just as easily let it display the WinForm child.&lt;br /&gt; &lt;br /&gt;void notifyIcon_DoubleClick(object sender, EventArgs e) { ShowIntroForm();    }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;// attach to context menu items&lt;br /&gt; &lt;br /&gt;void showHelpItem_Click(object sender, EventArgs e)     { ShowIntroForm();    }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;// null out the forms so we know to create a new one.&lt;br /&gt; &lt;br /&gt;void mainForm_Closed(object sender, EventArgs e)        { introForm = null;   }&lt;br /&gt; &lt;br /&gt;As you can see, it is just as easy to use a WPF window as it is a WinForms window, even though the NotifyIcon is a WinForms class. While WPF does not have a NotifyIcon native to the .NET framework, thanks to Philipp Sumi (the same industrious developer who created Sketchables for SketchFlow), there is a NotifyIcon available in pure WPF, enhancing the display capabilities of your tray icon with rich tool tips instead of just text, WPF context menus, flexible data binding, and rich balloon messages. It looks so enticing I am eager to convert HostSwitcher over to it at some point! Read Philipp’s article, simply titled WPF NotifyIcon, and download his code to try it out.&lt;br /&gt; &lt;br /&gt;Ensuring Only One Instance Executes: Mutual Exclusion&lt;br /&gt; &lt;br /&gt;There are three commonly used techniques for enforcing only one instance of your application may execute. Regardless of the technique, though, the algorithm is the same: very early in its startup each instance checks to see if any other instances are running and terminates if there are. The first instance, finding none, continues initialization while any subsequent ones obediently disappear.&lt;br /&gt; &lt;br /&gt;Technique 1: Native .NET Support&lt;br /&gt; &lt;br /&gt;The .NET framework includes a class (WindowsFormsApplicationBase) that you subclass to create a single instance manager. It is relatively simple to hook up. The only odd thing about it is that it exists in a Visual Basic namespace even though you are free to use it in other .NET languages just as readily. Thus, you must include a reference to Microsoft.VisualBasic.dll. Michael Kuehl has a good article on this approach which may be used for WinForms or WPF despite the title: WPF - Writing a Single Instance Application. This is his code sample; I refer you to his article for details on what it does:&lt;br /&gt; &lt;br /&gt;public sealed class SingleInstanceManager : WindowsFormsApplicationBase&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;    [STAThread]&lt;br /&gt; &lt;br /&gt;    public static void Main(string[] args)&lt;br /&gt; &lt;br /&gt;    { (new SingleInstanceManager()).Run(args); }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    public SingleInstanceManager()&lt;br /&gt; &lt;br /&gt;    { IsSingleInstance = true; }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    public ExampleApplication App { get; private set; }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    protected override bool OnStartup(StartupEventArgs e)&lt;br /&gt; &lt;br /&gt;    {&lt;br /&gt; &lt;br /&gt;        App = new ExampleApplication();&lt;br /&gt; &lt;br /&gt;        App.Run();&lt;br /&gt; &lt;br /&gt;        return false;&lt;br /&gt; &lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    protected override void OnStartupNextInstance(&lt;br /&gt; &lt;br /&gt;      StartupNextInstanceEventArgs eventArgs)&lt;br /&gt; &lt;br /&gt;    {&lt;br /&gt; &lt;br /&gt;        base.OnStartupNextInstance(eventArgs);&lt;br /&gt; &lt;br /&gt;        App.MyWindow.Activate();&lt;br /&gt; &lt;br /&gt;        App.ProcessArgs(eventArgs.CommandLine.ToArray(), false);&lt;br /&gt; &lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Technique 2: The Process Table&lt;br /&gt; &lt;br /&gt;With this technique you check if your application appears in the list of running processes on your machine. This takes only a few lines of code in your Main() method. Bob Powell describes this technique succinctly in The Single Instance Application. This is his code sample:&lt;br /&gt; &lt;br /&gt;static void Main()&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;  string appProcessName =&lt;br /&gt; &lt;br /&gt;    Path.GetFileNameWithoutExtension(Application.ExecutablePath);&lt;br /&gt; &lt;br /&gt;  Process[] RunningProcesses = Process.GetProcessesByName(appProcessName);&lt;br /&gt; &lt;br /&gt;  if (RunningProcesses.Length == 1) // just me, so run!&lt;br /&gt; &lt;br /&gt;  {&lt;br /&gt; &lt;br /&gt;    Application.EnableVisualStyles();&lt;br /&gt; &lt;br /&gt;    Application.SetCompatibleTextRenderingDefault(false);&lt;br /&gt; &lt;br /&gt;    Application.Run(new CustomApplicationContext());&lt;br /&gt; &lt;br /&gt;  }&lt;br /&gt; &lt;br /&gt;  else // switch to the first instance and exit&lt;br /&gt; &lt;br /&gt;  {&lt;br /&gt; &lt;br /&gt;    ShowWindowAsync(RunningProcesses[0].MainWindowHandle,&lt;br /&gt; &lt;br /&gt;        (int)ShowWindowConstants.SW_SHOWMINIMIZED);&lt;br /&gt; &lt;br /&gt;    ShowWindowAsync(RunningProcesses[0].MainWindowHandle,&lt;br /&gt; &lt;br /&gt;        (int)ShowWindowConstants.SW_RESTORE);&lt;br /&gt; &lt;br /&gt;  }&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Technique 3: The Mutex Primitive&lt;br /&gt; &lt;br /&gt;This technique uses the .NET Mutex (short for mutual exclusion) synchronization primitive. A mutex object allows you to obtain a resource and then lock it so that others may not obtain it until you release the lock. The application is obvious: here you want to allow the first instance of your application to run, and then create a lock so that other instances may not run. In this code sample the Mutex object is embedded in the SingleInstance class: the Start method requests the mutex lock while the Stop method releases it. If the lock is not obtainable, i.e. this is not the first instance, the program terminates. Otherwise it continues to run and upon conclusion releases the lock.&lt;br /&gt; &lt;br /&gt;static void Main()&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;    if (!SingleInstance.Start()) { return; } // mutex not obtained so exit&lt;br /&gt; &lt;br /&gt;    Application.EnableVisualStyles();&lt;br /&gt; &lt;br /&gt;    Application.SetCompatibleTextRenderingDefault(false);&lt;br /&gt; &lt;br /&gt;    try&lt;br /&gt; &lt;br /&gt;    {&lt;br /&gt; &lt;br /&gt;        Application.Run(new CustomApplicationContext());&lt;br /&gt; &lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt;    catch (Exception ex)&lt;br /&gt; &lt;br /&gt;    {&lt;br /&gt; &lt;br /&gt;        MessageBox.Show(ex.Message, &quot;Program Terminated Unexpectedly&quot;,&lt;br /&gt; &lt;br /&gt;            MessageBoxButtons.OK, MessageBoxIcon.Error);&lt;br /&gt; &lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt;    SingleInstance.Stop(); // all finished so release the mutex&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;This technique—the one I chose to apply to HostSwitcher—is thoroughly detailed in C# Single Instance App With the Ability To Restore From System Tray written by a developer with the moniker of “devzoo”. This has the clear benefit of only a couple lines of code added to your application once you reference the MutexManager library included in the HostSwitcher solution as a separate DLL. (My MutexManager library is a simple repackaging of devzoo’s nicely encapsulated classes.) Note that the all-encompassing error trapping is important here—you want to ensure that you release the mutex even if your program throws an exception.&lt;br /&gt; &lt;br /&gt;Strengths and Weaknesses of Mutex Techniques&lt;br /&gt; &lt;br /&gt;There are a variety of factors to consider in deciding which technique to use to enforce the single instance principle. The WindowsFormsApplicationBase seems a bit more complex in instrumenting your code. The process list approach requires very simple coding and no additional libraries, but it does have some weaknesses, as K. Scott Allens describes in the blog entry on The Misunderstood Mutex. Because of those weaknesses I prefer the Mutex approach.&lt;br /&gt; &lt;br /&gt;On the other hand, notice in the code samples that the Mutex technique is the only one of the three where you cannot activate the first instance from subsequent instances. For a form-centric application, re-activating the first instance when the user attempts to launch a second instance is clearly a good usability goal. But for a tray-centric application like HostSwitcher there is little benefit—the “application” is in the system tray so there is not even a concept of bringing it to the foreground. I will admit, though, that some tray-centric applications would find it a benefit—those where the user operates primarily in child windows (e.g., a firewall or antivirus program). These typically live in your system tray but at any time you can open up a main window as long lasting as any normal desktop application.&lt;br /&gt; &lt;br /&gt;I have a solution in mind to strength the Mutex approach (though I have not yet implemented it): use the standard Mutex for enforcing a single instance, but then use the process table technique to find the first instance and activate it as demonstrated in the code sample above.&lt;br /&gt; &lt;br /&gt;Conclusion&lt;br /&gt; &lt;br /&gt;When I first had the thought “I need a small application to manage my host routing” I had little notion of the nuances and trade-offs involved in creating a well-designed tray app. And, just like the oft-stated comment that “If one person has a question, probably many others in the audience do, too,” I believe that if one developer realizes “Oh, that’s how it is done,” then there are probably many other developers who may appreciate the knowledge as well.&lt;br /&gt; &lt;br /&gt;About the only thing I could not come to a good resolution when designing this application is its name. HostSwitcher seems like a reasonable choice but I am not convinced it is the best choice. Thus, I would like to encourage you, dear reader, to post a comment at the bottom to state whether you think HostSwitcher succinctly conveys the intent of the program or to offer an alternative if you have something else in mind. SoftSwitch? HostRouter? HostOnToast? IpHop? NetSpinner? Let me hear from you!&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/368505935596982846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2012/03/tray-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/368505935596982846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/368505935596982846'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2012/03/tray-application.html' title='Tray Application'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-443153677167775277</id><published>2011-01-31T03:58:00.000-08:00</published><updated>2011-01-31T04:02:25.890-08:00</updated><title type='text'>Session Vs Application variable</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;Session Vs Application variable&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Application Variables:&lt;/span&gt;&lt;br /&gt;Application variables are the variables which remain common for the whole application for all the users… Their value can be used across the whole application by any user… And they die only when the application stops or probably when they are killed forcibly… The ideal example for these kind of variables are site counter… We can find out how many people accessed a particular site since the time it went live via application variables and incrementing the same on ever session start.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Session Variables:&lt;/span&gt;&lt;br /&gt;Session variables are variables which remain common for the whole application but for one particular user. They also can be used across the whole application but each user will have a copy… But they die when a particular user session ends or probably when they are killed forcibly… The ideal example for this kind of variable are user id… You might want to show &quot;Welcome Meetu Choudhary &quot; on every page of your site till Meetu Choudhary logs off… So in session start you set a variable to &quot;Welcome Meetu Choudhary&quot; and kill it on end of session…&lt;br /&gt;&lt;br /&gt;All these events session start, session end, application start, application end are found in global.asax and that’s the reason global.asax is one for the whole ASP.Net application…&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/443153677167775277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2011/01/session-vs-application-variable.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/443153677167775277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/443153677167775277'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2011/01/session-vs-application-variable.html' title='Session Vs Application variable'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-4806252654363794849</id><published>2011-01-05T22:46:00.000-08:00</published><updated>2011-01-31T22:50:11.026-08:00</updated><title type='text'>General Page Life-cycle Stages in ASP.Net</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;Page request&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;The page request occurs before the page life cycle begins. When the page is requested by a user, ASP.NET determines whether the page needs to be parsed and compiled or whether a cached version of the page can be sent in response without running the page.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Start:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the start step, page properties such as Request and Response are set. At this stage, the page also determines whether the request is a postback or a new request and sets the IsPostBack property. Additionally, during the start step, the page&#39;s UICulture property is set.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Page initialization:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;During page initialization, controls on the page are available and each control&#39;s UniqueID property is set. Any themes are also applied to the page. If the current request is a postback, the postback data has not yet been loaded and control property values have not been restored to the values from view state.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Load:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;During load, if the current request is a postback, control properties are loaded with information recovered from view state and control state.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Validation:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;During validation, the Validate method of all validator controls is called, which sets the IsValid property of individual validator controls and of the page.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Postback event handling:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If the request is a postback, any event handlers are called.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Rendering:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Before rendering, view state is saved for the page and all controls. During the rendering phase, the page calls the Render method for each control, providing a text writer that writes its output to the OutputStream of the page&#39;s Response property.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Unload:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Unload is called after the page has been fully rendered, sent to the client, and is ready to be discarded. At this point, page properties such as Response and Request are unloaded and any cleanup is performed.&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/4806252654363794849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2011/01/general-page-life-cycle-stages-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/4806252654363794849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/4806252654363794849'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2011/01/general-page-life-cycle-stages-in.html' title='General Page Life-cycle Stages in ASP.Net'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-5975601028235160637</id><published>2010-10-14T00:34:00.000-07:00</published><updated>2010-10-14T00:35:11.686-07:00</updated><title type='text'>How does IIS communicate at runtime with ASP.NET</title><content type='html'>When an aspx requested, IIS checks the file extension in its metabase.&lt;br /&gt;&lt;br /&gt;To view the metabase Start&gt; Run &gt; inetmgr&lt;br /&gt;In the Internet Information Services window right click in &#39;Web sites&#39; &gt; Properties&lt;br /&gt;Select &#39;Home Directory&#39; tab and click the Configuration button &lt;br /&gt;Now you can see a table with 3 columns. &lt;br /&gt;aspx is mapped to aspnet_isapi.dll&lt;br /&gt;&lt;br /&gt;When IIS find the extension aspx, then it loads the aspnet_isapi.dll and pass all the request details to it. &lt;br /&gt;&lt;br /&gt;aspnet_isapi.dll then loads the CLR and pass all the request details that received.&lt;br /&gt;&lt;br /&gt;CLR then create HttpRuntime engine.&lt;br /&gt;&lt;br /&gt;The begining of the runtime engine is HttpRunTime class. It creates the HttpContext object and stores all the request details.&lt;br /&gt;&lt;br /&gt;From there HttpContext object passes through a pipeline which consists of HttpApplication object, HttpModule objects and finally HttpHandler object ( that is our page class).&lt;br /&gt;&lt;br /&gt;HttpHandler object creates the html page&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Hope so you get ur answer&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/5975601028235160637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2010/10/how-does-iis-communicate-at-runtime.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/5975601028235160637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/5975601028235160637'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2010/10/how-does-iis-communicate-at-runtime.html' title='How does IIS communicate at runtime with ASP.NET'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-3925532550212794433</id><published>2010-09-03T03:22:00.000-07:00</published><updated>2010-09-03T03:35:38.313-07:00</updated><title type='text'>How to SAVE and RETRIEVE image in DataBase SQL with LINQ</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;public void SaveImage()&lt;br /&gt;{&lt;/span&gt;&lt;br /&gt;byte[] pic = null;&lt;br /&gt;int len = FUImage.PostedFile.ContentLength;&lt;br /&gt;pic = new byte[len];&lt;br /&gt;FUImage.PostedFile.InputStream.Read(pic, 0, len);&lt;br /&gt;&lt;br /&gt;Table_Name tab_name = new Table_Name()&lt;br /&gt;   {&lt;br /&gt;        Image = pic,&lt;br /&gt;    };&lt;br /&gt; _data.odatacontext.Table_Name.InsertOnSubmit(tab_registration);&lt;br /&gt; _data.odatacontext.SubmitChanges();&lt;br /&gt;}&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;public void RETRIEVEImage()&lt;br /&gt;{&lt;/span&gt;&lt;br /&gt; try&lt;br /&gt;                    {&lt;br /&gt;                        System.IO.MemoryStream stream = new MemoryStream();&lt;br /&gt;                        SqlConnection connection = new&lt;br /&gt;                          SqlConnection(@&quot;Data Source=(local);Initial Catalog=DataBaseName;User ID=sa;Password=123&quot;);&lt;br /&gt;&lt;br /&gt;                        connection.Open();&lt;br /&gt;                        SqlCommand command = new&lt;br /&gt;                          SqlCommand(&quot;select top(1) Image from Table_Name order by RID desc&quot;, connection);&lt;br /&gt;                        byte[] image = (byte[])command.ExecuteScalar();&lt;br /&gt;                        stream.Write(image, 0, image.Length);&lt;br /&gt;                       System.Drawing.Bitmap bitmap = new Bitmap(stream);&lt;br /&gt;                        Response.ContentType = &quot;image/gif&quot;;&lt;br /&gt;                        bitmap.Save(Response.OutputStream, ImageFormat.Gif);&lt;br /&gt;            }&lt;br /&gt;                    finally&lt;br /&gt;                    {&lt;br /&gt;                    connection.Close();&lt;br /&gt;&lt;br /&gt;                    }&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;}&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/3925532550212794433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2010/09/how-to-save-and-retrieve-image-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/3925532550212794433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/3925532550212794433'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2010/09/how-to-save-and-retrieve-image-in.html' title='How to SAVE and RETRIEVE image in DataBase SQL with LINQ'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-7932900524906613147</id><published>2010-05-24T22:36:00.000-07:00</published><updated>2010-11-07T21:55:48.330-08:00</updated><title type='text'>Contact</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;Contact&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;Brajendra Shukla&lt;br&gt;&lt;br /&gt;brajendrashukla25@gmail.com&lt;br&gt;&lt;br /&gt;brajendra@janpratinidhi.com&lt;br&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/7932900524906613147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2010/05/contact.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/7932900524906613147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/7932900524906613147'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2010/05/contact.html' title='Contact'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-7002038596700628536</id><published>2010-02-05T02:59:00.000-08:00</published><updated>2010-02-12T04:45:51.307-08:00</updated><title type='text'>XML with LINQ</title><content type='html'>Parent child Relationship:&lt;br /&gt;&lt;strong&gt;public static object GetMLAMemberDetailsByConstituency(string Id)&lt;/strong&gt;        &lt;strong&gt;{&lt;/strong&gt;&lt;br /&gt;            XDocument Xdoc = XDocument.Load(&quot;Root.Data/DataXML/MLAXML.xml&quot;);&lt;br /&gt;            var settingElement = from us in Xdoc.Elements(&quot;root&quot;).Elements (&quot;State&quot;).Elements(&quot;PC&quot;).Elements(&quot;Constituency&quot;).Elements(&quot;PM&quot;).Elements(&quot;PT&quot;)&lt;br /&gt;                                 where us.Parent.Parent.Attribute (&quot;ConstituencyId&quot;).Value == Id&lt;br /&gt;             select new&lt;br /&gt;             {&lt;br /&gt;                 FirstName = us.Parent.Attribute (&quot;FirstName&quot;).Value,&lt;br /&gt;                 LastName = us.Parent.Attribute(&quot;LastName&quot;).Value,&lt;br /&gt;                 State = us.Parent.Parent.Parent.Parent.Attribute(&quot;StateName&quot;).Value,&lt;br /&gt;                 PC = us.Parent.Parent.Parent.Attribute(&quot;PCName&quot;).Value,&lt;br /&gt;                 constituency = us.Parent.Parent.Attribute(&quot;ConstituencyName&quot;).Value,&lt;br /&gt;                 ConstituencyId = us.Parent.Parent.Attribute(&quot;ConstituencyId&quot;).Value,&lt;br /&gt;                 PartyName = us.Attribute(&quot;PartyName&quot;).Value,&lt;br /&gt;             };&lt;br /&gt;            return settingElement.ToList();&lt;br /&gt;       &lt;strong&gt; }&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;More Details:&lt;/strong&gt;&lt;br /&gt;&lt;a href=&quot;http://www.aspnettutorials.com/tutorials/xml/linq-to-xml-adding-cs.aspx&quot;&gt;&lt;font color=&quot;Blue&quot;&gt;http://www.aspnettutorials.com/tutorials/xml/linq-to-xml-adding-cs.aspx&lt;/font&gt;&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/7002038596700628536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2010/02/xml-with-linq.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/7002038596700628536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/7002038596700628536'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2010/02/xml-with-linq.html' title='XML with LINQ'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-50938284955433263</id><published>2010-01-24T22:20:00.001-08:00</published><updated>2010-01-30T23:15:44.263-08:00</updated><title type='text'>AutoComplete Textbox</title><content type='html'>&lt;strong&gt;Introduction:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This article explains to fill a AutoComplete Textbox from the data fetched from database.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Description:&lt;/strong&gt;&lt;br /&gt;Everyone knows about the AutoComplete Textbox. It is an ASP.NET AJAX extender that can be attached to any TextBox control. When the user types some letters in the Textbox, a popup panel will come to action and displayed the related words. So that the user can choose exact word from the popup panel. Here I tried to explain how this AutoComplete fetches data from the database through a Webservice.&lt;br /&gt;&lt;br /&gt;Open Microsoft Visual Studio, click on New Website. Then choose ASP.NET Ajax Enabled Website and change the location to point your http://localhost/AutoComplete folder. Obviously, Default.aspx is added to your solution explorer.&lt;br /&gt;&lt;br /&gt;Now drag and drop a Textbox from your Toolbox. Then drag and drop a ScriptManager and AutoCompleteExtender to your Default.aspx page. Then add a webservice to your project as WebService.asmx. First thing you have to do is to add the ScriptService reference to the webserive as follows.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;font color= Red&gt;System.Web.Script.Services.ScriptService&lt;/font&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color= Green&gt;[WebMethod]&lt;/font&gt;&lt;br /&gt;&lt;b&gt;public string[] GetCountryInfo(string prefixText)&lt;br /&gt;{&lt;/b&gt;&lt;br /&gt;int count = 10; &lt;br /&gt;string sql = &quot;Select * from Country Where Country_Name like @prefixText&quot;;&lt;br /&gt;SqlDataAdapter da = new SqlDataAdapter(sql,&quot;Your Connection String Comes Here&quot;));&lt;br /&gt;da.SelectCommand.Parameters.Add(&quot;@prefixText&quot;, SqlDbType.VarChar, 50).Value = prefixText+ &quot;%&quot;; &lt;br /&gt;DataTable dt = new DataTable(); &lt;br /&gt;da.Fill(dt); &lt;br /&gt;string[] items = new string[dt.Rows.Count];&lt;br /&gt;int i = 0; &lt;br /&gt;foreach (DataRow dr in dt.Rows) &lt;br /&gt;{ &lt;br /&gt;items.SetValue(dr[&quot;Country_Name&quot;].ToString(),i); &lt;br /&gt;i++; &lt;br /&gt;} &lt;br /&gt;return items; &lt;br /&gt;&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The above webmethod takes prefixText as argument, sends it to the query to fetch only the related words that starts with the prefixText values. Then it returns the result as an array of strings.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;cc1:AutoCompleteExtender ID=&quot;AutoCompleteExtender1&quot; runat=&quot;server&quot; MinimumPrefixLength=&quot;1&quot; ServiceMethod=&quot;GetCountryInfo&quot; ServicePath=&quot;WebService.asmx&quot; TargetControlID=&quot;TextBox1&quot;&gt; &lt;/cc1:AutoCompleteExtender&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Now, it&#39;s time to run the project. Select the Default.aspx and click on View in Browser. You can see the excellent application starts to run. Type your country&#39;s first letter. See all the countries starts with that letter will appear in the popup.&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/50938284955433263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2010/01/autocomplete-textbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/50938284955433263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/50938284955433263'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2010/01/autocomplete-textbox.html' title='AutoComplete Textbox'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-2788675143531291931</id><published>2010-01-21T02:11:00.000-08:00</published><updated>2010-01-21T02:26:45.671-08:00</updated><title type='text'>SqlCacheDependency Caching in Detail</title><content type='html'>&lt;blockquote&gt;&lt;strong&gt;Caching with filtration:&lt;/strong&gt;&lt;/blockquote&gt; &lt;br /&gt;private void Bind()&lt;br /&gt;    {&lt;br /&gt;        try&lt;br /&gt;        {&lt;br /&gt;            DataSet DS_district = new DataSet();&lt;br /&gt;            DataTable _table = new DataTable();&lt;br /&gt;            if (Cache[&quot;CachingName&quot;] == null)&lt;br /&gt;            {&lt;br /&gt;                DS_district = Common.GetAllDistrict();&lt;br /&gt;                SqlCacheDependency dependency = new SqlCacheDependency (&quot;DataBaseName&quot;, &quot;TableName&quot;);&lt;br /&gt;                Cache.Insert(&quot;CachingName&quot;, DS_district, dependency, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(10));&lt;br /&gt;                _table = DS_district.Tables[0];&lt;br /&gt;                var query = from _district in _table.AsEnumerable()&lt;br /&gt;                            where _district.Field&lt;Int64&gt;(&quot;Id&quot;).Equals(Convert.ToInt64                            (Dropdown2.SelectedValue))&lt;br /&gt;                            select _district;&lt;br /&gt;&lt;br /&gt;                DataView _view = query.AsDataView();&lt;br /&gt;                Dropdown1.DataSource = _view;&lt;br /&gt;                Dropdown1.DataTextField = &quot;Name&quot;;&lt;br /&gt;                Dropdown1.DataValueField = &quot;Id&quot;;&lt;br /&gt;                Dropdown1.DataBind();&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;            {&lt;br /&gt;                DS_district = (DataSet)Cache[&quot;CachingName&quot;];&lt;br /&gt;                _table = DS_district.Tables[0];&lt;br /&gt;                var query = from _district in _table.AsEnumerable()&lt;br /&gt;                            where _district.Field&lt;Int64&gt;(&quot;Id&quot;).Equals(Convert.ToInt64                                (Dropdown2.SelectedValue))&lt;br /&gt;                            select _district;&lt;br /&gt;&lt;br /&gt;                DataView _view = query.AsDataView();&lt;br /&gt;                Dropdown1.DataSource = _view;&lt;br /&gt;                Dropdown1.DataTextField = &quot;GeographicName&quot;;&lt;br /&gt;                Dropdown1.DataValueField = &quot;GeographicId&quot;;&lt;br /&gt;                Dropdown1.DataBind();&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        catch (Exception ex)&lt;br /&gt;        {&lt;br /&gt;            lblError.Text = ex.Message.ToString();&lt;br /&gt;        }&lt;br /&gt;    }&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/2788675143531291931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2010/01/sqlcachedependency-caching-in-detail.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/2788675143531291931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/2788675143531291931'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2010/01/sqlcachedependency-caching-in-detail.html' title='SqlCacheDependency Caching in Detail'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-9198952881111844420</id><published>2010-01-07T02:51:00.000-08:00</published><updated>2010-01-07T03:22:07.613-08:00</updated><title type='text'>Implement Caching</title><content type='html'>&lt;strong&gt;&lt;blockquote&gt;In SQL Server DataBase&lt;/blockquote&gt;:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Run this command:&lt;/strong&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-lSN_S6MYttV2jgc6SegkOOCcKg1o7uotVEfiVxn90tjbiTPJI3Z-7XTlXaCKzu67J209y80o5Vxt1DKHUuF47435L0feKxd6aKiz99ZQXLQpYBr837LnbsU-MpJC3leNpISstYCqP_8/s1600-h/EnableDatabase.bmp&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 95px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-lSN_S6MYttV2jgc6SegkOOCcKg1o7uotVEfiVxn90tjbiTPJI3Z-7XTlXaCKzu67J209y80o5Vxt1DKHUuF47435L0feKxd6aKiz99ZQXLQpYBr837LnbsU-MpJC3leNpISstYCqP_8/s400/EnableDatabase.bmp&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5423955250297838898&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Exp:&lt;br /&gt;&lt;strong&gt;aspnet_regsql.exe -S localhost -U sa -P sa -d NewDataBase -ed&lt;/strong&gt;&lt;br /&gt;This command Enable your Data Base, now You need to enable using table , for this command is...&lt;br /&gt;&lt;strong&gt;aspnet_regsql.exe -S localhost -U sa -P sa -d NewDataBase -t tableName -et&lt;/strong&gt;&lt;br /&gt;After this go to SQL server , you get a new table &quot;AspNet_SqlCacheTablesForChangeNotification&quot;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;coding on web.conf file&lt;/strong&gt;&lt;br /&gt; &lt;strong&gt;system.web&lt;br /&gt;    caching&lt;br /&gt;      sqlCacheDependency enabled=&quot;true&quot;&lt;br /&gt;        databases&lt;br /&gt;          add name=&quot;NewTest&quot; connectionStringName=&quot;Connection&quot; pollTime=&quot;500&quot;&lt;br /&gt;        /databases&lt;br /&gt;        /sqlCacheDependency&lt;br /&gt;    /caching&lt;br /&gt;/system.web&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Coding on .cs file&lt;/strong&gt;&lt;br /&gt;DataSet geography = new DataSet(); &lt;br /&gt;    protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        if (!Page.IsPostBack)&lt;br /&gt;        {&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                &lt;strong&gt;SqlConnection&lt;/strong&gt; conn = new &lt;strong&gt;SqlConnection&lt;/strong&gt;(ConfigurationManager.ConnectionStrings[&quot;Connection&quot;].ConnectionString);&lt;br /&gt;                &lt;strong&gt;SqlDataAdapter &lt;/strong&gt;adapter = new &lt;strong&gt;SqlDataAdapter&lt;/strong&gt;(&quot;Select * from Users&quot;, conn);&lt;br /&gt;               &lt;br /&gt;                adapter.Fill(geography);&lt;br /&gt;                &lt;strong&gt;SqlCacheDependency dependency = new SqlCacheDependency(&quot;NewTest&quot;, &quot;Users&quot;);&lt;/strong&gt;                Cache.Insert(&quot;Geo&quot;, geography, dependency,System.Web.Caching.Cache.NoAbsoluteExpiration,TimeSpan.FromMinutes(20));&lt;br /&gt;                GridView1.DataSource = geography;&lt;br /&gt;                GridView1.DataBind();&lt;br /&gt;                lblMessage.Text = &quot;Categories retrieved from the Data Base&quot;;&lt;br /&gt;            }&lt;br /&gt;            catch { }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        &lt;strong&gt;DataSet ds = (DataSet)Cache[&quot;Geo&quot;];&lt;/strong&gt;        lblMessage.Text = &quot;Categories retrieved from the Cached data base&quot;;&lt;br /&gt;        GridView1.DataSource = ds;&lt;br /&gt;        GridView1.DataBind();&lt;br /&gt;    }&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/9198952881111844420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2010/01/implement-caching.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/9198952881111844420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/9198952881111844420'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2010/01/implement-caching.html' title='Implement Caching'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-lSN_S6MYttV2jgc6SegkOOCcKg1o7uotVEfiVxn90tjbiTPJI3Z-7XTlXaCKzu67J209y80o5Vxt1DKHUuF47435L0feKxd6aKiz99ZQXLQpYBr837LnbsU-MpJC3leNpISstYCqP_8/s72-c/EnableDatabase.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-8589095874786754275</id><published>2009-12-07T03:58:00.001-08:00</published><updated>2009-12-07T03:58:38.499-08:00</updated><title type='text'>The benefits  Of LINQ</title><content type='html'>While the title of this article may seem misleading, you actually can achieve incredible performance gains by updating your web application to use LINQ. This article will dispell some common myths about LINQ and demonstrate how LINQ can practically increase performance. The examples in this article will be using LINQ to SQL, but the principles apply to LINQ to Entities as well.&lt;br /&gt;&lt;br /&gt;First of all, it&#39;s important to realize what LINQ is and what it isn&#39;t. LINQ is a language feature you&#39;ll see in Visual Studio 2008 (Visual Studio Orcas) and beyond. It&#39;s not dependant on any particular .NET language as you can use it in C# or VB.NET. LINQ stands for &quot;Language Integrated Query&quot;, but its usage goes beyond language capabilities alone.&lt;br /&gt;&lt;br /&gt;It is true that the language speeds up development by allowing you to use a simple query-syntax in C# or VB.NET to query data from a HashTable, XML file or SQL Database. And it&#39;s also true that you can have Visual Studio 2008 write tons of code for you to build classes for your data tables (or even to build SQL tables from your classes). However, this article will demonstrate runtime performance gains you&#39;ll see by using some built in features that come with the language as well.&lt;br /&gt;&lt;br /&gt;The benefits we&#39;ll discuss are:&lt;br /&gt;&lt;br /&gt;Intelligent query translations (such as faster data pagination). &lt;br /&gt;Redundant query checking to prevent needless data hits. &lt;br /&gt;Redundant update checking to ensure minimal data transfers. &lt;br /&gt;Intelligent Query Translations &lt;br /&gt;One of the built-in benefits of using LINQ is that methods that are deemed &quot;best practice&quot; are used in the underlying technologies. For instance, if you were to use a standard ASP.NET 2.0 SqlDataSource, and you bound that data to a GridView with pagination turned on, you might not realize that you&#39;re transferring your entire data table just to use a few rows at a time in your paginated GridView. This results in some heavy queries, heavy data transfers and often times slow page loads.&lt;br /&gt;&lt;br /&gt;The best place to do pagination would be on the SQL server itself. That way you are only transferring the few rows that are desired, saving you much network bandwidth and time. Ultimately, LINQ isn&#39;t doing anything that you couldn&#39;t do yourself, but most developers do not know how to do Pagination In SQL Server 2005, or they may not have time to change all of their queries to do so.&lt;br /&gt;&lt;br /&gt;Again, if you take that simple &quot;SqlDataSource&quot; example above, but this time bind two ASP.NET controls to it (let&#39;s say a GridView and a DropDownList), then you&#39;ll be hitting your SQL server twice, and download all that data twice. This brings us to the next performance gain in LINQ.&lt;br /&gt;&lt;br /&gt;Redundant Query Checking &lt;br /&gt;Some of the biggest performance gains that I&#39;ve benefited from by switching to LINQ is it&#39;s ability to look at the &quot;context&quot; of your request to determine if it needs to hit the database again. If you&#39;ve already started to use LINQ yourself, but you don&#39;t know what I&#39;m talking about, then you&#39;ll probably have a new appreciation for LINQ in a few minutes.&lt;br /&gt;&lt;br /&gt;LINQ uses a &quot;DataContext&quot; object to determine what connection string to use, what objects to map to and other internal things. But you should be careful not to think of the LINQ data context class as you would think of a traditional &quot;SqlConnection&quot;. If you are transitioning from using SqlConnections and SqlCommands you&#39;ll probably code something like this:&lt;br /&gt;&lt;br /&gt;// Example of doing your own straight SQL query:&lt;br /&gt;public static IEnumerable GetMyData()&lt;br /&gt;{&lt;br /&gt;   using (SqlConnection myConnection = new SqlConnection(myConnectionString))&lt;br /&gt;   {&lt;br /&gt;       using (SqlCommand myCommand = myConnection.CreateCommand())&lt;br /&gt;       {&lt;br /&gt;           myCommand.CommandText = &quot;SELECT * FROM dbo.myTable&quot;;&lt;br /&gt;&lt;br /&gt;           using (SqlDataAdapter myAdapter = new SqlDataAdapter(myCommand))&lt;br /&gt;           {&lt;br /&gt;               DataTable resultTable = new DataTable();&lt;br /&gt;&lt;br /&gt;               myAdapter.Fill(resultTable);&lt;br /&gt;&lt;br /&gt;               return resultTable.Rows;&lt;br /&gt;           }&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;If you translated the above method into LINQ, then your method might look something like this:&lt;br /&gt;&lt;br /&gt;// Example of using LINQ to query the &quot;Clients&quot; table:&lt;br /&gt;public static IEnumerable GetMyData()&lt;br /&gt;{&lt;br /&gt;   using (MyDataContext myContext = new MyDataContext())&lt;br /&gt;   {&lt;br /&gt;       return from myRow in myContext.Clients select myRow;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;This at first seems like an acceptable conversion from using a SqlConnection to using LINQ, but you&#39;re missing out on so much (which you&#39;ll see in a minute).&lt;br /&gt;&lt;br /&gt;This is pretty much a 1 to 1 switch from writing your own SQL query to writing a query in LINQ. It is noteworthy that it takes a lot less code to query a database. However, these two code blocks will do the same thing, and you won&#39;t gain any performance from calling the LINQ method instead of calling the straight SQL method. Even if you call both of these functions twice in a row, you won&#39;t gain any performance because we are not utilizing the LINQ context correctly.&lt;br /&gt;&lt;br /&gt;If we extend the range of our context to last for the entire web request (not just for the life of the function call) then we will begin to see performance increases. Before we examine how to do that, let&#39;s look at this next example that should help explain how the context works. We&#39;ll change our above method, &quot;GetMyData&quot;, so that we can pass in our own context. Here&#39;s the code:&lt;br /&gt;&lt;br /&gt;// Change the GetMyData method to take in an existing context.&lt;br /&gt;public static IEnumerable GetMyData(MyDataContext myContext)&lt;br /&gt;{&lt;br /&gt;   return from myRow in myContext.Clients select myRow;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// This will demonstrate how we are going to gain performance with LINQ:&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;   // First, we create our data context just like we did before.&lt;br /&gt;   MyDataContext myContext = new MyDataContext();&lt;br /&gt;&lt;br /&gt;   // Calling this function the first time will hit SQL and query the data.&lt;br /&gt;   GetMyData(myContext);&lt;br /&gt;&lt;br /&gt;   // LINQ is smart enough to realize that we&#39;ve already used this query&lt;br /&gt;   // against this data context, so it won&#39;t hit SQL again. Instead it will&lt;br /&gt;   // simply return the same result set as last time.&lt;br /&gt;   GetMyData(myContext);&lt;br /&gt;&lt;br /&gt;   // This is a bit ridiculous, but you get the idea.&lt;br /&gt;   for (int i = 0; i &lt; 100; i++)&lt;br /&gt;   {&lt;br /&gt;       GetMyData(myContext);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;The way to achieve the performance benefits of using the same data context during the entire page request is to store your data context instance in the HttpContext Items collection (which is alive for the duration of the thread). We&#39;ll make a static property that will give us a data context instance, but because we are using the current HttpContext, we won&#39;t have cross thread issues. You can read a little more about the HttpContext in this article: Connect Your Site With HttpContext Items. Let&#39;s look at the code to see how to achieve this:&lt;br /&gt;&lt;br /&gt;public static class DataAccessLayer&lt;br /&gt;{&lt;br /&gt;   // This object is a &quot;key&quot; to the HttpContext Items dictionary.&lt;br /&gt;   private static object _eelsContextKey = new object();&lt;br /&gt;&lt;br /&gt;   // This will always return an instance of the MyDataContext&lt;br /&gt;   // (which was created by a LINQ wizard in Visual Studio 2008). It&lt;br /&gt;   // will return the SAME instance if you call it twice during the&lt;br /&gt;   // same HTTP request.&lt;br /&gt;   private static MyDataContext Context&lt;br /&gt;   {&lt;br /&gt;       get&lt;br /&gt;       {&lt;br /&gt;           if (HttpContext.Current.Items.Contains(DataAccessLayer._eelsContextKey) == false)&lt;br /&gt;           {&lt;br /&gt;               MyDataContext context = new MyDataContext(&quot;Connection String Here...&quot;);&lt;br /&gt;&lt;br /&gt;               HttpContext.Current.Items.Add(DataAccessLayer._eelsContextKey, context);&lt;br /&gt;&lt;br /&gt;               return context;&lt;br /&gt;           }&lt;br /&gt;           else&lt;br /&gt;           {&lt;br /&gt;               return (MyDataContext)HttpContext.Current.Items[DataAccessLayer._eelsContextKey];&lt;br /&gt;           }&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   // Now we can make very simple DataAccessLayer functions like these:&lt;br /&gt;&lt;br /&gt;   public static IEnumerable GetClients()&lt;br /&gt;   {&lt;br /&gt;       return from myRow in DataAccessLayer.Context.Clients select myRow;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public static IEnumerable GetProjects()&lt;br /&gt;   {&lt;br /&gt;       return from myRow in DataAccessLayer.Context.Projects select myRow;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public static IEnumerable GetThePoint()&lt;br /&gt;   {&lt;br /&gt;       return from myRow in DataAccessLayer.Context.You_Get_The_Point select myRow;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;Let&#39;s now look at the last area of performance gain from using LINQ that we will discuss.&lt;br /&gt;&lt;br /&gt;Redundant Update Checking &lt;br /&gt;The last place where you can see performance gains is with writing back to your data source. The LINQ data context not only remembers if you have already queried some data before, but it also keeps track of any changes that are made. This means that if you call the &quot;save&quot; function, but no changes were made first, then LINQ will ignore the request to save. Likewise, if you only change one property (such as &quot;FirstName&quot;), then LINQ will build an UPDATE statement that only contains that one column (again saving time and bandwidth).&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/8589095874786754275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2009/12/benefits-of-linq.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/8589095874786754275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/8589095874786754275'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2009/12/benefits-of-linq.html' title='The benefits  Of LINQ'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-4614731037733494633</id><published>2009-12-01T04:45:00.000-08:00</published><updated>2009-12-01T04:46:15.828-08:00</updated><title type='text'>Hiding SQL code</title><content type='html'>Problem&lt;br /&gt;I am required to restrict the access to some users to view the definition of specific SQL Server database objects. I am aware of the WITH ENCRYPTION clause that is used to encrypt the code for objects like views, stored procedures and functions. It sort of fulfills my purpose and is easy to implement, but it does not cover all SQL Server objects.  In this tip we look at another option to restrict users from viewing the definition/code of any SQL Server object.&lt;br /&gt;&lt;br /&gt;Solution&lt;br /&gt;The WITH ENCRYPTION clause is used to encrypt the definition of SQL Server objects (views, stored procedures, functions ), so that no one may be able to view the definition/code of that specific object. Using the clause while creating an object is fairly easy, but there are some serious points and possible complications.&lt;br /&gt;&lt;br /&gt;Before discussing the complications, let us go through the simple use of this clause for defining a view, stored procedure and UDF.&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/4614731037733494633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2009/12/hiding-sql-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/4614731037733494633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/4614731037733494633'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2009/12/hiding-sql-code.html' title='Hiding SQL code'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-6061269817308948925</id><published>2009-11-27T03:31:00.000-08:00</published><updated>2009-11-27T03:32:22.286-08:00</updated><title type='text'>Linq Use</title><content type='html'>public IQueryable BindQualificationDetail(int startRowIndex, int maximumRows)&lt;br /&gt;    {&lt;br /&gt;        var qulaificationTypes = from QD in Common.dataContext.QualificationDetails&lt;br /&gt;                                  where QD.UpdaterRef.Equals(User.Identity.Name)&lt;br /&gt;                                  orderby QD.UpdatedOn descending&lt;br /&gt;                                  select new&lt;br /&gt;                                  {&lt;br /&gt;                                      QD.ProfileID,&lt;br /&gt;                                      QD.QualificationDetails,&lt;br /&gt;                                      QD.UpdaterRef&lt;br /&gt;                                  };&lt;br /&gt;        ViewState[&quot;BindQualificationDetailRows&quot;] = qulaificationTypes.Count();&lt;br /&gt;        return qulaificationTypes.Skip(startRowIndex).Take(maximumRows);&lt;br /&gt;    }&lt;br /&gt;    public int GetQualificationDetailCount()&lt;br /&gt;    {&lt;br /&gt;        return (int.Parse(ViewState[&quot;BindQualificationDetailRows&quot;].ToString()));&lt;br /&gt;    }&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/6061269817308948925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2009/11/linq-use.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/6061269817308948925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/6061269817308948925'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2009/11/linq-use.html' title='Linq Use'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-1882039030336667023</id><published>2009-11-26T02:12:00.000-08:00</published><updated>2009-11-26T02:13:43.221-08:00</updated><title type='text'>Coolite Intro</title><content type='html'>We are pleased to announce the release of the Coolite Toolkit Version 0.6. This release is the most feature packed Coolite Toolkit version to date and ships with 20+ new web controls, new Ajax functionality and dozens of new features to help impress your boss and clients.&lt;br /&gt;&lt;br /&gt;New Features&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Examples Explorer&lt;br /&gt;&lt;br /&gt;Coolite Toolkit Examples Explorer We&#39;re thrilled with our new &quot;Examples Explorer&quot; and over time we will be filling the explorer with hundreds of working code samples. The explorer is a great place to jump start your introduction into the Coolite Toolkit and simplify adding new functionality to your own projects. Each example also includes a real time &quot;Source Code&quot; viewer, .zip download of the files and &quot;Direct Link&quot; option.&lt;br /&gt;&lt;br /&gt;New Slate Theme&lt;br /&gt;&lt;br /&gt;The popular ExtJS Slate Theme originally developed by J.C. Bize is now included along with the original &quot;Default&quot; and &quot;Gray&quot; Themes. Just set Theme=&quot;Slate&quot; in your &lt;ext:ScriptManager&gt;. As well, continuing with our commitmen&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/1882039030336667023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2009/11/coolite-intro.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/1882039030336667023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/1882039030336667023'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2009/11/coolite-intro.html' title='Coolite Intro'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-4671917713657029166</id><published>2009-11-12T01:06:00.000-08:00</published><updated>2009-11-12T01:07:37.999-08:00</updated><title type='text'>Linq Carries Value from One PAge to another</title><content type='html'>private void BindForm()&lt;br /&gt;    {&lt;br /&gt;         MemberYear original = GetMemberYearDetail(Convert.ToByte(Request.QueryString[&quot;ID&quot;]));&lt;br /&gt;        &lt;br /&gt;         foreach (ListItem lst in drpState.Items)&lt;br /&gt;         {&lt;br /&gt;             long GeographicId = Convert.ToInt64(ViewState[&quot;GeographicId&quot;].ToString());&lt;br /&gt;             if (GeographicId == Convert.ToInt16(lst.Value))&lt;br /&gt;             {&lt;br /&gt;                 drpState.ClearSelection();&lt;br /&gt;                 lst.Selected = true;&lt;br /&gt;                &lt;br /&gt;             }&lt;br /&gt;         }&lt;br /&gt;&lt;br /&gt;         foreach (ListItem lst in drpConstituency.Items)&lt;br /&gt;        {&lt;br /&gt;            if (original.GeographicId == Convert.ToInt16(lst.Value))&lt;br /&gt;            {&lt;br /&gt;                drpConstituency.ClearSelection();&lt;br /&gt;                lst.Selected = true;&lt;br /&gt;               BindMemberProfile(Convert.ToInt64(drpConstituency.SelectedValue.ToString()));&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;         foreach (ListItem lst in drpMember.Items)&lt;br /&gt;         {&lt;br /&gt;             if (original.ProfileId == Convert.ToInt16(lst.Value))&lt;br /&gt;             {&lt;br /&gt;                 drpMember.ClearSelection();&lt;br /&gt;                 lst.Selected = true;&lt;br /&gt;             }&lt;br /&gt;         }&lt;br /&gt;&lt;br /&gt;         foreach (ListItem lst in drpElectionYear.Items)&lt;br /&gt;         {&lt;br /&gt;             if (original.ElectionYearId == Convert.ToInt16(lst.Value))&lt;br /&gt;             {&lt;br /&gt;                 drpElectionYear.ClearSelection();&lt;br /&gt;                 lst.Selected = true;&lt;br /&gt;             }&lt;br /&gt;         }&lt;br /&gt;    }&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/4671917713657029166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2009/11/linq-carries-value-from-one-page-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/4671917713657029166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/4671917713657029166'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2009/11/linq-carries-value-from-one-page-to.html' title='Linq Carries Value from One PAge to another'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-651353080669432981.post-2267479372287923772</id><published>2009-11-12T01:05:00.000-08:00</published><updated>2009-11-12T01:06:14.106-08:00</updated><title type='text'>Linq Sumbit</title><content type='html'>protected void btnSubmit_Click(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        try&lt;br /&gt;        {&lt;br /&gt;            DataClassesDataContext dataContextAdd = new DataClassesDataContext(ConfigurationManager.ConnectionStrings[&quot;ConnRootDataBase&quot;].ConnectionString);&lt;br /&gt;&lt;br /&gt;            MemberYear memberYear = new MemberYear&lt;br /&gt;            {&lt;br /&gt;                MemberYearId = GenerateID(),&lt;br /&gt;                ProfileId = Convert.ToInt64(drpMember.SelectedValue),&lt;br /&gt;                GeographicId = Convert.ToInt64(drpConstituency.SelectedValue),&lt;br /&gt;                ElectionYearId = Convert.ToInt64(drpElectionYear.SelectedValue)&lt;br /&gt;&lt;br /&gt;            };&lt;br /&gt;            dataContextAdd.MemberYears.InsertOnSubmit(memberYear);&lt;br /&gt;            dataContextAdd.SubmitChanges();&lt;br /&gt;            dataContextAdd.Dispose();&lt;br /&gt;            lblError.Text = &quot;your Information Inserted Succesfully!!&quot;;&lt;br /&gt;            lblError.ForeColor = System.Drawing.Color.Green;&lt;br /&gt;        }&lt;br /&gt;        catch (Exception ex)&lt;br /&gt;        {&lt;br /&gt;            lblError.Text = ex.Message.ToString();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    }&lt;div class=&quot;blogger-post-footer&quot;&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeinfonet.blogspot.com/feeds/2267479372287923772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeinfonet.blogspot.com/2009/11/linq-sumbit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/2267479372287923772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/651353080669432981/posts/default/2267479372287923772'/><link rel='alternate' type='text/html' href='http://codeinfonet.blogspot.com/2009/11/linq-sumbit.html' title='Linq Sumbit'/><author><name>Brajendra Kumar Shukla</name><uri>http://www.blogger.com/profile/09282253572553621960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQjj-NtIgjxcaaluQ0hLWVZhX7_4CyZCqKqJJr5Yj8bbX0ifT9hwGQYsfR43eaYIDT3HsVYE_wFvr7neUv43BT9afvhLn0y5Pdq4LiCB5G-EMEM2KX3I3w0Vo-of7cuJm2W8PmkJ3GFkMuYxVUye_Ps0Sl4Cgr3jjiDCsfBBAbHgsHrA/s220/download.jfif'/></author><thr:total>0</thr:total></entry></feed>