<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techelp</title>
	<atom:link href="http://techelp.in/thome/feed/" rel="self" type="application/rss+xml" />
	<link>http://techelp.in/thome</link>
	<description></description>
	<lastBuildDate>Thu, 07 Apr 2011 13:56:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Capturing Screenshot in Java</title>
		<link>http://techelp.in/thome/2010/11/20/capturing-screenshot-in-java/</link>
		<comments>http://techelp.in/thome/2010/11/20/capturing-screenshot-in-java/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 03:14:18 +0000</pubDate>
		<dc:creator>Sudha C Reddi</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://techelp.in/thome/2010/11/20/capturing-screenshot-in-java/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: java; title: ; notranslate">
package in.techelp;

import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;

/**
 *
 * @author reddy
 */
public class Screenshot {

    public static void main(String[] args) throws AWTException, IOException {
        Robot robot = new Robot();
        BufferedImage screenShot = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
        ImageIO.write(screenShot, &quot;jpg&quot;, new File(&quot;/home/reddy/Documents/screenshot.jpg&quot;));
        //ImageIO.write(screenShot, &quot;png&quot;, new File(&quot;/home/reddy/Documents/screenshot.png&quot;));
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://techelp.in/thome/2010/11/20/capturing-screenshot-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add contact to Address Book using iPhone SDK</title>
		<link>http://techelp.in/thome/2009/10/06/add-contact-to-address-book-using-iphone-sdk/</link>
		<comments>http://techelp.in/thome/2009/10/06/add-contact-to-address-book-using-iphone-sdk/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 23:43:57 +0000</pubDate>
		<dc:creator>Sudha C Reddi</dc:creator>
				<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[Address Book API]]></category>

		<guid isPermaLink="false">http://techelp.in/mobile/?p=4</guid>
		<description><![CDATA[Below is the code for adding a contact to iPhone’s Address Book using iPhone SDK.]]></description>
			<content:encoded><![CDATA[<p><br/><br />
Below is the code for adding a contact to iPhone’s Address Book using iPhone SDK.<br />
<br/></p>
<pre class="brush: objc; title: ; notranslate">
ABAddressBookRef addressBook = ABAddressBookCreate();
ABRecordRef person = ABPersonCreate();

ABRecordSetValue(person, kABPersonFirstNameProperty, @&quot;Sudha&quot; , nil);
ABRecordSetValue(person, kABPersonLastNameProperty, @&quot;Reddy&quot;, nil);

ABMutableMultiValueRef phoneNumberMultiValue = ABMultiValueCreateMutable(kABPersonPhoneProperty);
ABMultiValueAddValueAndLabel(phoneNumberMultiValue, @&quot;1234567890&quot;, kABHomeLabel, nil);
ABMultiValueAddValueAndLabel(phoneNumberMultiValue, @&quot;9876543210&quot;, kABPersonPhoneMobileLabel, nil);
ABMultiValueAddValueAndLabel(phoneNumberMultiValue, @&quot;04022222222&quot;, kABWorkLabel, nil);
ABRecordSetValue(person, kABPersonPhoneProperty, phoneNumberMultiValue, nil);

ABMutableMultiValueRef emailMultiValue = ABMultiValueCreateMutable(kABPersonEmailProperty);
ABMultiValueAddValueAndLabel(emailMultiValue, @&quot;whatever@gmail.com&quot;, kABWorkLabel, nil);
ABRecordSetValue(person, kABPersonEmailProperty, emailMultiValue, nil);

NSDictionary *dictionary = [[NSDictionary alloc] initWithObjects: [NSArray arrayWithObjects:@&quot;1234 Whatever Street&quot;, @&quot;Hyderabad&quot;, @&quot;AP&quot;, @&quot;INDIA&quot;, @&quot;500008&quot;, nil] forKeys: [NSArray arrayWithObjects: (NSString *)kABPersonAddressStreetKey, (NSString *)kABPersonAddressCityKey, (NSString *)kABPersonAddressStateKey, (NSString *)kABPersonAddressCountryKey, (NSString *)kABPersonAddressZIPKey, nil]];
ABMultiValueRef addressMultiValue = ABMultiValueCreateMutable(kABDictionaryPropertyType);
ABMultiValueAddValueAndLabel(addressMultiValue, (CFDictionaryRef *)dictionary, kABWorkLabel, nil);
ABRecordSetValue(person, kABPersonAddressProperty, addressMultiValue, nil); ABRecordCopyValue(person, kABPersonAddressProperty);

ABAddressBookAddRecord(addressBook, person, nil);
ABAddressBookSave(addressBook, nil);

CFRelease(person);
CFRelease(addressMultiValue);
CFRelease(phoneNumberMultiValue);
CFRelease(emailMultiValue);
[dictionary release];
</pre>
]]></content:encoded>
			<wfw:commentRss>http://techelp.in/thome/2009/10/06/add-contact-to-address-book-using-iphone-sdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ektron Category search</title>
		<link>http://techelp.in/thome/2009/09/11/ektron-category-search/</link>
		<comments>http://techelp.in/thome/2009/09/11/ektron-category-search/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 18:14:50 +0000</pubDate>
		<dc:creator>sharath</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Ektron]]></category>

		<guid isPermaLink="false">http://techelp.in/msblog/?p=46</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: vb; title: ; notranslate">
Dim search As SearchManager = New SearchManager()
Dim requestData As SearchRequestData = New SearchRequestData()

requestData.LanguageID = 1033
requestData.SearchType = WebSearchType.none
requestData.SearchText = &quot; (@TaxCategory '\\MapCategory') &quot; '&quot;( @contenttype = 1 ) and  (  @docTitle Tech* OR  @Contents computer*  ) And (  @TaxCategory '\MapCategory' OR '\Restaurant' OR '\Ektron Products&quot;
'requestData.SearchText = &quot;( @contenttype = 1 ) and  (  @docTitle Ek* OR  @Contents Ek*  ) And OR @TaxCategory '\Furniture')(  @TaxCategory '\Continents' OR '\Stores' OR '\Chemicals' OR '\Ektron Tech' ) and (    @taxonomyenabled = 1 ) and ( @contentlanguage = 1033 ) and ( @searchable = 1 )&quot;
requestData.FolderID = 0
Dim resultCount As Integer
' Dim result() As SearchResponseData = search.Search(requestD
Dim result() As SearchResponseData = search.Search(requestData, HttpContext.Current, resultCount)

GridView1.DataSource = result
GridView1.DataBind()
</pre>
]]></content:encoded>
			<wfw:commentRss>http://techelp.in/thome/2009/09/11/ektron-category-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Multiple Users in Active Directory</title>
		<link>http://techelp.in/thome/2009/08/26/creating-multiple-users-in-active-directory/</link>
		<comments>http://techelp.in/thome/2009/08/26/creating-multiple-users-in-active-directory/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 11:14:34 +0000</pubDate>
		<dc:creator>suresh</dc:creator>
				<category><![CDATA[Windows Admin]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://techelp.in/msblog/?p=40</guid>
		<description><![CDATA[- Paste the below given script in Notepad - Save it with .bat (Windows Batch File) file ou -&#62; Organization Unit (given as &#8220;Network&#8221; in the script, replace it with your Organization Unit name) dc -&#62; Domain Controller (given as &#8220;mailserver&#8221; in the script, replace it with your Domain Controller name, donot chnage the value [...]]]></description>
			<content:encoded><![CDATA[<p>- Paste the below given script in Notepad<br />
- Save it with .bat (Windows Batch File) file</p>
<pre class="brush: bash; title: ; notranslate">
@echo off
cls
echo Creating Accounts
echo ------------------
for /f &quot;tokens=1-3&quot; %%A in (userlist.txt) do (dsadd user &quot;CN=%%A,ou=Network,dc=mailserver,dc=com&quot; -fn %%B -ln %%C -display &quot;%%B %%C&quot; -upn %%A@thenguyen.local -pwd Passw0rd1 -mustchpwd No -disabled no)
echo ------------------
pause
</pre>
<p>ou -&gt; Organization Unit (given as &#8220;Network&#8221; in the script, replace it with your Organization Unit name)<br />
dc -&gt; Domain Controller (given as &#8220;mailserver&#8221; in the script, replace it with your Domain Controller name, donot chnage the value dc=com)</p>
<p>Create a file with name &#8220;userlist.txt&#8221; and save all the user details in the below mentioned format.</p>
<pre class="brush: plain; title: ; notranslate">
raju    Raju    Rao
kalyan  Chakra  Naidu
chiru   Chiru   Reddy
</pre>
<p>First Column -&gt; User Name<br />
Second Column -&gt; First Name<br />
Thirm Column -&gt; Last Name</p>
<p>Place both the batch and userlist.txt files in same folder.<br />
Run the batch file. The users mentioned in userlist.txt will be created.</p>
<p><strong>Note: User must have Administrator privilages to run this batch.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://techelp.in/thome/2009/08/26/creating-multiple-users-in-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ektron Collection Control in Code behind</title>
		<link>http://techelp.in/thome/2009/08/20/ektron-collection-control-in-code-behind/</link>
		<comments>http://techelp.in/thome/2009/08/20/ektron-collection-control-in-code-behind/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 16:43:41 +0000</pubDate>
		<dc:creator>sharath</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Ektron]]></category>

		<guid isPermaLink="false">http://techelp.in/msblog/?p=38</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: csharp; title: ; notranslate">

// This code is useful for creating Ektron's Collection control in Code behind of aspx/ascx

Ektron.Cms.Controls.Collection colCtrl = new Ektron.Cms.Controls.Collection();

colCtrl.DefaultCollectionID = 12; // Check this id from the Work area.

colCtrl.WrapTag = &quot;div&quot;;

colCtrl.Visible = true;

colCtrl.DisplayXslt = &quot;ecmTeaser&quot;; //builtin Style

colCtrl.Page = this.Page;

XslCompiledTransform docXsl = new XslCompiledTransform();// System.Xml.Xsl

StringWriter transform = new StringWriter(); //System.IO;

docXsl.Load(Server.MapPath(&quot;xslt\\list.xslt&quot;));

docXsl.Transform(colCtrl.XmlDoc, null, transform);

colCtrl.Text = transform.ToString();

pn.Controls.Add(colCtrl);
</pre>
<pre class="brush: xml; title: ; notranslate">

//@@@@@@@@@@@@@ XSLT snippet  @@@@@@@@@@@@@@@@

&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;

&lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;&lt;a href=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;http://www.w3.org/1999/XSL/Transform&lt;/a&gt;&quot;&gt;

&lt;xsl:template match=&quot;/&quot;&gt;

&lt;ul&gt;

&lt;xsl:for-each select=&quot;Collection/Content&quot;&gt;

&lt;li&gt;

&lt;a&gt;

&lt;xsl:attribute name=&quot;href&quot;&gt;

&lt;xsl:value-of select=&quot;QuickLink&quot;/&gt;

&lt;/xsl:attribute&gt;

&lt;xsl:value-of select=&quot;Title&quot;/&gt;

&lt;/a&gt;

&lt;p  &gt;

&lt;xsl:value-of select=&quot;&quot; /&gt;

&lt;/p&gt;

&lt;/li&gt;

&lt;/xsl:for-each&gt;

&lt;/ul&gt;

&lt;/xsl:template&gt;

&lt;/xsl:stylesheet&gt;

//@@@@@@@@@@@@@ XSLT snippet ENDS @@@@@@@@@@@@@@@@
</pre>
]]></content:encoded>
			<wfw:commentRss>http://techelp.in/thome/2009/08/20/ektron-collection-control-in-code-behind/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create RSS feeds on your Website using ASP.NET</title>
		<link>http://techelp.in/thome/2009/07/23/publishing-rss-feeds-in-your-blog/</link>
		<comments>http://techelp.in/thome/2009/07/23/publishing-rss-feeds-in-your-blog/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 17:32:03 +0000</pubDate>
		<dc:creator>varun</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[RSS Feeds]]></category>

		<guid isPermaLink="false">http://techelp.in/msblog/?p=16</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: csharp; title: ; notranslate">

using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Xml;
using System.Text;
using System.ServiceModel.Syndication;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class RSS : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();

Response.ContentType = &quot;text/xml&quot;;
XmlTextWriter rssFeed = new XmlTextWriter(Response.OutputStream, Encoding.UTF8);
rssFeed.WriteStartDocument();
rssFeed.WriteStartElement(&quot;rss&quot;);
rssFeed.WriteAttributeString(&quot;version&quot;, &quot;2.0&quot;);
rssFeed.WriteStartElement(&quot;channel&quot;);
rssFeed.WriteElementString(&quot;title&quot;, &quot;University News&quot;);
rssFeed.WriteElementString(&quot;link&quot;, HttpContext.Current.Request.Path);
//a file with &quot;.rss&quot; extension, in root directory, is required to recognize the request as a feed
rssFeed.WriteElementString(&quot;link&quot;, &quot;http://www.google.com/feed.rss&quot;);
rssFeed.WriteElementString(&quot;description&quot;, &quot;The latest university news and information.&quot;);
rssFeed.WriteElementString(&quot;copyright&quot;, &quot;Copyright 2009 techelp.in. All rights reserved.&quot;);

SqlConnection SqlCon;
SqlCommand SqlCom;
SqlDataReader SqlDR;

SqlCon = new SqlConnection(ConfigurationManager.ConnectionStrings[&quot;ConnectionString&quot;].ConnectionString);
SqlCom = new SqlCommand(&quot;select * from dbo.tblUniversityList&quot;, SqlCon);
SqlCom.CommandType = CommandType.Text;

if (SqlCon.State == ConnectionState.Closed)
{
SqlCon.Open();
}

SqlDR = SqlCom.ExecuteReader();

while (SqlDR.Read())
{
rssFeed.WriteStartElement(&quot;item&quot;);
string Name = SqlDR[&quot;University&quot;].ToString();
rssFeed.WriteElementString(&quot;title&quot;, Name);
rssFeed.WriteElementString(&quot;description&quot;, SqlDR[&quot;University&quot;].ToString());
rssFeed.WriteElementString(&quot;link&quot;, HttpContext.Current.Request.Path + SqlDR[&quot;ID&quot;]);
rssFeed.WriteEndElement();
}

SqlDR.Close();
SqlCon.Close();

rssFeed.WriteEndElement();
rssFeed.WriteEndElement();
rssFeed.WriteEndDocument();

rssFeed.Flush();
rssFeed.Close();
Response.End();

}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://techelp.in/thome/2009/07/23/publishing-rss-feeds-in-your-blog/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>EXPORT ROUTINE &#8211; SAP-BI</title>
		<link>http://techelp.in/thome/2009/06/24/export-routine-sap-bi/</link>
		<comments>http://techelp.in/thome/2009/06/24/export-routine-sap-bi/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 13:51:01 +0000</pubDate>
		<dc:creator>saikiran</dc:creator>
				<category><![CDATA[SAP-BI]]></category>

		<guid isPermaLink="false">http://techelp.in/sapblog/?p=62</guid>
		<description><![CDATA[The concept of Return Table in 3.X we use with Expert Routine in BI. When we have Data Targets where we are feeding most of the Info Objects with the Routine. Note – When we implement Expert Routine it disables Star Routine, End Routine and Transformation Rules. Example Splitting one Record to Multiple Records. SOURCE [...]]]></description>
			<content:encoded><![CDATA[<p>The concept of Return Table in 3.X we use with Expert Routine in BI. </p>
<ul>
<li>When we have Data Targets where we are feeding most of the Info Objects with the Routine. </li>
</ul>
<p><b>Note – </b>When we implement Expert Routine it disables Star Routine, End Routine and Transformation Rules.</p>
<p><b>Example </b></p>
<p><b></b></p>
<p>Splitting one Record to Multiple Records.</p>
<p><b>SOURCE (INPUT)</b></p>
<p><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image002.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image002_thumb.jpg" width="648" height="42" /></a></p>
<p>Create these Info Objects</p>
<p><a href="http://techelp.in/thome/wp-content/uploads/2009/06/untitled.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="untitled" border="0" alt="untitled" src="http://techelp.in/thome/wp-content/uploads/2009/06/untitled_thumb.jpg" width="244" height="219" /></a> </p>
<p>We can see in Screen-Shot 1 we are doing the Transformation.</p>
<p>In Screen-Shot 2 we can see that, the same screen of Transformation, We need to go to Edit and choose Export Routine.</p>
<p>Then Start Routine, End Routine and Transformations will get disabled.</p>
<p>Screen-Shot1</p>
<p><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image007.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image007" border="0" alt="clip_image007" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image007_thumb.jpg" width="528" height="320" /></a></p>
<p>Screen-Shot2</p>
<p><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image009.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image009" border="0" alt="clip_image009" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image009_thumb.jpg" width="532" height="336" /></a></p>
<p>In Screen-Shot3 we have to write the code.</p>
<p>Screen-Shot3</p>
<p><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image011.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image011" border="0" alt="clip_image011" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image011_thumb.jpg" width="389" height="488" /></a></p>
<p>We can see in Screen-Shot4 Export Routine has been created.</p>
<p>Screen-Shot4</p>
<p><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image013.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image013" border="0" alt="clip_image013" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image013_thumb.jpg" width="580" height="381" /></a></p>
<p>In Screen-Shot5 we can see how single Record is splitted in to Multiple Records</p>
<p>Screen-Shot5</p>
<p><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image015.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image015" border="0" alt="clip_image015" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip_image015_thumb.jpg" width="383" height="255" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://techelp.in/thome/2009/06/24/export-routine-sap-bi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exceptions in ORACLE PL/SQL</title>
		<link>http://techelp.in/thome/2009/06/14/exceptions-in-oracle-plsql/</link>
		<comments>http://techelp.in/thome/2009/06/14/exceptions-in-oracle-plsql/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 03:26:57 +0000</pubDate>
		<dc:creator>chandu</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://techelp.in/dbblog/?p=149</guid>
		<description><![CDATA[Error or Warning of any kind is called as Exception in Oracle which can be predefined or user-defined. Predefined exceptions are raised implicitly by the system. User-defined exceptions must be raised explicitly by RAISE statements. To handle raised exceptions, we write separate routines called exception handlers There are four kinds of exceptions in PL/SQL they [...]]]></description>
			<content:encoded><![CDATA[<p>Error or Warning of any kind is called as Exception in Oracle which can be predefined or user-defined. Predefined exceptions are raised implicitly by the system. User-defined exceptions must be raised explicitly by RAISE statements. To handle raised exceptions, we write separate routines called exception handlers</p>
<p>There are four kinds of exceptions in PL/SQL they are</p>
<p>1)Named system exceptions.</p>
<p>2)Named programmer-defined exceptions.</p>
<p>3)Unnamed system exceptions.</p>
<p>4)Unnamed programmer-defined exceptions. <strong> </strong></p>
<p><strong> </strong></p>
<p><strong>1)Named system exceptions.</strong></p>
<p>Exceptions that have been given names by PL/SQL and raised as a result of an error in PL/SQL.For example, PL/SQL raises the predefined exception NO_DATA_FOUND if a SELECT INTO statement returns no rows.These Exceptions are raised automatically when an error condition occurs.</p>
<p>Following are few examples of Named system Exceptions</p>
<p><strong>Exception</strong> <strong>Raised when</strong></p>
<p>NO_DATA_FOUND A SELECT INTO statement returns no rows, or your program references a deleted element in a nested table or an uninitialized</p>
<p>element in an index-by table.</p>
<p>TOO_MANY_ROWS A SELECT INTO statement returns more than one row.</p>
<p>ZERO_DIVIDE A program attempts to divide a number by zero.</p>
<p>Here is an example of a procedure that uses a Named System Exception:</p>
<pre class="brush: sql; title: ; notranslate">

CREATE OR REPLACE PROCEDURE Employee_Details(pempno in Number) IS

-- declare record variable that represents a row fetched from the employees table

employee_rec emp%ROWTYPE;

BEGIN

SELECT ename,job,sal INTO employee_rec.ename,employee_rec.job,employee_rec.sal from emp WHERE empno=pempno;

Exception

when TOO_MANY_ROWS then

DBMS_OUTPUT.PUT_LINE('The following employee has Duplicate Records'||pempno);

when others then

DBMS_OUTPUT.PUT_LINE('Some other Error occured');

END;

/
</pre>
<p>In this example, we are trapping the Named System Exception TOO_MANY_ROWS . We are also using the WHEN OTHERS clause to trap all remaining exceptions.</p>
<p><strong>2)Named programmer-defined exceptions. </strong></p>
<p><strong> </strong></p>
<p>Sometimes, it is necessary for us to name and trap our own exceptions &#8211; ones that aren&#8217;t defined already by PL/SQL. These are called Named Programmer-Defined Exceptions.</p>
<p>These Exceptions have to be declared in Declaration section of PL/SQL block.</p>
<p>Here is an example of a procedure that uses a Named Programmer-Defined Exception:</p>
<pre class="brush: sql; title: ; notranslate">

CREATE OR REPLACE PROCEDURE add_new_order
(order_id_in IN NUMBER, sales_in IN NUMBER)
IS
no_sales EXCEPTION;

BEGIN
IF sales_in = 0 THEN
RAISE no_sales;

ELSE
INSERT INTO orders (order_id, total_sales )
VALUES ( order_id_in, sales_in );
END IF;

EXCEPTION
WHEN no_sales THEN
raise_application_error (-20001,'You must have sales in order to submit the order.');

WHEN OTHERS THEN
raise_application_error (-20002,'An error has occurred inserting an order.');

END;
</pre>
<p>In this example, we have declared a Named Programmer-Defined Exception called <strong>no_sales</strong> in our declaration statement with the following code:</p>
<p>no_sales EXCEPTION;</p>
<p>We&#8217;ve then raised the exception in the executable section of the code:</p>
<p>IF sales_in = 0 THEN<br />
RAISE no_sales;</p>
<p>Now if the <em>sales_in</em> variable contains a zero, our code will jump directly to the Named Programmer-Defined Exception called <strong>no_sales</strong>.</p>
<p>Finally, we tell our procedure what to do when the <strong>no_sales</strong> exception is encountered by including code in the WHEN clause:</p>
<p>WHEN no_sales THEN<br />
raise_application_error (-20001,&#8217;You must have sales in order to submit the order.&#8217;);</p>
<p>We are also using the when others clause to trap all remaining exceptions:</p>
<p>WHEN OTHERS THEN<br />
raise_application_error (-20002,&#8217;An error has occurred inserting an order.&#8217;);</p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>3)Unnamed system exceptions. </strong></p>
<p>Exceptions that are raised as a result of an error in PL/SQL or RDBMS processing but have not been given names by PL/SQL. Only the most common errors are so named; the rest have numbers and can be assigned names with the special PRAGMA EXCEPTION_INIT syntax.</p>
<p><strong> </strong></p>
<p><strong>4)Unnamed programmer-defined exceptions.</strong></p>
<p>Exceptions that are defined and raised in the server by the programmer. In this case, the programmer provides both an error number (between -20000 and -20999) and an error message, and raises that exception with a call to RAISE_APPLICATION_ERROR. That error, along with its message, is propagated back to the client-side application.</p>
]]></content:encoded>
			<wfw:commentRss>http://techelp.in/thome/2009/06/14/exceptions-in-oracle-plsql/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>REMODELING CUBE IN BI</title>
		<link>http://techelp.in/thome/2009/06/09/remodeling-cube-in-bi/</link>
		<comments>http://techelp.in/thome/2009/06/09/remodeling-cube-in-bi/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 12:05:25 +0000</pubDate>
		<dc:creator>saikiran</dc:creator>
				<category><![CDATA[SAP-BI]]></category>
		<category><![CDATA[BI]]></category>

		<guid isPermaLink="false">http://techelp.in/sapblog/?p=46</guid>
		<description><![CDATA[WE NEED TO GO TO TRANSACTION RSA1. UNDER MODELING WE HAVE ADMINISTRATION. WE CAN SEE THAT IN SCREENSHOT 1. CLICK ON ADMINISTRATION. SCREENSHOT 1 NOW UNDER ADMINISTRATION WE CAN SEE REMODELLING WHICH IS MARKED.WE CAN SEE THAT IN SCREENSHOT 2. CLICK ON THAT. SCREENSHOT 2 AFTER CLICKING ON REMODELLING WE GET A POP UP. WE [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">WE NEED TO GO TO TRANSACTION<strong> RSA1</strong>.</p>
<p align="justify">UNDER MODELING WE HAVE ADMINISTRATION.</p>
<p align="justify">WE CAN SEE THAT IN <strong>SCREENSHOT 1.</strong></p>
<p align="justify">CLICK ON ADMINISTRATION.</p>
<p align="justify"><strong><font color="#ff0000">SCREENSHOT 1</font></strong></p>
<p align="justify"><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image002.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image002-thumb.jpg" width="342" height="371" /></a></p>
<p align="justify">NOW UNDER ADMINISTRATION WE CAN SEE REMODELLING WHICH IS MARKED.WE CAN SEE THAT IN <strong>SCREENSHOT 2</strong>.</p>
<p align="justify">CLICK ON THAT.</p>
<p align="justify"><strong><font color="#ff0000">SCREENSHOT 2</font></strong></p>
<p align="justify"><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image004.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image004-thumb.jpg" width="348" height="372" /></a></p>
<p align="justify">AFTER CLICKING ON REMODELLING WE GET A POP UP.</p>
<p align="justify">WE CAN SEE THAT IN <strong>SCREENSHOT 3</strong>.</p>
<p align="justify">CLICK OK ON THE WARNING.</p>
<p align="justify"><strong><font color="#ff0000">SCREENSHOT 3</font></strong></p>
<p align="justify"><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image006.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image006" border="0" alt="clip_image006" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image006-thumb.jpg" width="533" height="479" /></a></p>
<p align="justify">WE CAN SEE IN <strong>SCREENSHOT 4</strong>.</p>
<p align="justify">GIVE THE REMODELING RULE NAME AND THE INFOPROVIDER FROM WERE</p>
<p align="justify">YOU WANT TO GET YOUR TARGET (CUBE).</p>
<p align="justify">THEN CLICK ON CREATE.A POP UP WILL COME.WE NEE TO GIVE THE DESCRIPTION AND THEN ENTER.</p>
<p align="justify">WE CAN SEE IN <strong>SCREENSHOT 5</strong>.</p>
<p align="justify">CLICK ON THE BUTTON WHICH IS MARKED IN RED.</p>
<p align="justify">THAT IS CALLED (ADD AN OPERATION TO LIST).</p>
<p align="justify"><strong><font color="#ff0000">SCREENSHOT 4</font></strong></p>
<p align="justify"><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image008.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image008" border="0" alt="clip_image008" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image008-thumb.jpg" width="402" height="322" /></a></p>
<p align="justify"><strong><font color="#ff0000">SCREENSHOT 5</font></strong></p>
<p align="justify"><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image010.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image010" border="0" alt="clip_image010" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image010-thumb.jpg" width="601" height="305" /></a></p>
<p align="justify"><strong><font color="#ff0000">SCREENSHOT 6</font></strong></p>
<p align="justify"><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image012.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image012" border="0" alt="clip_image012" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image012-thumb.jpg" width="541" height="373" /></a></p>
<p align="justify">WE CAN SEE IN <strong>SCREENSHOT 6</strong>.</p>
<p align="justify">WE GET A POP UP, IN THAT WE HAVE THE FLEXIBILTY TO </p>
<ul>
<li>
<div align="justify">ADD CHARACTERISTIC </div>
</li>
<li>
<div align="justify">DELETE CHARACTERISTIC </div>
</li>
<li>
<div align="justify">REPLACE CHARACTERISTIC </div>
</li>
<li>
<div align="justify">ADD KEY FIGURE </div>
</li>
<li>
<div align="justify">DELETE KEY FIGURE </div>
</li>
<li>
<div align="justify">REPLACE KEY FIGURE </div>
</li>
</ul>
<p align="justify">WE CAN SEE IN <strong>SCREENSHOT 7</strong></p>
<p align="justify">HERE I AM ADDING ZK_REG TO CUBE.</p>
<p align="justify">ZK_REG IS A CHARACTER.</p>
<p align="justify">WE HAVE TO ASSIGN IT TO A DIMENSION.</p>
<p align="justify"><strong><font color="#ff0000">SCREENSHOT 7</font></strong></p>
<p align="justify"><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image014.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image014" border="0" alt="clip_image014" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image014-thumb.jpg" width="451" height="380" /></a></p>
<p align="justify">IF WE TAKE CONSTANT WE WILL BE GETTING FIXED VALUE TO THE FIELD WE ARE ADDING.</p>
<p align="justify">HERE ZK_REG (REGION) IS AN EXCLUSIVE ATTRIBUTE OF ZK_CNO.</p>
<p align="justify">WE CAN SEE THAT IN <strong>SCREENSHOT 8</strong>.</p>
<p align="justify"><strong><font color="#ff0000">SCREENSHOT 8</font></strong></p>
<p align="justify"><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image016.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image016" border="0" alt="clip_image016" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image016-thumb.jpg" width="464" height="364" /></a></p>
<p align="justify"><strong><font color="#ff0000">SCREENSHOT 9</font></strong></p>
<p align="justify"><a href="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image018.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image018" border="0" alt="clip_image018" src="http://techelp.in/thome/wp-content/uploads/2009/06/clip-image018-thumb.jpg" width="469" height="225" /></a></p>
<p align="justify">WE CAN SEE IN <strong>SCREENSHOT 9</strong>.</p>
<p align="justify">THE FIELD ZK_REG IS ADDED TO THE CUBE.</p>
<p align="justify">THE SAME WAY WE CAN DELTE AND REPLACE CHARACTERISTIC.</p>
]]></content:encoded>
			<wfw:commentRss>http://techelp.in/thome/2009/06/09/remodeling-cube-in-bi/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Shrink Database SQL Server 2005</title>
		<link>http://techelp.in/thome/2009/06/04/shrink-database-sql-server-2005/</link>
		<comments>http://techelp.in/thome/2009/06/04/shrink-database-sql-server-2005/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 12:00:30 +0000</pubDate>
		<dc:creator>phani</dc:creator>
				<category><![CDATA[MS SQL Server]]></category>

		<guid isPermaLink="false">http://techelp.in/dbblog/?p=142</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: sql; title: ; notranslate">

USE dbName
GO
DBCC SHRINKFILE (dbName_Log, 1)
BACKUP LOG  dbName WITH TRUNCATE_ONLY
DBCC SHRINKFILE (dbName_Log, 1)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://techelp.in/thome/2009/06/04/shrink-database-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

