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

<channel>
	<title>An IT Solution</title>
	<atom:link href="http://anitsolution.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://anitsolution.wordpress.com</link>
	<description>Keep the things simple !!</description>
	<lastBuildDate>Sat, 18 Jun 2011 06:25:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='anitsolution.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>An IT Solution</title>
		<link>http://anitsolution.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://anitsolution.wordpress.com/osd.xml" title="An IT Solution" />
	<atom:link rel='hub' href='http://anitsolution.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to Get/Set date time according to Different Time zones in C#</title>
		<link>http://anitsolution.wordpress.com/2010/04/17/3/</link>
		<comments>http://anitsolution.wordpress.com/2010/04/17/3/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 10:31:59 +0000</pubDate>
		<dc:creator>Narender</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Browser compatible]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[DateTime]]></category>

		<guid isPermaLink="false">http://anitsolution.wordpress.com/?p=3</guid>
		<description><![CDATA[Download code example In an Asp.net application I have developed a Forum in which I have requirement to show date and time according to the time zone of PC on which it is running, I had searched for too many examples on but all are using too complex java scripts and other methods to convert [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=3&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.4shared.com/file/GbYoHLMu/AnItSolutionTimeZones.html"><img src="http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png" alt="download" />Download code example</a></p>
<p>In an Asp.net application I have developed a Forum in which I have requirement to show date and time according to the time zone of PC on which it is running, I had searched for too many examples on but all are using too complex java scripts and other methods to convert time into local time zone.</p>
<p>Finally I decided to make my own solution for this problem<br />
My solution is using “TimeZoneInfo” to convert the data to local time zone, this class allow me to convert time according to any time zone, but again I got another problem which is how to take time zone of browser. Again I search on net and finally come out with a code.</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function genarateDateValue()<br />
{<br />
var d = new Date()<br />
var str=d.toString();<br />
var i = str.indexOf(&#8220;+&#8221;);<br />
var j = str.length- i;</p>
<p>str=str.substring(i, i+5);<br />
setCookie(&#8220;narender&#8221;,str,365);<br />
return true;<br />
}</p>
<p>function setCookie(c_name,value,expiredays)<br />
{<br />
var exdate=new Date();<br />
exdate.setDate(exdate.getDate()+expiredays);<br />
document.cookie=c_name+ &#8220;=&#8221; +escape(value)+((expiredays==null) ? &#8220;&#8221; : &#8220;;expires=&#8221;+exdate.toGMTString());<br />
}<br />
&lt;/script&gt;</p>
<p>In Sql Server still there is no method to covert from one time zone to another but My Sql Support converting date time according to provided time zone.<br />
Following is the simple code runs on My Sql Prompt:-<br />
CONVERT_TZ(dt,from_tz,to_tz)<br />
CONVERT_TZ() converts a datetime value dt from the time zone given by from_tz to the time zone given by to_tz and returns the resulting value. This function returns NULL if the arguments are invalid.<br />
If the value falls out of the supported range of the TIMESTAMP type when converted from from_tz to UTC, no conversion occurs.<br />
mysql&gt; SELECT CONVERT_TZ(&#8217;2004-01-01 12:00:00&#8242;,&#8217;GMT&#8217;,'MET&#8217;);<br />
-&gt; &#8217;2004-01-01 13:00:00&#8242;<br />
mysql&gt; SELECT CONVERT_TZ(&#8217;2004-01-01 12:00:00&#8242;,&#8217;+00:00&#8242;,&#8217;+10:00&#8242;);<br />
-&gt; &#8217;2004-01-01 22:00:00&#8242;</p>
<p>Above is the method which we can use in My Sql which will return all the values from Database itself but if we are using Sql server we need to write our own code to convert time zone in C# code.<br />
You can also download this code from link provided on top on this post.<br />
public string DateFormat(string str)<br />
{<br />
ReadOnlyCollection&lt;TimeZoneInfo&gt; timeZones = TimeZoneInfo.GetSystemTimeZones();<br />
foreach (TimeZoneInfo timeZone in timeZones)<br />
{<br />
TimeSpan offsetFromUtc = timeZone.BaseUtcOffset;<br />
string offsetString;<br />
string strHours = string.Empty;<br />
string strMinutes = string.Empty;<br />
strHours = offsetFromUtc.Hours.ToString();<br />
strMinutes = offsetFromUtc.Minutes.ToString();<br />
if (strMinutes.Length == 1)<br />
{<br />
strMinutes = &#8220;0&#8243; + strMinutes;<br />
}<br />
if (strHours.Length == 1)<br />
{<br />
strHours = &#8220;0&#8243; + strHours;<br />
}</p>
<p>if (Convert.ToInt32(offsetFromUtc.Hours) &gt;= 0)<br />
{<br />
strHours = &#8220;+&#8221; + strHours;<br />
}<br />
offsetString = strHours + strMinutes;<br />
if (Request.Cookies["narender"] != null)<br />
{<br />
if (Request.Cookies["narender"].Value.ToString() == offsetString)<br />
{<br />
if (str != &#8220;&#8221;)<br />
{<br />
DateTime thisTime = Convert.ToDateTime(str);<br />
TimeZoneInfo tst1 = TimeZoneInfo.FindSystemTimeZoneById(timeZone.Id);<br />
DateTime tstTime1 = TimeZoneInfo.ConvertTime(thisTime, TimeZoneInfo.Local, tst1);<br />
str = Convert.ToDateTime(tstTime1).ToString(&#8220;dddd,MMMM dd,yyyy hh:mm:ss tt&#8221;);<br />
}<br />
return str;<br />
}<br />
}<br />
}<br />
return str;<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anitsolution.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anitsolution.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anitsolution.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anitsolution.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anitsolution.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anitsolution.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anitsolution.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anitsolution.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anitsolution.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anitsolution.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anitsolution.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anitsolution.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anitsolution.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anitsolution.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=3&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anitsolution.wordpress.com/2010/04/17/3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/42c68cd4997ca883bbdcfde0c589c37a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narender</media:title>
		</media:content>

		<media:content url="http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png" medium="image">
			<media:title type="html">download</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Get/Set date time according to Different Time zones in C#</title>
		<link>http://anitsolution.wordpress.com/2010/04/15/how-to-getset-date-time-according-to-different-time-zones-in-c/</link>
		<comments>http://anitsolution.wordpress.com/2010/04/15/how-to-getset-date-time-according-to-different-time-zones-in-c/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 11:39:00 +0000</pubDate>
		<dc:creator>Narender</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Browser compatible]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[DateTime]]></category>

		<guid isPermaLink="false">http://anitsolution.wordpress.com/2010/04/15/how-to-getset-date-time-according-to-different-time-zones-in-c</guid>
		<description><![CDATA[Download code example In an Asp.net application I have developed a Forum in which I have requirement to show date and time according to the time zone of PC on which it is running, I had searched for too many examples on but all are using too complex java scripts and other methods to convert [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=74&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.4shared.com/file/GbYoHLMu/AnItSolutionTimeZones.html"><img src="http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png" alt="download" />Download code example</a></p>
<p>In an Asp.net application I have developed a Forum in which I have requirement to show date and time according to the time zone of PC on which it is running, I had searched for too many examples on but all are using too complex java scripts and other methods to convert time into local time zone.</p>
<p>Finally I decided to make my own solution for this problem<br />My solution is using “TimeZoneInfo” to convert the data to local time zone, this class allow me to convert time according to any time zone, but again I got another problem which is how to take time zone of browser. Again I search on net and finally come out with a code.</p>
<p>&lt;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />&nbsp;&nbsp;&nbsp; function genarateDateValue()<br />&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var d = new Date()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var str=d.toString();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var i = str.indexOf(&#8220;+&#8221;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var j = str.length- i;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; str=str.substring(i, i+5);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setCookie(&#8220;narender&#8221;,str,365);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return true;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp; function setCookie(c_name,value,expiredays)<br />&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var exdate=new Date();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exdate.setDate(exdate.getDate()+expiredays);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.cookie=c_name+ &#8220;=&#8221; +escape(value)+((expiredays==null) ? &#8220;&#8221; : &#8220;;expires=&#8221;+exdate.toGMTString());<br />&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp; <br />&lt;/script&gt;</p>
<p>In Sql Server still there is no method to covert from one time zone to another but My Sql Support converting date time according to provided time zone. <br />Following is the simple code runs on My Sql Prompt:-<br />CONVERT_TZ(dt,from_tz,to_tz)<br />CONVERT_TZ() converts a datetime value dt from the time zone given by from_tz to the time zone given by to_tz and returns the resulting value. This function returns NULL if the arguments are invalid.<br />If the value falls out of the supported range of the TIMESTAMP type when converted from from_tz to UTC, no conversion occurs. <br />mysql&gt; SELECT CONVERT_TZ(&#8217;2004-01-01 12:00:00&#8242;,&#8217;GMT&#8217;,'MET&#8217;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; &#8217;2004-01-01 13:00:00&#8242;<br />mysql&gt; SELECT CONVERT_TZ(&#8217;2004-01-01 12:00:00&#8242;,&#8217;+00:00&#8242;,&#8217;+10:00&#8242;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; &#8217;2004-01-01 22:00:00&#8242;</p>
<p>Above is the method which we can use in My Sql which will return all the values from Database itself but if we are using Sql server we need to write our own code to convert time zone in C# code.<br />You can also download this code from link provided on top on this post.<br />public string DateFormat(string str)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadOnlyCollection&lt;TimeZoneInfo&gt; timeZones = TimeZoneInfo.GetSystemTimeZones();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (TimeZoneInfo timeZone in timeZones)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TimeSpan offsetFromUtc = timeZone.BaseUtcOffset;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string offsetString;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strHours = string.Empty;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strMinutes = string.Empty;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strHours = offsetFromUtc.Hours.ToString();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strMinutes = offsetFromUtc.Minutes.ToString();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (strMinutes.Length == 1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strMinutes = &#8220;0&#8243; + strMinutes;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (strHours.Length == 1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strHours = &#8220;0&#8243; + strHours;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (Convert.ToInt32(offsetFromUtc.Hours) &gt;= 0)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strHours = &#8220;+&#8221; + strHours;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; offsetString = strHours + strMinutes;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (Request.Cookies["narender"] != null)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (Request.Cookies["narender"].Value.ToString() == offsetString)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (str != &#8220;&#8221;)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DateTime thisTime = Convert.ToDateTime(str);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TimeZoneInfo tst1 = TimeZoneInfo.FindSystemTimeZoneById(timeZone.Id);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DateTime tstTime1 = TimeZoneInfo.ConvertTime(thisTime, TimeZoneInfo.Local, tst1);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; str = Convert.ToDateTime(tstTime1).ToString(&#8220;dddd,MMMM dd,yyyy hh:mm:ss tt&#8221;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return str;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return str;<br />&nbsp;&nbsp;&nbsp; }</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anitsolution.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anitsolution.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anitsolution.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anitsolution.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anitsolution.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anitsolution.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anitsolution.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anitsolution.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anitsolution.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anitsolution.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anitsolution.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anitsolution.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anitsolution.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anitsolution.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=74&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anitsolution.wordpress.com/2010/04/15/how-to-getset-date-time-according-to-different-time-zones-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/42c68cd4997ca883bbdcfde0c589c37a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narender</media:title>
		</media:content>

		<media:content url="http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png" medium="image">
			<media:title type="html">download</media:title>
		</media:content>
	</item>
		<item>
		<title>How to zip a file or folder using C#</title>
		<link>http://anitsolution.wordpress.com/2010/03/27/how-to-zip-a-file-or-folder-using-c/</link>
		<comments>http://anitsolution.wordpress.com/2010/03/27/how-to-zip-a-file-or-folder-using-c/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 11:12:00 +0000</pubDate>
		<dc:creator>Narender</dc:creator>
				<category><![CDATA[Application Performance]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Data Sharing]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Dot Net]]></category>
		<category><![CDATA[Files Sharing]]></category>
		<category><![CDATA[FileUploading]]></category>
		<category><![CDATA[Uploading]]></category>

		<guid isPermaLink="false">http://anitsolution.wordpress.com/2010/03/27/how-to-zip-a-file-or-folder-using-c</guid>
		<description><![CDATA[Download code example I had searched a lot to make files zip using c#, all the solution provided only support to zip a single file but my requirement is to zip a directory selected by used, I had tried so many utilities but unfortunately all does not works for me. Finally I found a solution [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=73&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.4shared.com/file/250511543/9c4c0fc1/AnItSolutionZipFile.html"><img src="http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png" alt="download" />Download code example</a></p>
<p>I had searched a lot to make files zip using c#, all the solution provided only support to zip a single file but my requirement is to zip a directory selected by used, I had tried so many utilities but unfortunately all does not works for me.</p>
<p>Finally I found a solution which is using Java utility to zip file. This solution is quite easy to implement and debug.</p>
<p>To implement this solution you need to add reference of <span style="font-weight:bold;">“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjslib.dll”</span> to your application.<a href="http://www.4shared.com/file/250511543/9c4c0fc1/AnItSolutionZipFile.html"><br /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anitsolution.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anitsolution.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anitsolution.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anitsolution.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anitsolution.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anitsolution.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anitsolution.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anitsolution.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anitsolution.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anitsolution.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anitsolution.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anitsolution.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anitsolution.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anitsolution.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=73&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anitsolution.wordpress.com/2010/03/27/how-to-zip-a-file-or-folder-using-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/42c68cd4997ca883bbdcfde0c589c37a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narender</media:title>
		</media:content>

		<media:content url="http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png" medium="image">
			<media:title type="html">download</media:title>
		</media:content>
	</item>
		<item>
		<title>How to pass server values to Javascript using Eval()</title>
		<link>http://anitsolution.wordpress.com/2010/02/20/how-to-pass-server-values-to-javascript-using-eval/</link>
		<comments>http://anitsolution.wordpress.com/2010/02/20/how-to-pass-server-values-to-javascript-using-eval/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 11:24:00 +0000</pubDate>
		<dc:creator>Narender</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Browser compatible]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Dot Net]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Validations]]></category>

		<guid isPermaLink="false">http://anitsolution.wordpress.com/2010/02/20/how-to-pass-server-values-to-javascript-using-eval</guid>
		<description><![CDATA[In my application I have a target to show message if user does not have permission to navigate to another page. I can do this by using server code but it will make a round trip to server and make a bad user experience so, I decided to use java script. Following is the function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=72&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my application I have a target to show message if user does not have permission to navigate to another page. I can do this by using server code but it will make a round trip to server and make a bad user experience so, I decided to use java script.</p>
<p>Following is the function of Java Script</p>
<p>&lt;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />function func_Message(obj)<br />{   <br />    if (parseFloat(obj)&gt;0)   <br />    {<br />        return true;<br />    }<br />    else<br />    {<br />        alert(&#8220;Please assign a value before viewing the details&#8221;);<br />        return false;<br />    }<br />}<br />&lt;/script&gt;</p>
<p>And following is the code of Link Button from where I am passing value to Java Script Function</p>
<p>                                &lt;asp:LinkButton ID=&#8221;lnk_Details&#8221; runat=&#8221;server&#8221; Text=&#8221;Details&#8221; CommandArgument=&#8217;&lt;%# Eval(&#8220;festi_id&#8221;) +&#8221;~&#8221; + Eval(&#8220;user_id&#8221;) %&gt;&#8217;<br />                                    CommandName=&#8221;ViewDetails&#8221; OnClientClick=&#8217;&lt;%# &#8220;return func_Message(&#8221; + Eval(&#8220;user_id&#8221;) + &#8220;);&#8221;%&gt;&#8217;&gt;&lt;/asp:LinkButton&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anitsolution.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anitsolution.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anitsolution.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anitsolution.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anitsolution.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anitsolution.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anitsolution.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anitsolution.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anitsolution.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anitsolution.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anitsolution.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anitsolution.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anitsolution.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anitsolution.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=72&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anitsolution.wordpress.com/2010/02/20/how-to-pass-server-values-to-javascript-using-eval/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/42c68cd4997ca883bbdcfde0c589c37a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narender</media:title>
		</media:content>
	</item>
		<item>
		<title>Disbale JIT in .net / Application level Exception handling in .net</title>
		<link>http://anitsolution.wordpress.com/2010/02/20/disbale-jit-in-net-application-level-exception-handling-in-net/</link>
		<comments>http://anitsolution.wordpress.com/2010/02/20/disbale-jit-in-net-application-level-exception-handling-in-net/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 09:24:00 +0000</pubDate>
		<dc:creator>Narender</dc:creator>
				<category><![CDATA[Application Performance]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Dot Net]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[User Defined Functions]]></category>
		<category><![CDATA[Validations]]></category>

		<guid isPermaLink="false">http://anitsolution.wordpress.com/2010/02/20/disbale-jit-in-net-application-level-exception-handling-in-net</guid>
		<description><![CDATA[Download Code Example I was developing windows application for a well known company of World. This application was in C#.net 2005. As per requirement I have to show user defined message whenever an Exception occurs in the application. The answer is very simply write a simple Try{},Catch{} statement to handle exception.Suppose I have a code [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=71&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.4shared.com/file/225871583/5bda800d/JITHandling.html"><img src="http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png" alt="download" />Download Code Example</a></p>
<p>I was developing windows application for a well known company of World. This application was in C#.net 2005.</p>
<p>As per requirement I have to show user defined message whenever an Exception occurs in the application.</p>
<p>The answer is very simply write a simple Try{},Catch{} statement to handle exception.<br />Suppose I have a code of 1000 line unwanted code and error handling creates extra thread while executing the application. I had search on the internet and found a solution to disable the JIT debugger. It works but still it is showing the application information related to functions etc. used in the code.</p>
<p>Now, a major issue had risen from client, i.e. he don’t want to show JIT information to user  he wants to show his own message whenever any Exception occurs.</p>
<p>Offf…. Now that’s the task to which needs to done. I cannot use Try{},Catch{} as  this decrease the application performance. Finally I came to the solution. I had wired an event with application to handle application error. Here is the code.</p>
<p>static void Main()<br />    {    <br /><span style="font-weight:bold;">            Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);</span><br />        Application.EnableVisualStyles();<br />        Application.SetCompatibleTextRenderingDefault(false);<br />        Application.Run(new Form1());<br />    }</p>
<p><span style="font-weight:bold;">    static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)</span><br /><span style="font-weight:bold;">        {</span><br /><span style="font-weight:bold;">            MessageBox.Show(&#8220;Illegal operation or command.&#8221;, &#8220;Illegal operation&#8221;,  MessageBoxButtons.OK, MessageBoxIcon.Warning);</span><br /><span style="font-weight:bold;">        }</span><br />Now, run your code and click on the button, it will show are exception while you are running the application within the .net environment.</p>
<p>Now browser the directory and Run you EXE file and again click in the button, <span style="font-weight:bold;">now it will not show exception rather show the message which you wants to display.</span></p>
<p>This is a good approach it will show exception and source in while debugging and show and user defined message in EXE<br /><a href="http://www.4shared.com/file/225871583/5bda800d/JITHandling.html"></p>
<p></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anitsolution.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anitsolution.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anitsolution.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anitsolution.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anitsolution.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anitsolution.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anitsolution.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anitsolution.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anitsolution.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anitsolution.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anitsolution.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anitsolution.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anitsolution.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anitsolution.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=71&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anitsolution.wordpress.com/2010/02/20/disbale-jit-in-net-application-level-exception-handling-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/42c68cd4997ca883bbdcfde0c589c37a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narender</media:title>
		</media:content>

		<media:content url="http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png" medium="image">
			<media:title type="html">download</media:title>
		</media:content>
	</item>
		<item>
		<title>How to alter Auto Increment field in Sql server</title>
		<link>http://anitsolution.wordpress.com/2010/02/09/how-to-alter-auto-increment-field-in-sql-server/</link>
		<comments>http://anitsolution.wordpress.com/2010/02/09/how-to-alter-auto-increment-field-in-sql-server/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 10:55:00 +0000</pubDate>
		<dc:creator>Narender</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Back Up]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Configure]]></category>
		<category><![CDATA[Dot Net]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[Sql server]]></category>

		<guid isPermaLink="false">http://anitsolution.wordpress.com/2010/02/09/how-to-alter-auto-increment-field-in-sql-server</guid>
		<description><![CDATA[It is not possible to remove Auto Increment field using Alter command in Sql Server. What we can use is SET IDENTITY_INSERT Take this following example this creates a table with auto increment field and still insert data to the same. Generally if you try to insert the data into auto increment field it will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=70&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is not possible to remove Auto Increment field using Alter command in Sql Server.</p>
<p>What we can use is <span style="font-weight:bold;">SET IDENTITY_INSERT</span></p>
<p>Take this following example this creates a table with auto increment field and still insert data to the same.</p>
<p>Generally if you try to insert the data into auto increment field it will through error.</p>
<p>But if we use <span style="font-weight:bold;">SET IDENTITY_INSERT &lt;Table Name&gt;ON</span> it will allow you to insert data into auto increment field.</p>
<p><span style="font-weight:bold;">Note:</span> Make sure after completing this operation you set the value to <span style="font-weight:bold;">SET IDENTITY_INSERT &lt;Table Name&gt;OFF</span></p>
<p>&#8211;Create table and its columns<br />CREATE TABLE [test].[Table_1] (<br />    [Id][int] NOT NULL IDENTITY (1, 1),<br />    [Name][nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL);<br />GO</p>
<p>ALTER TABLE [test].[Table_1] ADD CONSTRAINT [PK_Table_1] PRIMARY KEY CLUSTERED ([Id])<br />GO</p>
<p>SET IDENTITY_INSERT [test].[Table_1] ON<br />GO<br />INSERT INTO [test].[Table_1] ([Id], [Name])<br />    VALUES (1, &#8216;Narender&#8217;)</p>
<p>GO<br />INSERT INTO [test].[Table_1] ([Id], [Name])<br />    VALUES (3, &#8216;Rohit&#8217;)</p>
<p>GO<br />INSERT INTO [test].[Table_1] ([Id], [Name])<br />    VALUES (4, &#8216;Mohit&#8217;)</p>
<p>GO<br />INSERT INTO [test].[Table_1] ([Id], [Name])<br />    VALUES (5, &#8216;Shipra&#8217;)</p>
<p>GO<br />SET IDENTITY_INSERT [test].[Table_1] OFF<br />GO</p>
<p>The above example simply insert the data into table without incrementing the  values and keep the error shut..</p>
<p>If you try to  insert any data after <span style="font-weight:bold;">SET IDENTITY_INSERT [test].[Table_1] OFF</span> it will through an error.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anitsolution.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anitsolution.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anitsolution.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anitsolution.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anitsolution.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anitsolution.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anitsolution.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anitsolution.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anitsolution.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anitsolution.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anitsolution.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anitsolution.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anitsolution.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anitsolution.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=70&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anitsolution.wordpress.com/2010/02/09/how-to-alter-auto-increment-field-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/42c68cd4997ca883bbdcfde0c589c37a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narender</media:title>
		</media:content>
	</item>
		<item>
		<title>C# too many database connections error</title>
		<link>http://anitsolution.wordpress.com/2010/01/20/c-too-many-database-connections-error/</link>
		<comments>http://anitsolution.wordpress.com/2010/01/20/c-too-many-database-connections-error/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 07:04:00 +0000</pubDate>
		<dc:creator>Narender</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Dot Net]]></category>
		<category><![CDATA[Error]]></category>

		<guid isPermaLink="false">http://anitsolution.wordpress.com/2010/01/20/c-too-many-database-connections-error</guid>
		<description><![CDATA[Every database is having some number of connection limits which you can increase up to an extend. But database can support up to an number of connections. This error occurs when we open a connection and forget to close that. Verify each line of your code and make sure you had closed the connection after [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=69&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Every database is having some number of connection limits which you can increase up to an extend.</p>
<p>But database can support up to an number of connections.</p>
<p>This error occurs when we open a connection and forget to close that. Verify each line of your code and make sure you had closed the connection after completing your database operations.</p>
<p>I had faced this error in C# My sql application. I had crossed verify my code and find a code where I am not closing my connection after completing my operations. I had simply write <span style="font-weight:bold;">connection.Close();</span> and it had worked.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anitsolution.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anitsolution.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anitsolution.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anitsolution.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anitsolution.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anitsolution.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anitsolution.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anitsolution.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anitsolution.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anitsolution.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anitsolution.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anitsolution.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anitsolution.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anitsolution.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=69&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anitsolution.wordpress.com/2010/01/20/c-too-many-database-connections-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/42c68cd4997ca883bbdcfde0c589c37a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narender</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Function Reference:Oracle vs.SQL Server vs. My SQL Part- III</title>
		<link>http://anitsolution.wordpress.com/2009/12/30/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-iii/</link>
		<comments>http://anitsolution.wordpress.com/2009/12/30/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-iii/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 06:17:00 +0000</pubDate>
		<dc:creator>Narender</dc:creator>
				<category><![CDATA[Functions]]></category>
		<category><![CDATA[My Sql]]></category>
		<category><![CDATA[Sql server]]></category>

		<guid isPermaLink="false">http://anitsolution.wordpress.com/2009/12/30/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-iii</guid>
		<description><![CDATA[Date Functions Function &#8211; Date additionOracle &#8211; (use +)SQL Server &#8211; DATEADD My Sql &#8211; Need To Update Function &#8211; Date subtractionOracle &#8211; (use -) SQL Server &#8211; DATEDIFF My Sql &#8211; Need To Update Function &#8211; Last day of month Oracle &#8211; LAST_DAY SQL Server &#8211; N/A My Sql &#8211; Need To Update Function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=68&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="text-align:center;font-weight:bold;">Date Functions
<div style="text-align:left;"><span style="font-style:italic;">Function &#8211; Date addition</span><br /><span style="font-weight:normal;">Oracle &#8211; (use +)</span><br /><span style="font-weight:normal;">SQL Server &#8211; DATEADD</span><br /><span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p> <span style="font-style:italic;">Function &#8211; Date subtraction</span><br /><span style="font-weight:normal;">Oracle &#8211; (use -)</span><br /> <span style="font-weight:normal;">SQL Server &#8211; DATEDIFF</span><br /> <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p> <span style="font-style:italic;">Function &#8211; Last day of month</span><br />  <span style="font-weight:normal;">Oracle &#8211;                     LAST_DAY</span><br />  <span style="font-weight:normal;">SQL Server &#8211; N/A</span><br />  <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p> <span style="font-style:italic;">Function -Time zone conversion</span><br />  <span style="font-weight:normal;">Oracle &#8211;                     NEW_TIME</span><br />   <span style="font-weight:normal;">SQL Server &#8211;                     N/A</span><br />   <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p>  <span style="font-style:italic;">Function -First weekday after date</span><br />   <span style="font-weight:normal;">Oracle &#8211;                     NEXT_DAY</span><br />    <span style="font-weight:normal;">SQL Server &#8211;                     N/A</span><br />    <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p><span style="font-style:italic;">Function -Convert date to string</span><br />    <span style="font-weight:normal;">Oracle -TO_CHAR</span><br />     <span style="font-weight:normal;">SQL Server &#8211; DATENAME</span><br />     <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p><span style="font-style:italic;">Function -Convert date to number</span><br />     <span style="font-weight:normal;">Oracle -TO_NUMBER(TO_CHAR())</span><br />      <span style="font-weight:normal;">SQL Server &#8211; TO_NUMBER(TO_CHAR())</span><br />      <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p><span style="font-style:italic;">Function -Convert string to date</span><br />      <span style="font-weight:normal;">Oracle -TO_NUMBER(TO_CHAR())</span><br />       <span style="font-weight:normal;">SQL Server &#8211; CAST</span><br />       <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p><span style="font-style:italic;">Function -Get current date and time</span><br />       <span style="font-weight:normal;">Oracle -SYSDATE</span><br />        <span style="font-weight:normal;">SQL Server &#8211; GETDATE()</span><br />        <span style="font-weight:normal;">                 My Sql &#8211;                     Now()</span></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anitsolution.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anitsolution.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anitsolution.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anitsolution.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anitsolution.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anitsolution.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anitsolution.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anitsolution.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anitsolution.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anitsolution.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anitsolution.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anitsolution.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anitsolution.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anitsolution.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=68&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anitsolution.wordpress.com/2009/12/30/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-iii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/42c68cd4997ca883bbdcfde0c589c37a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narender</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Function Reference:Oracle vs.SQL Server vs. My SQL Part- II</title>
		<link>http://anitsolution.wordpress.com/2009/12/30/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-ii/</link>
		<comments>http://anitsolution.wordpress.com/2009/12/30/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-ii/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 06:01:00 +0000</pubDate>
		<dc:creator>Narender</dc:creator>
				<category><![CDATA[Functions]]></category>
		<category><![CDATA[My Sql]]></category>
		<category><![CDATA[Sql server]]></category>

		<guid isPermaLink="false">http://anitsolution.wordpress.com/2009/12/30/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-ii</guid>
		<description><![CDATA[String Functions Function &#8211; Convert character to ASCIIOracle &#8211; ASCIISQL Server &#8211; ASCII My Sql &#8211; ASCII Function -String concatenateOracle &#8211; CONCATSQL Server &#8211; (expression + expression) My Sql &#8211; CONCAT Function -Convert ASCII to characterOracle &#8211; CHRSQL Server &#8211; CHAR My Sql &#8211; CONCAT Function -Return starting point of character in character string (from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=67&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="text-align:center;font-weight:bold;">String Functions</p>
<div style="text-align:left;"><span style="font-style:italic;">Function &#8211; Convert character to ASCII</span><br /><span style="font-weight:normal;">Oracle &#8211; ASCII</span><br /><span style="font-weight:normal;">SQL Server &#8211; ASCII</span><br /><span style="font-weight:normal;">                 My Sql &#8211; ASCII</p>
<p></span>
<div style="text-align:left;"><span style="font-style:italic;">Function -String concatenate</span><br /><span style="font-weight:normal;">Oracle &#8211; CONCAT</span><br /><span style="font-weight:normal;">SQL Server &#8211; (expression + expression)</span><br /><span style="font-weight:normal;">                 My Sql &#8211; CONCAT</p>
<p></span><span style="font-style:italic;">Function -Convert ASCII to character</span><br /><span style="font-weight:normal;">Oracle &#8211; CHR</span><br /><span style="font-weight:normal;">SQL Server &#8211; CHAR</span><br /><span style="font-weight:normal;">                 My Sql &#8211; CONCAT</span></div>
<p><span style="font-style:italic;">Function -Return starting point of character in character string (from left)</span><br /><span style="font-weight:normal;">Oracle &#8211; INSTR</span><br /><span style="font-weight:normal;">SQL Server &#8211; CHARINDEX</span><br /><span style="font-weight:normal;">                 My Sql &#8211; INSTR</span></p>
<p><span style="font-style:italic;">Function -Convert characters to lowercase</span><br /><span style="font-weight:normal;">Oracle &#8211; LOWER</span><br /> <span style="font-weight:normal;">SQL Server &#8211; LOWER</span><br /> <span style="font-weight:normal;">                 My Sql &#8211; LOWER</span></p>
<p><span style="font-style:italic;">Function -Convert characters to uppercase</span><br /><span style="font-weight:normal;">Oracle &#8211; UPPER</span><br />  <span style="font-weight:normal;">SQL Server &#8211; UPPER</span><br />  <span style="font-weight:normal;">                 My Sql &#8211; UPPER</span></p>
<p><span style="font-style:italic;">Function -Pad left side of character string</span><br /><span style="font-weight:normal;">Oracle &#8211; LPAD</span><br />   <span style="font-weight:normal;">SQL Server &#8211;                     N/A</span><br />   <span style="font-weight:normal;">                 My Sql &#8211; LPAD</span></p>
<p><span style="font-style:italic;">Function -Remove leading blank spaces</span><br /><span style="font-weight:normal;">Oracle &#8211; LTRIM</span><br />    <span style="font-weight:normal;">SQL Server &#8211;                     LTRIM</span><br />    <span style="font-weight:normal;">                 My Sql &#8211; LTRIM</span></p>
<p><span style="font-style:italic;">Function -Remove trailing blank spaces</span><br /><span style="font-weight:normal;">Oracle &#8211; RTRIM</span><br />     <span style="font-weight:normal;">SQL Server -RTRIM</span><br />     <span style="font-weight:normal;">                 My Sql &#8211; RTRIM</span></p>
<p><span style="font-style:italic;">Function -Starting point of pattern in character string</span><br /><span style="font-weight:normal;">Oracle &#8211; INSTR</span><br />      <span style="font-weight:normal;">SQL Server -PATINDEX</span><br />      <span style="font-weight:normal;">                 My Sql &#8211; INSTR</span></p>
<p><span style="font-style:italic;">Function -Repeat character string multiple times</span><br /><span style="font-weight:normal;">Oracle &#8211; RPAD</span><br />       <span style="font-weight:normal;">SQL Server -REPLICATE</span><br />       <span style="font-weight:normal;">                 My Sql &#8211; RPAD</span></p>
<p><span style="font-style:italic;">Function -Phonetic representation of character string</span><br /><span style="font-weight:normal;">Oracle &#8211; SOUNDEX</span><br />        <span style="font-weight:normal;">SQL Server -SOUNDEX</span><br />        <span style="font-weight:normal;">                 My Sql &#8211; SOUNDEX</span></p>
<p><span style="font-style:italic;">Function -String of repeated spaces</span><br /><span style="font-weight:normal;">Oracle &#8211; RPAD</span><br /><span style="font-weight:normal;">           SQL Server -SPACE</span><br /><span style="font-weight:normal;">                            My Sql &#8211; RPAD</span></p>
<p><span style="font-style:italic;">Function -Character data converted from numeric data</span><br /><span style="font-weight:normal;">Oracle &#8211; TO_CHAR</span><br />          <span style="font-weight:normal;">SQL Server -STR</span><br />          <span style="font-weight:normal;">                 My Sql &#8211; Need To Update</span></p>
<p><span style="font-style:italic;">Function &#8211;            Substring</span><br /><span style="font-weight:normal;">Oracle &#8211; SUBSTR</span><br />           <span style="font-weight:normal;">SQL Server -SUBSTRING</span><br />           <span style="font-weight:normal;">                 My Sql &#8211; MID</span></p>
<p><span style="font-style:italic;">Function &#8211; Replace characters</span><br /><span style="font-weight:normal;">Oracle &#8211; REPLACE</span><br />            <span style="font-weight:normal;">SQL Server -STUFF</span><br />            <span style="font-weight:normal;">                 My Sql &#8211; REPLACE</span></p>
<p><span style="font-style:italic;">Function &#8211; Capitalize first letter of each word in string</span><br /><span style="font-weight:normal;">Oracle &#8211;             INITCAP</span><br />             <span style="font-weight:normal;">SQL Server -N/A</span><br />             <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p><span style="font-style:italic;">Function &#8211; Translate character string</span><br /><span style="font-weight:normal;">Oracle -TRANSLATE</span><br />              <span style="font-weight:normal;">SQL Server -N/A</span><br />              <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p><span style="font-style:italic;">Function &#8211; Length of character string</span><br /><span style="font-weight:normal;">Oracle -LENGTH</span><br />               <span style="font-weight:normal;">SQL Server &#8211;                    DATALENGTH or LEN</span><br />               <span style="font-weight:normal;">                 My Sql &#8211;                     LENGTH</span></p>
<p><span style="font-style:italic;">Function &#8211; Greatest character string in list</span><br /><span style="font-weight:normal;">Oracle -GREATEST</span><br />                <span style="font-weight:normal;">SQL Server &#8211;                    N/A</span><br />                <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p><span style="font-style:italic;">Function &#8211; Least character string in list</span><br /><span style="font-weight:normal;">Oracle -LEAST</span><br />                 <span style="font-weight:normal;">SQL Server &#8211;                    N/A</span><br />                 <span style="font-weight:normal;">                 My Sql &#8211;                     Need To Update</span></p>
<p><span style="font-style:italic;">Function &#8211; Convert string if NULL</span><br /><span style="font-weight:normal;">Oracle -NVL</span><br />                  <span style="font-weight:normal;">SQL Server &#8211;                                        ISNULL</span><br />                  <span style="font-weight:normal;">                 My Sql &#8211; Need To Update</p>
<p><a href="http://an-it-solution.blogspot.com/2009/12/sql-function-referenceoracle-vssql_29.html">Visit Part III (Date Functions)</a><br /></span></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anitsolution.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anitsolution.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anitsolution.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anitsolution.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anitsolution.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anitsolution.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anitsolution.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anitsolution.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anitsolution.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anitsolution.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anitsolution.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anitsolution.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anitsolution.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anitsolution.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=67&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anitsolution.wordpress.com/2009/12/30/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/42c68cd4997ca883bbdcfde0c589c37a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narender</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Function Reference:Oracle vs.SQL Server vs. My SQL Part- I</title>
		<link>http://anitsolution.wordpress.com/2009/11/23/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-i/</link>
		<comments>http://anitsolution.wordpress.com/2009/11/23/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-i/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 08:25:00 +0000</pubDate>
		<dc:creator>Narender</dc:creator>
				<category><![CDATA[Functions]]></category>
		<category><![CDATA[My Sql]]></category>
		<category><![CDATA[Sql server]]></category>

		<guid isPermaLink="false">http://anitsolution.wordpress.com/2009/11/23/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-i</guid>
		<description><![CDATA[Generally the major issue we face while development is the availability of common functions in different database(s). I am facing this issue from last so many years. Then I had start preparing a table for common functions of different database(s). The commonly used databases are Oracle, Sql Server and My Sql. Their is so many [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=66&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Generally the major issue we face while development is the availability of common functions in different database(s).</p>
<p>I am facing this issue from last so many years. Then I had start preparing a table for common functions of different database(s).</p>
<p>The commonly used databases are Oracle, Sql Server and My Sql. Their is so many other database(s) are also available but commonly I works on these database(s) only.</p>
<p>Following is the common list of functions in different database(s):-</p>
<div style="text-align:center;font-weight:bold;">Math Functions</div>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Absolute value</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; ABS<br />SQL Server &#8211; ABS<br />                My Sql &#8211; ABS</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Arc cosine</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; ACOS<br />SQL Server &#8211; ACOS<br />                 My Sql &#8211; ACOS</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Arc sine</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; ASIN<br />SQL Server &#8211; ASIN<br />                  My Sql &#8211; ASIN</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Arc tangent of n</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; ATAN<br />SQL Server &#8211; ATAN<br />                   My Sql &#8211; ATAN</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Arc tangent of n and m</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; ATAN2<br />SQL Server &#8211; ATAN2<br />                    My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Smallest integer &gt;= value</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; CEIL<br /> SQL Server &#8211; CEILING<br />                     My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Cosine</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; COS<br />  SQL Server &#8211; COS<br />                      My Sql &#8211; COS</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Hyperbolic cosine</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; COSH<br />   SQL Server &#8211; COT<br />                       My Sql &#8211;  Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Exponential value</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; EXP<br />    SQL Server &#8211; EXP<br />                        My Sql -EXP</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Round down to nearest integer</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; FLOOR<br />     SQL Server &#8211; FLOOR<br />                         My Sql -FLOOR</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Natural logarithm</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; LN<br />      SQL Server &#8211; LOG<br />                          My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Logarithm, any base</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; LOG(N)<br />       SQL Server &#8211; N/A<br />                           My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Logarithm, base 10</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; LOG(10)<br />        SQL Server &#8211; LOG10<br />                            My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Modulus (remainder)</span><span style="font-style:italic;"><span style="font-weight:bold;"><br /></span></span>Oracle &#8211; MOD<br />         SQL Server &#8211;                     USE MODULO (%) OPERATOR<br />                             My Sql &#8211; Please Suggest</p>
<p><span style="font-style:italic;font-weight:bold;">Function &#8211; Power<br /></span>Oracle &#8211; POWER<br />          SQL Server &#8211;                     POWER<br />                              My Sql &#8211; POWER</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Random number</span><br />Oracle &#8211;                     N/A<br />           SQL Server &#8211; RAND<br />                               My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Round</span><br />Oracle &#8211; ROUND<br />            SQL Server &#8211; ROUND<br />                                My Sql &#8211; ROUND</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Sign of number</span><br />Oracle &#8211; SIGN<br />             SQL Server &#8211; SIGN<br />                                 My Sql &#8211; SIGN</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Sine</span><br />Oracle &#8211; SIN<br />              SQL Server &#8211; SIN<br />                                  My Sql &#8211; SIN</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Hyperbolic sine</span><br />Oracle &#8211; SINH<br />               SQL Server &#8211;                     N/A<br />                                   My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Square root</span><br /> Oracle &#8211; SQRT<br />                SQL Server &#8211;                     SQRT<br />                                    My Sql &#8211; SQRT</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Tangent</span><br />  Oracle &#8211; TAN<br />                 SQL Server &#8211; TAN<br />                                     My Sql &#8211; TAN</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Hyperbolic tangent</span><br />   Oracle &#8211; TANH<br />                  SQL Server &#8211; N/A<br />                                      My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Truncate</span><br />    Oracle &#8211; TRUNC<br />                   SQL Server &#8211; N/A<br />                                       My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Highest number in list</span><br />     Oracle &#8211; GREATEST<br />                    SQL Server &#8211; N/A<br />                                        My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Lowest number in list</span><br />      Oracle &#8211; LEAST<br />                     SQL Server &#8211; N/A<br />                                         My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Convert number if NULL</span><br />Oracle &#8211; NVL<br />                      SQL Server &#8211; ISNULL<br />                                          My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Standard deviation</span><br />Oracle &#8211; STDDEV<br />                       SQL Server &#8211; STDDEV<br />                                           My Sql &#8211; Please Suggest</p>
<p><span style="font-weight:bold;font-style:italic;">Function &#8211; Variance</span><br />Oracle &#8211; VARIANCE<br />                        SQL Server &#8211; VAR<br />                                            My Sql &#8211; Please Suggest</p>
<p>This is not the end of functions or post. I will post string and datetime functions in coming articles. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://an-it-solution.blogspot.com/2009/12/sql-function-referenceoracle-vssql.html">Visit Part II (String Functions)</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anitsolution.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anitsolution.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anitsolution.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anitsolution.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anitsolution.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anitsolution.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anitsolution.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anitsolution.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anitsolution.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anitsolution.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anitsolution.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anitsolution.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anitsolution.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anitsolution.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anitsolution.wordpress.com&amp;blog=13180423&amp;post=66&amp;subd=anitsolution&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anitsolution.wordpress.com/2009/11/23/sql-function-referenceoracle-vs-sql-server-vs-my-sql-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/42c68cd4997ca883bbdcfde0c589c37a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narender</media:title>
		</media:content>
	</item>
	</channel>
</rss>
