<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"><id>tag:blogger.com,1999:blog-4911129440716176670</id><updated>2012-02-16T21:04:57.081-05:00</updated><category term="page load" /><category term="sql server management" /><category term="iis MIME type" /><category term="protocol" /><category term="HTTP1.0" /><category term="tsql" /><category term="sql agent" /><category term="bubble up" /><category term="sql merge" /><category term="localization" /><category term="learn http" /><category term="offline" /><category term="sp_addlinkedserver" /><category term="pound" /><category term="service" /><category term="query" /><category term="Code" /><category term="audio" /><category term="sqlserver" /><category term="with" /><category term="Streaming" /><category term="SELECT" /><category term="state server" /><category term="XmlTextWriter" /><category term="sort collection" /><category term="win 32 service" /><category term="Google translator API" /><category term="modify cookie" /><category term="video" /><category term="dynamic query" /><category term="AVChat" /><category term="audio recorder" /><category term="Dot Net" /><category term="update cookie" /><category term="sort" /><category term="end tag" /><category term="DataContext" /><category term="declare" /><category term="table" /><category term="winforms" /><category term="Dot Net 3.5" /><category term="iis" /><category term="authentication" /><category term="schedule" /><category term="synchronization" /><category term="order" /><category term="intersect" /><category term="daily backup" /><category term="event handler" /><category term="search sproc content" /><category term="User Defined Function" /><category term="C# 3.0" /><category term="common table expression" /><category term="tcp/ip" /><category term="cool feature" /><category term=".Net SqlClient" /><category term="execution" /><category term="view" /><category term="XMLSerializer" /><category term="COMMIT" /><category term="asp.net" /><category term="framework" /><category term="Load" /><category term="project" /><category term="datetime" /><category term="html code" /><category term="cte" /><category term="label" /><category term="project installer" /><category term="sort objects" /><category term="GetResult" /><category term="paging" /><category term="Hyper Text Transfer Protocol" /><category term="Serialize" /><category term="sync" /><category term="recurrent backup" /><category term="aspstate" /><category term="translator length restriction" /><category term="Sql Tips" /><category term="drop" /><category term="sys.servers" /><category term="encrypt" /><category term="Exception" /><category term="ROLLBACK" /><category term="response" /><category term="Http" /><category term="start" /><category term="c# generic list" /><category term="textarea" /><category term="take" /><category term="invoke" /><category term="routine" /><category term="html tags" /><category term="Object" /><category term="parent page" /><category term="sql server 2000" /><category term="login" /><category term="sql login error" /><category term="windows service" /><category term="aspnetdb" /><category term="header" /><category term="deployment" /><category term="remote" /><category term="UrlEncode" /><category term="refresh" /><category term="Html ·Tags: #" /><category term="C sharp" /><category term="post" /><category term="join" /><category term="Optional parameters" /><category term="create" /><category term="Asp .Net" /><category term="user control" /><category term="ado.net" /><category term="temp table" /><category term="UrlDecode" /><category term="http reuest" /><category term="link server" /><category term="Memory" /><category term="information_schema" /><category term="ERROR" /><category term="change cookie" /><category term="sitefinity" /><category term="sort list" /><category term="search sporc" /><category term="problem" /><category term="install" /><category term="jquery translator" /><category term="login failed" /><category term="XmlTextWriter.BaseStream" /><category term="xaml" /><category term="Media Server" /><category term="synch" /><category term="TRAN" /><category term="blogspot" /><category term="ResutType" /><category term="img" /><category term="C# 3.5" /><category term="Windows Server 2008" /><category term="only date" /><category term="method" /><category term="syntax" /><category term="database backup" /><category term="Web" /><category term="Sql" /><category term="c#" /><category term="maxlength" /><category term="sp_settriggerorder" /><category term="render" /><category term="sp_executesql" /><category term="row_number" /><category term="IMultipleResults" /><category term=".net" /><category term="performance" /><category term="online web tool" /><category term="Page" /><category term="sql server 2005" /><category term="get" /><category term="sql backup" /><category term="Named arguments" /><category term="web.config" /><category term="LINQ" /><category term="Server.UrlEncode" /><category term="skip" /><category term="MemoryStream" /><category term="custom paging" /><category term="src" /><category term="attribute" /><category term="execution order" /><category term="sequence" /><category term="scope" /><category term="CATCH" /><category term="XML" /><category term="2104" /><category term="C sharp 4.0" /><category term="temporary table" /><category term="batch" /><category term="visual studio" /><category term="common elements" /><category term="System.Diagnostics" /><category term="Data Provider" /><category term="Generic List" /><category term="html" /><category term="local cache" /><category term="onkeypress" /><category term="session" /><category term="ResultSet" /><category term="db backup" /><category term="session state" /><category term="set cookie" /><category term="request" /><category term="windows authentication" /><category term="delegate" /><category term="twice" /><category term="table variable" /><category term="setup" /><category term="IIS 7.0" /><category term="Xaml1" /><category term="javascript" /><category term="start tag" /><category term="cache" /><category term="Trigger" /><category term="multiline" /><category term="script manager" /><category term="sql authentication" /><category term="String or binary data would be truncated." /><category term="sql server 2008" /><category term="for" /><category term="new feature" /><category term="browser" /><category term="SPROC" /><category term="TRY" /><category term="web server settings" /><category term="trusted connection" /><category term="intellisense" /><category term="maintenance plan" /><category term="strip time" /><category term="database" /><category term="back up" /><category term="installutil" /><category term="element" /><category term="extend cookie expiration" /><category term="variable" /><category term="output param" /><category term="empty" /><category term="Find" /><category term="ajax" /><category term="process" /><category term="convert" /><category term="tutorial" /><category term="sorting" /><category term="configure" /><category term="UTF8ByteArrayToString" /><category term="sort items" /><category term="website" /><category term="blog" /><category term="sql server" /><category term="tempdb" /><category term="expiration time" /><category term="textbox" /><category term="scriptmanager" /><category term="mode" /><category term="over" /><category term="blogger" /><category term="sync tables" /><category term="sqlserver2005" /><category term="management studio" /><category term="sql job" /><category term="language translation" /><category term="microsoft" /><category term="c# 4.0" /><category term="sql server mode" /><category term="Red5" /><category term="occationally connected" /><title type="text">Digging Technology...</title><subtitle type="html">This is purely a technical blog that discusses most of the Microsoft technologies such as tsql, sql server, dot net, c#, asp.net and other web technologies.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://cherupally.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default?start-index=26&amp;max-results=25&amp;orderby=updated" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>40</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/DiggingTechnology" /><feedburner:info uri="diggingtechnology" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>DiggingTechnology</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-2404890989092844198</id><published>2009-04-28T01:50:00.004-04:00</published><updated>2011-09-20T01:34:03.340-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="back up" /><category scheme="http://www.blogger.com/atom/ns#" term="daily backup" /><category scheme="http://www.blogger.com/atom/ns#" term="sql server 2005" /><category scheme="http://www.blogger.com/atom/ns#" term="sql backup" /><category scheme="http://www.blogger.com/atom/ns#" term="maintenance plan" /><category scheme="http://www.blogger.com/atom/ns#" term="schedule" /><category scheme="http://www.blogger.com/atom/ns#" term="sql server management" /><category scheme="http://www.blogger.com/atom/ns#" term="sqlserver2005" /><category scheme="http://www.blogger.com/atom/ns#" term="db backup" /><category scheme="http://www.blogger.com/atom/ns#" term="database backup" /><category scheme="http://www.blogger.com/atom/ns#" term="sql job" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><category scheme="http://www.blogger.com/atom/ns#" term="recurrent backup" /><category scheme="http://www.blogger.com/atom/ns#" term="sql agent" /><title type="text">Schedule daily backup for sql server 2005 database using sql agent</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="entrybody"&gt;&lt;div class="snap_preview"&gt;Many of us come across a need to schedule periodic database backups for sql server. But many of us don't realize that this feature is readily available in sql server management studio and we purchase some 3rd party tools to create such scheduled tasks. I recommend to use Sql Server Management Studio to do such jobs rather than spending on unnecessary tools. But remember, this feature is not available in express releases of sql server. If you are using sql server express edition please ignore this post. And this post also assumes that you have SSIS (Sql Server Integration Services) installed and running on your machine. SSIS is the prerequisite to follow the below instructions to schedule the database periodic backups.&lt;br /&gt;Scheduling a daily backup of sql server 2005 database using sql agent is very easy. By following below steps anyone can do that.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Open sql server 2005 Management Studio and connect a server&lt;/li&gt;&lt;li&gt;Expand the tree (left navigation) ”Management-&amp;gt;Maintenance Plans”&lt;/li&gt;&lt;li&gt;Right click on node Maintenance Plans and Click “Maintenance Plan Wizard” (As shown in figure below) which causes to open a wizard.&lt;/li&gt;&lt;/ol&gt;&lt;img alt="" class="alignnone" src="http://chkiran.files.wordpress.com/2008/06/maintenance1.jpg" /&gt;&lt;br /&gt;4. Follow the wizard&lt;br /&gt;5. In 2nd step of the wizard, You can schedule the task as clicking the Button “Change” as shown in the following&lt;br /&gt;&lt;img alt="" class="aligncenter size-medium wp-image-12" height="270" src="http://chkiran.files.wordpress.com/2008/06/maintenance2.jpg?w=300" width="300" /&gt;&lt;br /&gt;6. Once you click the button “Change” you will get a new popup to enter shedule details as shown below.&lt;br /&gt;&lt;img alt="" class="alignnone size-medium wp-image-13" height="261" src="http://chkiran.files.wordpress.com/2008/06/maintenance3.jpg?w=300" width="300" /&gt;&lt;br /&gt;7. Click OK. It will save the schedule info and close the popup. And click Next button to follow the next step.&lt;br /&gt;8. In this step you will be asked to check the check list for all the tasks those can be added in mainteance plan. Select “Backup Datbase (Full)” as shown in the figure.&lt;br /&gt;&lt;img alt="" class="alignnone size-medium wp-image-14" height="268" src="http://chkiran.files.wordpress.com/2008/06/maintenance4.jpg?w=300" width="300" /&gt;&lt;br /&gt;9. Follow the steps until you get following window. Once you get here Select one or more databases from the list of databases by clicking Dropdown for Databases.&lt;br /&gt;&lt;img alt="" class="alignnone size-medium wp-image-15" height="300" src="http://chkiran.files.wordpress.com/2008/06/maintenance5.jpg?w=203" width="203" /&gt;&lt;br /&gt;10. From the above window, browse the folder location where to store the backup files.&lt;br /&gt;11. Continue the the steps until you get to Finish step.&lt;br /&gt;12. Click Finish. Once you click finish, the wizard will execute the steps to to create a job to schedule database. Immediately you will notice a job created in Sql Agent -&amp;gt; Jobs.&lt;br /&gt;13. As per the schedule, the job runs (Repeatedly or One time) and it creates backup file with name DB_NameMMddyyyyHHmm.bak (Ex: NorthWind060420081912.bak) in the specified folder (Borwsed in the above step).&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f04%2fschedule-daily-backup-for-sql-server_27.html"&gt;&lt;img alt="kick it on DotNetKicks.com" border="0" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f04%2fschedule-daily-backup-for-sql-server_27.html" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://dotnetshoutout.com/Schedule-database-backup-for-sql-server-2005-using-maintenance-plan" rev="vote-for"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F04%2Fschedule-daily-backup-for-sql-server_27.html" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-2404890989092844198?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=dMo9Nm4yvaA:x8szXgFZn1g:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=dMo9Nm4yvaA:x8szXgFZn1g:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=dMo9Nm4yvaA:x8szXgFZn1g:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=dMo9Nm4yvaA:x8szXgFZn1g:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=dMo9Nm4yvaA:x8szXgFZn1g:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=dMo9Nm4yvaA:x8szXgFZn1g:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=dMo9Nm4yvaA:x8szXgFZn1g:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=dMo9Nm4yvaA:x8szXgFZn1g:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=dMo9Nm4yvaA:x8szXgFZn1g:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=dMo9Nm4yvaA:x8szXgFZn1g:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=dMo9Nm4yvaA:x8szXgFZn1g:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=dMo9Nm4yvaA:x8szXgFZn1g:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=dMo9Nm4yvaA:x8szXgFZn1g:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/dMo9Nm4yvaA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/2404890989092844198/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=2404890989092844198" title="38 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/2404890989092844198" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/2404890989092844198" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/dMo9Nm4yvaA/schedule-daily-backup-for-sql-server_27.html" title="Schedule daily backup for sql server 2005 database using sql agent" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>38</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/04/schedule-daily-backup-for-sql-server_27.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-9072664818755472812</id><published>2011-05-19T01:41:00.008-04:00</published><updated>2011-06-10T01:47:47.813-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="tsql" /><category scheme="http://www.blogger.com/atom/ns#" term="Sql Tips" /><category scheme="http://www.blogger.com/atom/ns#" term="User Defined Function" /><title type="text">Sql user defined function to replace HTML text without disturbing HTML elements</title><content type="html">You may find many articles on how to strip HTML in SQL. But we rarely find articles on doing replace functionality without disturbing the HTML tags in SQL. This is a very useful requirement where we store content in HTML format in the database.&lt;br /&gt;&lt;br /&gt;When I did Google search on this I found some articles on how to strip HTML from SQL and one of those articles inspired me to write a user defined function which does replace within the text and preserves the HTML as it is.&lt;br /&gt;&lt;br /&gt;The below is the user defined function written by me as inspired from the article &lt;code&gt;&lt;a href="http://blog.sqlauthority.com/2007/06/16/sql-server-udf-user-defined-function-to-strip-html-parse-html-no-regular-expression/"&gt;SQL SERVER – 2005 – UDF – User Defined Function to Strip HTML – Parse HTML – No Regular Expression&lt;/a&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;CREATE FUNCTION [dbo].[udf_ReplaceHTMLContent]&lt;br /&gt;(&lt;br /&gt;@HTMLText VARCHAR(MAX),&lt;br /&gt;@Find VARCHAR(MAX),&lt;br /&gt;@Replace VARCHAR(MAX)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;RETURNS VARCHAR(MAX)&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;DECLARE @Start INT&lt;br /&gt;DECLARE @End INT&lt;br /&gt;DECLARE @Length INT&lt;br /&gt;DECLARE @UpdatedHTMLText VARCHAR(MAX)&lt;br /&gt;&lt;br /&gt;SET @UpdatedHTMLText = ''&lt;br /&gt;SET @Start = CHARINDEX('&amp;lt;',@HTMLText)&lt;br /&gt;SET @End = CHARINDEX('&amp;gt;',@HTMLText,CHARINDEX('&amp;lt;',@HTMLText))&lt;br /&gt;SET @Length = (@End - @Start) + 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;WHILE @Start &amp;gt; 0&lt;br /&gt;AND @End &amp;gt; 0&lt;br /&gt;AND @Length &amp;gt; 0&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;SET @UpdatedHTMLText = @UpdatedHTMLText + Replace(SUBSTRING(@HTMLText, 0, @Start), @Find, @Replace)&lt;br /&gt;&lt;br /&gt;SET @UpdatedHTMLText = @UpdatedHTMLText + SUBSTRING(@HTMLText, @Start,@Length)&lt;br /&gt;&lt;br /&gt;SET @HTMLText = STUFF(@HTMLText,1, @Start + @Length - 1,'')&lt;br /&gt;&lt;br /&gt;SET @Start = CHARINDEX('&amp;lt;',@HTMLText)&lt;br /&gt;&lt;br /&gt;SET @End = CHARINDEX('&amp;gt;',@HTMLText,CHARINDEX('&amp;lt;',@HTMLText))&lt;br /&gt;&lt;br /&gt;SET @Length = (@End - @Start) + 1&lt;br /&gt;&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if @UpdatedHTMLText = ''&lt;br /&gt;&lt;br /&gt;SET @UpdatedHTMLText = @UpdatedHTMLText + Replace(@HTMLText, @Find, @Replace)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RETURN LTRIM(RTRIM(@UpdatedHTMLText))&lt;br /&gt;&lt;br /&gt;END&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http://cherupally.blogspot.com/2011/05/sql-user-defined-function-to-replace.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2011%2f05%2fsql-user-defined-function-to-replace.html" alt="kick it on DotNetKicks.com" border="0" /&gt;&lt;/a&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-9072664818755472812?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V5m8ETGpH7Q:NanM5zbqxp8:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V5m8ETGpH7Q:NanM5zbqxp8:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V5m8ETGpH7Q:NanM5zbqxp8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=V5m8ETGpH7Q:NanM5zbqxp8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V5m8ETGpH7Q:NanM5zbqxp8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=V5m8ETGpH7Q:NanM5zbqxp8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V5m8ETGpH7Q:NanM5zbqxp8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V5m8ETGpH7Q:NanM5zbqxp8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=V5m8ETGpH7Q:NanM5zbqxp8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V5m8ETGpH7Q:NanM5zbqxp8:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V5m8ETGpH7Q:NanM5zbqxp8:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=V5m8ETGpH7Q:NanM5zbqxp8:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V5m8ETGpH7Q:NanM5zbqxp8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/V5m8ETGpH7Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/9072664818755472812/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=9072664818755472812" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/9072664818755472812" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/9072664818755472812" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/V5m8ETGpH7Q/sql-user-defined-function-to-replace.html" title="Sql user defined function to replace HTML text without disturbing HTML elements" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2011/05/sql-user-defined-function-to-replace.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-4316793252837924046</id><published>2010-12-01T19:19:00.008-05:00</published><updated>2011-02-06T08:35:28.570-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="translator length restriction" /><category scheme="http://www.blogger.com/atom/ns#" term="Google translator API" /><category scheme="http://www.blogger.com/atom/ns#" term="language translation" /><category scheme="http://www.blogger.com/atom/ns#" term="localization" /><category scheme="http://www.blogger.com/atom/ns#" term="jquery translator" /><title type="text">Jquery language translation plugin</title><content type="html">Many of us know that Google is providing an online tool to translate from one language to another language. Of course this translation may not be accurate but the percentage of accuracy varies from language to language based on the language structure. Basically it translates word by word. This tool is really helpful to understand statements in different languages.&lt;br /&gt;&lt;br /&gt;But if we have a our own website which is completely in English and there are users which don't know English and they want to know about our site then it is a problem. In this case they may not know that there is a tool which translates text in English to their native language or they don't have time to translate each and every page or they may not be interested to translate at all. Then they may simply skip reading and ignore your site.&lt;br /&gt;&lt;br /&gt;To avoid these kind of risks Google also provided us translator API which lets us develop our website to translate from one language to another language. To know more about Google translator please go through the link &lt;a href="http://code.google.com/apis/language/translate/v1/getting_started.html"&gt;http://code.google.com/apis/language/translate/v1/getting_started.html&lt;/a&gt;. It is very easy to integrate with our website by following this link.&lt;br /&gt;&lt;br /&gt;But the major problem with the Google translate API is its limitation with the &lt;span style="font-weight: bold;"&gt;length of the text&lt;/span&gt; we pass to translator. It does not translate if we pass text with more than 5000 characters. It is only helpful where we need to translate a portion of our web page and that too with less than 5000 characters. If we have to translate the complete web page then we need to write complex logic to split the html code into 5000 character sets and translate thru API and then merge the results. This is really paining.&lt;br /&gt;&lt;br /&gt;To solve these problems we have Jquery plugin for  translator. You can download this at &lt;a href="http://jquery-translate.googlecode.com/files/jquery.translate-1.3.9.min.js"&gt;http://jquery-translate.googlecode.com/files/jquery.translate-1.3.9.min.js&lt;/a&gt;. It internally uses Google translator API and applies the above discussed logic and gives us the complete translated html. This takes the complex part and leave us a simplest part to translate complete web page.&lt;br /&gt;&lt;br /&gt;The below code will do complete translation of your web page from source language to destination language&lt;br /&gt;&lt;br /&gt;&lt;span class="js-localvariable"&gt;$&lt;/span&gt;&lt;span class="js-punctuation"&gt;(&lt;/span&gt;&lt;span class="js-string"&gt;'body'&lt;/span&gt;&lt;span class="js-punctuation"&gt;)&lt;/span&gt;&lt;span class="js-punctuation"&gt;.&lt;/span&gt;&lt;span class="js-property"&gt;translate&lt;/span&gt;&lt;span class="js-punctuation"&gt;( &lt;/span&gt;&lt;span class="js-string"&gt;srcLang&lt;/span&gt;&lt;span class="js-punctuation"&gt;, &lt;/span&gt;&lt;span class="js-localvariable"&gt;destLang &lt;/span&gt;&lt;span class="js-punctuation"&gt;)&lt;/span&gt;&lt;span class="js-punctuation"&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Eg: &lt;span class="js-localvariable"&gt;$&lt;/span&gt;&lt;span class="js-punctuation"&gt;(&lt;/span&gt;&lt;span class="js-string"&gt;'body'&lt;/span&gt;&lt;span class="js-punctuation"&gt;)&lt;/span&gt;&lt;span class="js-punctuation"&gt;.&lt;/span&gt;&lt;span class="js-property"&gt;translate&lt;/span&gt;&lt;span class="js-punctuation"&gt;( "en"&lt;/span&gt;&lt;span class="js-punctuation"&gt;, "es"&lt;/span&gt;&lt;span class="js-localvariable"&gt;&lt;/span&gt;&lt;span class="js-punctuation"&gt;)&lt;/span&gt;&lt;span class="js-punctuation"&gt;; //translates text from English to Spanish&lt;br /&gt;&lt;br /&gt;But to get it working you also need to make sure you have Jquery along with this plugin.&lt;br /&gt;&lt;br /&gt;You can also try playing with this plugin and see how it works. Please take a look at &lt;a href="http://jsbin.com/emufo/edit"&gt;http://jsbin.com/emufo/edit&lt;/a&gt; and make any changes you want and preview the behavior by clicking Preview link on top left corner.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http://cherupally.blogspot.com/2010/12/jquery-translate-plugin.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http://cherupally.blogspot.com/2010/12/jquery-translate-plugin.html" alt="kick it on DotNetKicks.com" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-4316793252837924046?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=vWGvxc8Dhfo:85_Rwi8obRk:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=vWGvxc8Dhfo:85_Rwi8obRk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=vWGvxc8Dhfo:85_Rwi8obRk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=vWGvxc8Dhfo:85_Rwi8obRk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=vWGvxc8Dhfo:85_Rwi8obRk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=vWGvxc8Dhfo:85_Rwi8obRk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=vWGvxc8Dhfo:85_Rwi8obRk:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=vWGvxc8Dhfo:85_Rwi8obRk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=vWGvxc8Dhfo:85_Rwi8obRk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=vWGvxc8Dhfo:85_Rwi8obRk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=vWGvxc8Dhfo:85_Rwi8obRk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=vWGvxc8Dhfo:85_Rwi8obRk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=vWGvxc8Dhfo:85_Rwi8obRk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/vWGvxc8Dhfo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/4316793252837924046/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=4316793252837924046" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/4316793252837924046" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/4316793252837924046" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/vWGvxc8Dhfo/jquery-translate-plugin.html" title="Jquery language translation plugin" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2010/12/jquery-translate-plugin.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-3922077899354159089</id><published>2010-12-04T19:10:00.008-05:00</published><updated>2010-12-04T21:26:02.351-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="sql merge" /><category scheme="http://www.blogger.com/atom/ns#" term="sync tables" /><category scheme="http://www.blogger.com/atom/ns#" term="cool feature" /><category scheme="http://www.blogger.com/atom/ns#" term="sql server 2008" /><title type="text">SQL Server 2008 - MERGE statement</title><content type="html">SQL server 2008 has introduced a new feature to merge two tables. It lets you write a single SQL statement to insert, update and delete the records in the target table based on some conditions. It is very useful where you need to sync two tables. It avoids writing separate statements and logic for insert, update and delete.&lt;br /&gt;&lt;br /&gt;It's syntax is very simple and straight forward:&lt;br /&gt;&lt;pre name="code" class="SQL"&gt;&lt;br /&gt;MERGE &amp;lt;target_table&amp;gt; [AS table_alias]&lt;br /&gt;&lt;br /&gt;USING &amp;lt;table_source&amp;gt; [AS table_alias]&lt;br /&gt;&lt;br /&gt;ON &amp;lt;search_condition&amp;gt;&lt;br /&gt;&lt;br /&gt;[WHEN MATCHED [AND clause_search_condition]&lt;br /&gt;&lt;br /&gt;THEN &amp;lt;merge_matched&amp;gt; ]&lt;br /&gt;&lt;br /&gt;[WHEN NOT MATCHED [BY TARGET] [AND clause_search_condition]&lt;br /&gt;&lt;br /&gt;THEN &amp;lt;merge_not_matched&amp;gt; ]&lt;br /&gt;&lt;br /&gt;[WHEN NOT MATCHED BY SOURCE [AND clause_search_condition]&lt;br /&gt;&lt;br /&gt;THEN &amp;lt;merge_ matched&amp;gt; ];&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Let me write an example and explain how MERGE works.&lt;br /&gt;&lt;br /&gt;Let's say we have two tables named Books_Source and Books_Target which need to be synced periodically. And at one instance&lt;br /&gt;&lt;br /&gt;The table Books_Source contains:&lt;br /&gt;&lt;pre name="code"&gt;&lt;br /&gt;BookID          BookName                         Quantity&lt;br /&gt;&lt;br /&gt;1              "Learn ASP.Net"                      3&lt;br /&gt;&lt;br /&gt;3              "SQL tips"                           5&lt;br /&gt;&lt;br /&gt;4          "Complete Reference of JAVA"             2&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The table Books_Target contains:&lt;br /&gt;&lt;pre name="code"&gt;&lt;br /&gt;BookID     BookName                      Quantity&lt;br /&gt;&lt;br /&gt;1         "Learn ASP.Net"                   2&lt;br /&gt;&lt;br /&gt;2          "Learn XML"                      4&lt;br /&gt;&lt;br /&gt;4      "Complete Reference of JAVA"         4&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;To merge the above tables our MERGE statement goes like this:&lt;br /&gt;&lt;pre name="code" class="SQL"&gt;&lt;br /&gt;MERGE Books_Target AS t&lt;br /&gt;&lt;br /&gt;USING Books_Source AS s&lt;br /&gt;&lt;br /&gt;ON t.BookID = s.BookID&lt;br /&gt;&lt;br /&gt;WHEN MATCHED AND s.Quantity != t.Qunatity&lt;br /&gt;&lt;br /&gt;THEN UPDATE SET t.Quantity = s.Quantity&lt;br /&gt;&lt;br /&gt;WHEN NOT MATCHED BY TARGET&lt;br /&gt;&lt;br /&gt;THEN INSERT(BookID, BookName, Quantity) VALUES(s.BookID, s.BookName, s.Quantity)&lt;br /&gt;&lt;br /&gt;WHEN NOT MATCHED BY SOURCE&lt;br /&gt;&lt;br /&gt;THEN DELETE;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;As you can see in the above code, insert, update and delete actions happen in a single MERGE statement. It lets us add our own conditions to merge conflicts and our own merge actions to take place. &lt;/li&gt;&lt;li&gt;In this example we have written update statement where the records exist in both tables but the column Quantity is different. In this case I want to update only when quantity gets changed in Order_Source table. &lt;/li&gt;&lt;li&gt;Similarly we have written insert statement where the records exist in source table but not in target table. Here we have not added any additional condition because we wanted to insert all those don't exist in target table.&lt;/li&gt;&lt;li&gt;In the same way we have written DELETE statement where the records exist in target table but not in the source table. In this case we don't want the records those are not in source table.&lt;/li&gt;&lt;li&gt;MERGE statement is more efficient than separate statements for insert, update and delete operation to merge tables&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;The final result after the execution of above statement is:&lt;br /&gt;&lt;pre name="code"&gt;&lt;br /&gt;BookID     BookName                      Quantity&lt;br /&gt;1         "Learn ASP.Net"                   3&lt;br /&gt;3              "SQL tips"                   5&lt;br /&gt;4      "Complete Reference of JAVA"         2&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-3922077899354159089?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=b9J3kOn7GEM:SalKq3KKZqk:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=b9J3kOn7GEM:SalKq3KKZqk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=b9J3kOn7GEM:SalKq3KKZqk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=b9J3kOn7GEM:SalKq3KKZqk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=b9J3kOn7GEM:SalKq3KKZqk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=b9J3kOn7GEM:SalKq3KKZqk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=b9J3kOn7GEM:SalKq3KKZqk:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=b9J3kOn7GEM:SalKq3KKZqk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=b9J3kOn7GEM:SalKq3KKZqk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=b9J3kOn7GEM:SalKq3KKZqk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=b9J3kOn7GEM:SalKq3KKZqk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=b9J3kOn7GEM:SalKq3KKZqk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=b9J3kOn7GEM:SalKq3KKZqk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/b9J3kOn7GEM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/3922077899354159089/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=3922077899354159089" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/3922077899354159089" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/3922077899354159089" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/b9J3kOn7GEM/sql-server-2008-merge-statement.html" title="SQL Server 2008 - MERGE statement" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2010/12/sql-server-2008-merge-statement.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-198961192019624387</id><published>2010-10-13T02:23:00.004-04:00</published><updated>2010-10-13T02:41:31.074-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="UrlEncode" /><category scheme="http://www.blogger.com/atom/ns#" term="UrlDecode" /><category scheme="http://www.blogger.com/atom/ns#" term="online web tool" /><title type="text">Online tool Url Decoder / Encoder</title><content type="html">&lt;div&gt;I have come across a need for url decoding as I got a link which was url encoded. And I have found a useful online tool which lets me enter a url encoded text and get the url decoded text. This also has functionality to url encode the given text. You may url encode as many times you want, but you need to decode the encoded text as number of times it was encoded. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I have found this as very useful for my purpose. And this works completely on client side. Please take a look at it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://meyerweb.com/eric/tools/dencoder/"&gt;http://meyerweb.com/eric/tools/dencoder/&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-198961192019624387?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=8PZvgQ56nd0:8FAI-aYJXVs:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=8PZvgQ56nd0:8FAI-aYJXVs:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=8PZvgQ56nd0:8FAI-aYJXVs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=8PZvgQ56nd0:8FAI-aYJXVs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=8PZvgQ56nd0:8FAI-aYJXVs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=8PZvgQ56nd0:8FAI-aYJXVs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=8PZvgQ56nd0:8FAI-aYJXVs:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=8PZvgQ56nd0:8FAI-aYJXVs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=8PZvgQ56nd0:8FAI-aYJXVs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=8PZvgQ56nd0:8FAI-aYJXVs:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=8PZvgQ56nd0:8FAI-aYJXVs:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=8PZvgQ56nd0:8FAI-aYJXVs:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=8PZvgQ56nd0:8FAI-aYJXVs:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/8PZvgQ56nd0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/198961192019624387/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=198961192019624387" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/198961192019624387" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/198961192019624387" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/8PZvgQ56nd0/online-tool-url-decoder-encoder.html" title="Online tool Url Decoder / Encoder" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2010/10/online-tool-url-decoder-encoder.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-5455747556673763715</id><published>2010-07-09T05:21:00.010-04:00</published><updated>2010-10-13T02:21:52.719-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="modify cookie" /><category scheme="http://www.blogger.com/atom/ns#" term="update cookie" /><category scheme="http://www.blogger.com/atom/ns#" term="extend cookie expiration" /><category scheme="http://www.blogger.com/atom/ns#" term="expiration time" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp .Net" /><category scheme="http://www.blogger.com/atom/ns#" term="set cookie" /><category scheme="http://www.blogger.com/atom/ns#" term="change cookie" /><title type="text">Changing cookie expiration time</title><content type="html">Changing cookie expiration time is not straight forward. It is not as easy as setting the http cookie's property &lt;span style="font-style: italic;"&gt;Expires&lt;/span&gt; to required value as shown below.&lt;br /&gt;&lt;br /&gt;HttpContxt.Response.Cookies["UserID"].Expires = DateTime.Now.AddMinutes(20);&lt;br /&gt;&lt;br /&gt;I was using the above line of code in one of my projects as I wanted to make sure the cookie's expiration time gets updated for every user action. I added that line of code in the method where I check for authentication in each page request. But I was wondering with it's strange behavior as it is crashing the web page to load. I did spend some time on fixing it but got no luck.&lt;br /&gt;&lt;br /&gt;After a while I got the solution which is explained in an MSDN article &lt;a href="http://msdn.microsoft.com/en-us/library/ms178194.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms178194.aspx&lt;/a&gt;. As explained the article, we must recreate the cookie with value and expiration time as we normally do when adding a cookie. So changing cookie is not at all different from creating a cookie in the browser. Finally I changed  my code to recreate the cookie where updating cookie expiration time is needed. And it is perfectly working fine.&lt;br /&gt;&lt;br /&gt;The correct code it worked was:&lt;br /&gt;&lt;br /&gt;HttpContxt.Response.Cookies["UserID"].Value=  UserID;&lt;br /&gt;HttpContxt.Response.Cookies["UserID"].Expires =  DateTime.Now.AddMinutes(20);&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http://cherupally.blogspot.com/2010/07/changing-cookie-expiration-time.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2010%2f07%2fchanging-cookie-expiration-time.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-5455747556673763715?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=DB59K1iCTZ4:-CIzwrEqzA4:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=DB59K1iCTZ4:-CIzwrEqzA4:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=DB59K1iCTZ4:-CIzwrEqzA4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=DB59K1iCTZ4:-CIzwrEqzA4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=DB59K1iCTZ4:-CIzwrEqzA4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=DB59K1iCTZ4:-CIzwrEqzA4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=DB59K1iCTZ4:-CIzwrEqzA4:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=DB59K1iCTZ4:-CIzwrEqzA4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=DB59K1iCTZ4:-CIzwrEqzA4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=DB59K1iCTZ4:-CIzwrEqzA4:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=DB59K1iCTZ4:-CIzwrEqzA4:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=DB59K1iCTZ4:-CIzwrEqzA4:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=DB59K1iCTZ4:-CIzwrEqzA4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/DB59K1iCTZ4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/5455747556673763715/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=5455747556673763715" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/5455747556673763715" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/5455747556673763715" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/DB59K1iCTZ4/changing-cookie-expiration-time.html" title="Changing cookie expiration time" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2010/07/changing-cookie-expiration-time.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-977899874471660032</id><published>2010-06-01T20:57:00.011-04:00</published><updated>2010-10-13T02:21:24.074-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVChat" /><category scheme="http://www.blogger.com/atom/ns#" term="Red5" /><category scheme="http://www.blogger.com/atom/ns#" term="website" /><category scheme="http://www.blogger.com/atom/ns#" term="Streaming" /><category scheme="http://www.blogger.com/atom/ns#" term="audio recorder" /><category scheme="http://www.blogger.com/atom/ns#" term="Media Server" /><title type="text">Audio recorder in website</title><content type="html">One of our clients had a requirement having an audio recorder to be integrated with his website. He wanted record and playback features. This was challenging job to me and I did lot of research in this and finaly found one third party tool which serves exactly. The tool was FLV Audio Recorder developed by AVChat Software. You can get more details in it's website &lt;a href="http://flvar.com/"&gt;http://flvar.com/&lt;/a&gt;.&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;But this needs one the below media servers. Media servers are same as conventional web servers but they only deal with storing and streaming of videos, audios and images. Media servers use a different protocal called RTMP to accept the video/audio requests same as HTTP is used to accept various kinds of requests.&lt;/div&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Red5&lt;/li&gt;&lt;li&gt;FMIS&lt;/li&gt;&lt;li&gt;Wowza&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;The 1st media server listed above, Red5 is available for free and rest are expensive. I was interested to use Red5 as it was freely available.&lt;br /&gt;&lt;br /&gt;To integrate the audio recorder in website I did the following:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;I got the 30-day trial version of FLV audio recorder. We need to request for trial version by filling a small form and they will email us with the download details of trial product. This will include a license key which needs to be entered in the product.&lt;/li&gt;&lt;li&gt;I unzipped the archive and placed in some folder. And I created a virtual directory in IIS pointing to this folder. So I have verified all the files in audio recorder are accessed by webserver.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;I installed the Red5 media server as explained in the post &lt;a href="http://cherupally.blogspot.com/2010/06/installing-red5-on-windows.html"&gt;http://cherupally.blogspot.com/2010/06/installing-red5-on-windows.html&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;I followed the installation instructions provided in &lt;a href="http://flvar.com/documentation"&gt;http://flvar.com/documentation&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;I entered my license key in &lt;strong&gt;&lt;span style="font-weight: normal;"&gt;audiorecorder.properties file as instructed&lt;/span&gt;.&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;I changed the&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;strong style="font-weight: normal;"&gt;avc_settings.php file to point to my red5 server.&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;That's it. I am done with the integrating stuff. When I opened the audiorecorder-api.html file in browser I have noticed the audio recorder rendered in flash and functioning well.&lt;/li&gt;&lt;li&gt;After completing all steps you may not get the audio recorder working until you reboot the machine. I had to reboot my machine to see the recorder working.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_9y9twXlNhWY/TAXBCxfxEQI/AAAAAAAAB4I/UEg9MEPicvU/s1600/JAVA_HOME_Variable.JPG"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http://cherupally.blogspot.com/2010/07/changing-cookie-expiration-time.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2010%2f07%2fchanging-cookie-expiration-time.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-977899874471660032?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=xGIX5lXVLj0:J-38imHyMlE:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=xGIX5lXVLj0:J-38imHyMlE:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=xGIX5lXVLj0:J-38imHyMlE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=xGIX5lXVLj0:J-38imHyMlE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=xGIX5lXVLj0:J-38imHyMlE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=xGIX5lXVLj0:J-38imHyMlE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=xGIX5lXVLj0:J-38imHyMlE:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=xGIX5lXVLj0:J-38imHyMlE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=xGIX5lXVLj0:J-38imHyMlE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=xGIX5lXVLj0:J-38imHyMlE:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=xGIX5lXVLj0:J-38imHyMlE:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=xGIX5lXVLj0:J-38imHyMlE:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=xGIX5lXVLj0:J-38imHyMlE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/xGIX5lXVLj0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/977899874471660032/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=977899874471660032" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/977899874471660032" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/977899874471660032" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/xGIX5lXVLj0/audio-recorder-in-website.html" title="Audio recorder in website" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>3</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2010/06/audio-recorder-in-website.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-9006780678255696895</id><published>2010-10-05T06:09:00.004-04:00</published><updated>2010-10-13T02:04:18.119-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="performance" /><category scheme="http://www.blogger.com/atom/ns#" term="ajax" /><category scheme="http://www.blogger.com/atom/ns#" term="sitefinity" /><category scheme="http://www.blogger.com/atom/ns#" term="scriptmanager" /><category scheme="http://www.blogger.com/atom/ns#" term="script manager" /><title type="text">Sitefinity performance factor - script manager</title><content type="html">&lt;span style="font-family: arial;"&gt;If you are using sitefinity to build any website then while adding sitefinity inbuilt controls such as menu you will be forced to write Script Manager in the template (master file). If you use script manager anywhere in the website it will load lot of unwanted javascript files along with the target page. It is better we don’t write script manager in any website unless we are building a complex website which needs ajax framework and other javascript libraries. I recommend you manually add menu and menu items in code rather than using sitefinity navigation controls and for ajax calls please use jquery to make server requests. &lt;span style="font-weight: bold;"&gt;Not having script manager&lt;/span&gt; will reduce the amount of javascript resources to a siginificant number.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;And on our current project waypoint, we were not using any of the sitefinity inbuilt controls and not ajax framework too. But somehow we were having script manager written in the master file. And due to this it was loading around 350 KB javascript files which were never used by the site. And after I realised, I have removed the script manager tag and noticed a big surprise. The site is perfectly working without any issues and the overall page size was reduced from 500KB to 150KB (Avoiding 350KB for unwanted javascript files).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;So I would strongly recommend you to &lt;span style="font-weight: bold;"&gt;avoid writing Script Manager&lt;/span&gt; in your websites and find the alternate solution for that.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http://cherupally.blogspot.com/2010/10/sitefinity-performance-factor-script.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2010%2f10%2fsitefinity-performance-factor-script.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-9006780678255696895?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eX2gWgJXG2A:lQDbYksq4L0:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eX2gWgJXG2A:lQDbYksq4L0:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eX2gWgJXG2A:lQDbYksq4L0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=eX2gWgJXG2A:lQDbYksq4L0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eX2gWgJXG2A:lQDbYksq4L0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=eX2gWgJXG2A:lQDbYksq4L0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eX2gWgJXG2A:lQDbYksq4L0:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eX2gWgJXG2A:lQDbYksq4L0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=eX2gWgJXG2A:lQDbYksq4L0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eX2gWgJXG2A:lQDbYksq4L0:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eX2gWgJXG2A:lQDbYksq4L0:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=eX2gWgJXG2A:lQDbYksq4L0:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eX2gWgJXG2A:lQDbYksq4L0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/eX2gWgJXG2A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/9006780678255696895/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=9006780678255696895" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/9006780678255696895" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/9006780678255696895" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/eX2gWgJXG2A/sitefinity-performance-factor-script.html" title="Sitefinity performance factor - script manager" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2010/10/sitefinity-performance-factor-script.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-3454962608904803860</id><published>2009-11-05T23:50:00.009-05:00</published><updated>2010-09-14T02:07:31.088-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="new feature" /><category scheme="http://www.blogger.com/atom/ns#" term="Named arguments" /><category scheme="http://www.blogger.com/atom/ns#" term="Optional parameters" /><category scheme="http://www.blogger.com/atom/ns#" term="C sharp 4.0" /><category scheme="http://www.blogger.com/atom/ns#" term="c# 4.0" /><title type="text">C# 4.0 new features: Named and Optional arguments</title><content type="html">Microsoft has introduced few new features in C# 4.0. I would like to discuss the below listed new features in this post.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. Optional arguments&lt;/div&gt;&lt;div&gt;2. Named arguments&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Optional arguments:&lt;/b&gt; This feature allows you to omit arguments when calling methods. This is done by defining a method with assigning default values to parameters. For better understanding, let's take a look at the below example.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We define a method called "SomeMethod" by proving default values to two of its parameters as shown.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public void SomeMethod(int a, int b = 50, int c = 100);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now this method can be called in different ways as shown below.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SomeMethod(10, 30, 50); // This is a normal call as 3 arguments were passed&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SomeMethod(10, 30); // This call is omitting parameter "c". This call is equalant to SomeMethod(10, 30, 100)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SomeMethod(10); // This call is omitting both "b" and "c". This call is equalant to  SomeMethod(10, 50, 100)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As you see, we can omit any number of consecutive  parameters from right to left. In the above examples we omitted parameter "c" alone and parameters "b" and "c" together. Do you see a way to omit the parameter "b" in the above example? If you call the method "SomeMethod" by passing one argument as shown below, the compiler assumes that the argument passed was for the first parameter i.e, "a". So we need a way to tell the compiler that this argument was passed to a particular parameter, in this case it is "b". This requirement was fulfilled by c# 4.0's another new feature called "Named Arguments". Let's take a closer look at this feature.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Named Arguments:&lt;/b&gt; This feature allows you to pass the arguments by the corresponding parameter names.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For example you can pass the arguments by name as shown below.&lt;/div&gt;&lt;div&gt;SomeMethod(a:10, b:30, c:50);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;By this feature, we don't need to pass the arguments in the order of parameters defined in the method. We can rewrite the above method call as shown below.&lt;/div&gt;&lt;div&gt;SomeMethod(c:50, b:30, a:10);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And you can solve the above discussed problem (omitting the middle parameter "b") as shown below.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SomeMethod(a:10, c:50); // This call Omits the parameter "b".&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Optional and Named arguments features can also be applied to constructors. This feature is mainly useful where you have methods that have many number of parameters. Because it is very difficult to call a method by passing the parameters in same order as the method was defined. There are many possibilities to make mistakes in the order. So, having named parameters and the ability to pass parameters in any order by explicitly referring the parameter names will make our life easier. &lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f11%2fc-40-new-features-named-and-optional.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f11%2fc-40-new-features-named-and-optional.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/C-40-new-features-Named-and-Optional-arguments"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F11%2Fc-40-new-features-named-and-optional.html" style="border:0px" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-3454962608904803860?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=cfE5W1HDsXQ:RCwjCQAoyvE:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=cfE5W1HDsXQ:RCwjCQAoyvE:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=cfE5W1HDsXQ:RCwjCQAoyvE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=cfE5W1HDsXQ:RCwjCQAoyvE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=cfE5W1HDsXQ:RCwjCQAoyvE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=cfE5W1HDsXQ:RCwjCQAoyvE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=cfE5W1HDsXQ:RCwjCQAoyvE:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=cfE5W1HDsXQ:RCwjCQAoyvE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=cfE5W1HDsXQ:RCwjCQAoyvE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=cfE5W1HDsXQ:RCwjCQAoyvE:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=cfE5W1HDsXQ:RCwjCQAoyvE:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=cfE5W1HDsXQ:RCwjCQAoyvE:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=cfE5W1HDsXQ:RCwjCQAoyvE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/cfE5W1HDsXQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/3454962608904803860/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=3454962608904803860" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/3454962608904803860" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/3454962608904803860" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/cfE5W1HDsXQ/c-40-new-features-named-and-optional.html" title="C# 4.0 new features: Named and Optional arguments" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>6</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/11/c-40-new-features-named-and-optional.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-6045652559266716598</id><published>2010-06-01T23:16:00.005-04:00</published><updated>2010-09-14T01:49:45.624-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="video" /><category scheme="http://www.blogger.com/atom/ns#" term="install" /><category scheme="http://www.blogger.com/atom/ns#" term="Red5" /><category scheme="http://www.blogger.com/atom/ns#" term="Streaming" /><category scheme="http://www.blogger.com/atom/ns#" term="audio" /><category scheme="http://www.blogger.com/atom/ns#" term="Media Server" /><title type="text">Installing Red5 on windows</title><content type="html">Installing Red5 is easy as explained below.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Before installing  Red5 we need to make sure java is installed on the target machine.  Because Red5 needs to java.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;If java is not installed then  download the latest version of java and install it.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Make  sure the JAVA_HOME environment variable is set to the java installed  root directory.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;To set the environment variable, right click "My Computer" in start  menu/desktop and go to properties. Go to "Advanced" tab and there you will see  a button named "environment variables" at bottom. Clicking it will open  a dialog which will let you add your own variable. Click "New" button  in the top section i.e., User variables and int the popup eneter  JAVA_HOME for variable name and root directory of the java for variabl  value as shown below                                     &lt;img style="cursor: pointer; width: 400px; height: 379px;" src="http://4.bp.blogspot.com/_9y9twXlNhWY/TAXBCxfxEQI/AAAAAAAAB4I/UEg9MEPicvU/s400/JAVA_HOME_Variable.JPG" alt="" id="BLOGGER_PHOTO_ID_5477996775156551938" border="0" /&gt;&lt;/li&gt;&lt;li&gt;Now you are ready to install  the Red5. Download the latest version of Red5 from&lt;a href="http://code.google.com/p/red5/"&gt; http://code.google.com/p/red5/&lt;/a&gt;  and install it.&lt;/li&gt;&lt;li&gt;During the installation you may be asked to enter your ip  address and port number (for version &lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; "&gt;&lt;strong&gt;Red5 0.9.0 Final&lt;/strong&gt;&lt;/span&gt;) to run the http protocol for Red5. You can enter your ip  address or the dns name. But you must remember this as this is the one you need to use always. If you enter ip address during installation and  use dns name in application then it  will not work. You should use the one what you entered during installation. I don't  know the reason but I experienced this. But if you are not asked to enter IP address (for version &lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; "&gt;&lt;strong&gt;Red5 0.8.0 Final&lt;/strong&gt;)&lt;/span&gt; then there will be no issues with the dns name to access the server. In this case the default port number is 8080.&lt;/li&gt;&lt;li&gt;After Red5 installation is complete then you need to start  the service.&lt;/li&gt;&lt;li&gt;You can verify whether the Red5 is running and working fine  by browsing to http://ip_address:port_number in any browser. The  ip_address and port_numbers should be  same as the ones entered during installation. Or the dns name and default port number 8080 will work work in the second case explained in the above step. If  the server is working fine then you will be able to the server's home page which will talk  about some demos, etc.&lt;/li&gt;&lt;/ol&gt;  &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_9y9twXlNhWY/TAXBCxfxEQI/AAAAAAAAB4I/UEg9MEPicvU/s1600/JAVA_HOME_Variable.JPG"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-6045652559266716598?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=S2-G0Gf8Qho:Zna3nzRbWlY:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=S2-G0Gf8Qho:Zna3nzRbWlY:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=S2-G0Gf8Qho:Zna3nzRbWlY:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=S2-G0Gf8Qho:Zna3nzRbWlY:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=S2-G0Gf8Qho:Zna3nzRbWlY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=S2-G0Gf8Qho:Zna3nzRbWlY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=S2-G0Gf8Qho:Zna3nzRbWlY:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=S2-G0Gf8Qho:Zna3nzRbWlY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=S2-G0Gf8Qho:Zna3nzRbWlY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=S2-G0Gf8Qho:Zna3nzRbWlY:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=S2-G0Gf8Qho:Zna3nzRbWlY:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=S2-G0Gf8Qho:Zna3nzRbWlY:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=S2-G0Gf8Qho:Zna3nzRbWlY:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/S2-G0Gf8Qho" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/6045652559266716598/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=6045652559266716598" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/6045652559266716598" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/6045652559266716598" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/S2-G0Gf8Qho/installing-red5-on-windows.html" title="Installing Red5 on windows" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_9y9twXlNhWY/TAXBCxfxEQI/AAAAAAAAB4I/UEg9MEPicvU/s72-c/JAVA_HOME_Variable.JPG" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2010/06/installing-red5-on-windows.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-8252693395587450798</id><published>2010-02-12T02:06:00.010-05:00</published><updated>2010-03-10T00:29:10.081-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="parent page" /><category scheme="http://www.blogger.com/atom/ns#" term="user control" /><category scheme="http://www.blogger.com/atom/ns#" term="event handler" /><category scheme="http://www.blogger.com/atom/ns#" term="bubble up" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp .Net" /><title type="text">Bubbling up events from user control to parent page/control</title><content type="html">It is a good practice to use user controls when same controls are repeated in many pages. But there are some cases where the user control has some controls which generate events and those need to be handled by the containing page/user control. For eample there is a button control in the user control and you want to do something in parent page/control when the button in user control is clicked. In this case &lt;br /&gt;&lt;br /&gt;1.You need to define an event handler in user conrol as shown below.&lt;br /&gt;&lt;pre name="code" class="CSharp"&gt;&lt;br /&gt;public partial class UC_Pagination : System.Web.UI.UserControl&lt;br /&gt;{&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;public event EventHandler PageIndexChanged;&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;2. You need to call the event explicitly in the user control's implementation of the event handler of button click as shown here&lt;br /&gt;&lt;pre name="code" class="CSharp"&gt;&lt;br /&gt;public partial class UC_Pagination : System.Web.UI.UserControl&lt;br /&gt;{&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;    protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        ...&lt;br /&gt;        ...&lt;br /&gt;        PageIndexChanged(sender, e);&lt;br /&gt;        ...&lt;br /&gt;        ...&lt;br /&gt;    }&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;3. Implement the event handler bubbled up by user control in the parent page/control in its own way as usual (shown below).&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="CSharp"&gt;&lt;br /&gt;public partial class Coaches : System.Web.UI.Page&lt;br /&gt;{&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;    protected void ucPaginationPageIndexChanged(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        ...&lt;br /&gt;        ...&lt;br /&gt;        ...&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2010%2f02%2fbubbling-up-events-from-user-control-to.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2010%2f02%2fbubbling-up-events-from-user-control-to.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Bubbling-up-events-from-user-control-to-parent-pagecontrol"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2010%2F02%2Fbubbling-up-events-from-user-control-to.html" style="border:0px"/&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-8252693395587450798?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=nyKAumml4IY:qZuvmUlCQ_g:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=nyKAumml4IY:qZuvmUlCQ_g:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=nyKAumml4IY:qZuvmUlCQ_g:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=nyKAumml4IY:qZuvmUlCQ_g:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=nyKAumml4IY:qZuvmUlCQ_g:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=nyKAumml4IY:qZuvmUlCQ_g:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=nyKAumml4IY:qZuvmUlCQ_g:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=nyKAumml4IY:qZuvmUlCQ_g:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=nyKAumml4IY:qZuvmUlCQ_g:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=nyKAumml4IY:qZuvmUlCQ_g:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=nyKAumml4IY:qZuvmUlCQ_g:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=nyKAumml4IY:qZuvmUlCQ_g:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=nyKAumml4IY:qZuvmUlCQ_g:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/nyKAumml4IY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/8252693395587450798/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=8252693395587450798" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/8252693395587450798" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/8252693395587450798" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/nyKAumml4IY/bubbling-up-events-from-user-control-to.html" title="Bubbling up events from user control to parent page/control" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>4</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2010/02/bubbling-up-events-from-user-control-to.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-3848059947611424476</id><published>2010-02-12T00:25:00.011-05:00</published><updated>2010-03-10T00:22:37.599-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="custom paging" /><category scheme="http://www.blogger.com/atom/ns#" term="paging" /><category scheme="http://www.blogger.com/atom/ns#" term="take" /><category scheme="http://www.blogger.com/atom/ns#" term="skip" /><category scheme="http://www.blogger.com/atom/ns#" term="LINQ" /><title type="text">How to implement paging with LINQ</title><content type="html">Before going into how paging is implemented with LINQ, Let's discuss the need for implementing paging.&lt;br /&gt;&lt;br /&gt;With large amounts of data, it is not a good practice to pull all records from database when you are showing a fraction of them in one page. It is always recommended to use &lt;span style="font-weight: bold;"&gt;data on demand&lt;/span&gt; approach. When you want to show first 20 records out of the search results then you must get the first 20 records from database and discard the rest. Similarly when you want to show next 20 records of the search results then you need to get the next 20 records from database and discard the rest. This is nothing but called paging.&lt;br /&gt;&lt;br /&gt;LINQ has made the paging solution very simple as shown below example.&lt;br /&gt;&lt;pre name="code" class="Csharp"&gt;&lt;br /&gt;public List&amp;lt;Client&amp;gt; &lt;br /&gt;GetAllClients(bool? isActive, int pageNumber, int pageSize, out int totalPages)&lt;br /&gt;{&lt;br /&gt;//Actual query which returns large data&lt;br /&gt;var query = dataContext.Clients.Where(p =&gt; isActive == null || p.IsActive == isActive);&lt;br /&gt;&lt;br /&gt;//Calculating total number of pages by taking ceiling number of the fractional value&lt;br /&gt;totalPages = (int)Math.Ceiling((decimal)query.Count() / (decimal)pageSize);&lt;br /&gt;&lt;br /&gt;//Paging logic goes here&lt;br /&gt;return query.Skip((pageNumber - 1)*pageSize).Take(pageSize).ToList();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The parameters which play major role in paging are page number and page size. The page number is to identify the page of which the records to be returned. And the page size to identify the number of records to be returned. And there is another out parameter totalPages which is used to hold the total number of pages available within the data returned. This is needed to show the number of pages to the user and also useful in the logic which enables/disables page navigation.&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/How-to-implement-paging-with-LINQ"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2010%2F02%2Fhow-to-implement-paging-with-linq.html" style="border: 0px none ;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2010%2f02%2fhow-to-implement-paging-with-linq.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2010%2f02%2fhow-to-implement-paging-with-linq.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-3848059947611424476?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-pQ3OCk5jUw:5UdMfbE6Liw:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-pQ3OCk5jUw:5UdMfbE6Liw:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-pQ3OCk5jUw:5UdMfbE6Liw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=-pQ3OCk5jUw:5UdMfbE6Liw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-pQ3OCk5jUw:5UdMfbE6Liw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=-pQ3OCk5jUw:5UdMfbE6Liw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-pQ3OCk5jUw:5UdMfbE6Liw:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-pQ3OCk5jUw:5UdMfbE6Liw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=-pQ3OCk5jUw:5UdMfbE6Liw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-pQ3OCk5jUw:5UdMfbE6Liw:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-pQ3OCk5jUw:5UdMfbE6Liw:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=-pQ3OCk5jUw:5UdMfbE6Liw:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-pQ3OCk5jUw:5UdMfbE6Liw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/-pQ3OCk5jUw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/3848059947611424476/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=3848059947611424476" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/3848059947611424476" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/3848059947611424476" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/-pQ3OCk5jUw/how-to-implement-paging-with-linq.html" title="How to implement paging with LINQ" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2010/02/how-to-implement-paging-with-linq.html</feedburner:origLink></entry><entry><title type="text">Links for 2010-02-23 [del.icio.us]</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/omIhWg5RX_c/kcherupa" /><updated>2010-02-24T00:00:00-08:00</updated><id>http://del.icio.us/kcherupa#2010-02-23</id><content type="html">&lt;ul&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2010/02/how-to-implement-paging-with-linq.html"&gt;How to implement paging with LINQ&lt;/a&gt;&lt;br/&gt;
This is a nice post which explains custom paging with c# linq.&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/omIhWg5RX_c" height="1" width="1"/&gt;</content><feedburner:origLink>http://del.icio.us/kcherupa#2010-02-23</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-1089380527281976531</id><published>2009-12-19T08:36:00.011-05:00</published><updated>2010-01-18T06:01:48.492-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="local cache" /><category scheme="http://www.blogger.com/atom/ns#" term="management studio" /><category scheme="http://www.blogger.com/atom/ns#" term="cache" /><category scheme="http://www.blogger.com/atom/ns#" term="sql server 2008" /><category scheme="http://www.blogger.com/atom/ns#" term="intellisense" /><category scheme="http://www.blogger.com/atom/ns#" term="refresh" /><title type="text">How to get Sql server 2008 intellisense working for schema changes</title><content type="html">The new feature "intellisense" added in sql server 2008 is making my life easier. And I am enjoying this feature a lot. But I noticed many times that when we make any changes to DB schema like creating / modifying database objects (tables, sprocs, ...) we don't notice the schema changes in intellisense in the same session. This made me too bad and many times I cursed Microsoft for this inclomplete feature. But after making some research on this, I have found the solution to get intellisense for new schema changes in current session.&lt;br /&gt;&lt;br /&gt;Actually what happens when you connect to sql server 2008 using sql server management studio is, it queries for the current database schema and saves it somewhere. And It uses this schema information for showing the intellisense when the user is writing queries. But when we create/update the sql objects (sprocs, tables, views, ...) these won't be updated and the intellisense is pulled from old schema. That's why we don't notice the schema changes in intellisense unless we explicitly refresh the cache. In order to get new chema changes we must clear the intellisense cache.&lt;br /&gt;&lt;br /&gt;To clear the intellisense cache we need to click Edit -&gt; Intellisense -&gt; RefreshLocalCache in sql server 2008 management studio as shown in below screen.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_9y9twXlNhWY/SyzYtOCB-5I/AAAAAAAAB2I/2w_slbAROn8/s1600-h/ClrearSqlIntelliSenseCache.png"&gt;&lt;img style="width: 369px; height: 400px;" id="BLOGGER_PHOTO_ID_5416942723192191890" alt="" src="http://4.bp.blogspot.com/_9y9twXlNhWY/SyzYtOCB-5I/AAAAAAAAB2I/2w_slbAROn8/s400/ClrearSqlIntelliSenseCache.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://dotnetshoutout.com/How-to-get-Sql-server-2008-intellisense-working-for-new-schema-changes" rev="vote-for"&gt;&lt;img style="border: 0px none ;" alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F12%2Fhow-to-get-sql-server-2008-intellisense.html" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f12%2fhow-to-get-sql-server-2008-intellisense.html"&gt;&lt;img alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f12%2fhow-to-get-sql-server-2008-intellisense.html" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-1089380527281976531?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-Nu4aa8fZTo:AqcF-DLEM3g:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-Nu4aa8fZTo:AqcF-DLEM3g:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-Nu4aa8fZTo:AqcF-DLEM3g:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=-Nu4aa8fZTo:AqcF-DLEM3g:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-Nu4aa8fZTo:AqcF-DLEM3g:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=-Nu4aa8fZTo:AqcF-DLEM3g:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-Nu4aa8fZTo:AqcF-DLEM3g:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-Nu4aa8fZTo:AqcF-DLEM3g:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=-Nu4aa8fZTo:AqcF-DLEM3g:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-Nu4aa8fZTo:AqcF-DLEM3g:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-Nu4aa8fZTo:AqcF-DLEM3g:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=-Nu4aa8fZTo:AqcF-DLEM3g:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=-Nu4aa8fZTo:AqcF-DLEM3g:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/-Nu4aa8fZTo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/1089380527281976531/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=1089380527281976531" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/1089380527281976531" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/1089380527281976531" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/-Nu4aa8fZTo/how-to-get-sql-server-2008-intellisense.html" title="How to get Sql server 2008 intellisense working for schema changes" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_9y9twXlNhWY/SyzYtOCB-5I/AAAAAAAAB2I/2w_slbAROn8/s72-c/ClrearSqlIntelliSenseCache.png" height="72" width="72" /><thr:total>8</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/12/how-to-get-sql-server-2008-intellisense.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-5633325306149666259</id><published>2009-05-06T07:07:00.001-04:00</published><updated>2010-01-11T05:25:40.011-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="temporary table" /><category scheme="http://www.blogger.com/atom/ns#" term="tempdb" /><category scheme="http://www.blogger.com/atom/ns#" term="temp table" /><category scheme="http://www.blogger.com/atom/ns#" term="table variable" /><category scheme="http://www.blogger.com/atom/ns#" term="pound" /><title type="text">How to create temporary table in sql server 2005?</title><content type="html">The syntax to create a temporary table is exactly same as the syntax to create a normal table. But the difference is the table name is prefixed with '#' (pound). By looking at the prefix '#' the sql server understands that it is a temporary table.  The following code demonstrates how to create a temporary variable.&lt;br /&gt;&lt;br /&gt;CREATE TABLE #Customer&lt;br /&gt;(&lt;br /&gt;CustomerID int identity(1,1),&lt;br /&gt;CustomerName varchar(100),&lt;br /&gt;CompanyName varchar(100),&lt;br /&gt;Address varchar(250)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Important points about temporary tables&lt;/span&gt;:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;It is almost similar to normal table with very few exceptions.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The scope of the temp table is the current connection session. It can be accessed from any where in same connection session.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;This table is automatically dropped when the connection session is closed.&lt;/li&gt;&lt;li&gt;Different connection sessions creating temporary table with same name will create different copies of the temporary table with the same name. Actually internally the table name is appended with a unique number to support many connection  sessions creating tables with same name. You can notice how the table name is uniquely maintained by sql server by running this query.&lt;span style="color: rgb(51, 51, 255);"&gt; select * from information_schema.tables where table_name like '%customer%'&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;foreign key relations cannot be applied to temp tables.&lt;/li&gt;&lt;li&gt;Optionally you may drop the table at the end of it's use. It is a good practice to drop any temporary table after use. &lt;span style="color: rgb(51, 51, 255);"&gt;drop table #Customer&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;When you create a temporary table it will be created in tempdb. At the time of table creation the tempdb is locked and hence there is some overhead involved using this. If there are less than 100 records then using temporary tables is not recommended. In such cases you can use table variables which are stored in memory rather than in database(on disk). To learn more about table variables please read this&lt;br /&gt;&lt;a href="http://cherupally.blogspot.com/2009/05/table-variables-in-sql-server-2005.html"&gt;http://cherupally.blogspot.com/2009/05/table-variables-in-sql-server-2005.html&lt;/a&gt;&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/How-to-create-temporary-table-in-sql-server-2005"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F05%2Fhow-to-create-temporary-table-in-sql.html" style="border: 0px none ;" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-5633325306149666259?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=hdlgqV33hyc:S0HdOdQIH58:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=hdlgqV33hyc:S0HdOdQIH58:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=hdlgqV33hyc:S0HdOdQIH58:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=hdlgqV33hyc:S0HdOdQIH58:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=hdlgqV33hyc:S0HdOdQIH58:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=hdlgqV33hyc:S0HdOdQIH58:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=hdlgqV33hyc:S0HdOdQIH58:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=hdlgqV33hyc:S0HdOdQIH58:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=hdlgqV33hyc:S0HdOdQIH58:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=hdlgqV33hyc:S0HdOdQIH58:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=hdlgqV33hyc:S0HdOdQIH58:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=hdlgqV33hyc:S0HdOdQIH58:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=hdlgqV33hyc:S0HdOdQIH58:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/hdlgqV33hyc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/5633325306149666259/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=5633325306149666259" title="10 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/5633325306149666259" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/5633325306149666259" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/hdlgqV33hyc/how-to-create-temporary-table-in-sql.html" title="How to create temporary table in sql server 2005?" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>10</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/05/how-to-create-temporary-table-in-sql.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-5228436652497171247</id><published>2009-05-06T08:48:00.001-04:00</published><updated>2010-01-11T05:22:00.750-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="temporary table" /><category scheme="http://www.blogger.com/atom/ns#" term="batch" /><category scheme="http://www.blogger.com/atom/ns#" term="tsql" /><category scheme="http://www.blogger.com/atom/ns#" term="Memory" /><category scheme="http://www.blogger.com/atom/ns#" term="variable" /><category scheme="http://www.blogger.com/atom/ns#" term="scope" /><category scheme="http://www.blogger.com/atom/ns#" term="drop" /><category scheme="http://www.blogger.com/atom/ns#" term="table" /><category scheme="http://www.blogger.com/atom/ns#" term="syntax" /><category scheme="http://www.blogger.com/atom/ns#" term="table variable" /><category scheme="http://www.blogger.com/atom/ns#" term="declare" /><title type="text">table variables in sql server 2005</title><content type="html">Table variable is almost similar to the temporary table in sql server 2005. Table variables are replacement to temporary tables. The following syntax shows how to define a table variable.&lt;br /&gt;&lt;br /&gt;declare @Customer table&lt;br /&gt;(&lt;br /&gt;CustomerID int identity(1,1),&lt;br /&gt;CustomerName varchar(100),&lt;br /&gt;CompanyName varchar(100),&lt;br /&gt;Address varchar(250)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;You can notice the syntax to define a table variable is similar to the syntax to normal table definition. &lt;span style="font-style: italic;"&gt;declare&lt;/span&gt; keyword is used in place of &lt;span style="font-style: italic;"&gt;create&lt;/span&gt; keyword. And table name is prefixed with '@' as all tsql variables do.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Table variables are stored in memory rather than in database. &lt;/li&gt;&lt;li&gt;Querying table variables is very fast as there are no disk reads needed. &lt;/li&gt;&lt;li&gt;The scope the table variables is same as other tsql variables. i.e, within statements batch or sproc&lt;/li&gt;&lt;li&gt;Table variables cannot be dropped as they are automatically disappeared when they  reach out scope&lt;/li&gt;&lt;li&gt;As explained above all the data in table variables is stored in server's memory. So if there is huge data then it is not recommended to use table variables to avoid memory overhead.&lt;/li&gt;&lt;li&gt;If the number of records is more than 100 then it is recommended to use temporary tables. To learn more about temporary tables please readi this blog post &lt;a href="http://cherupally.blogspot.com/2009/05/how-to-create-temporary-table-in-sql.html"&gt;http://cherupally.blogspot.com/2009/05/how-to-create-temporary-table-in-sql.html&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Table-variables-in-sql-server-2005"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F05%2Ftable-variables-in-sql-server-2005.html" style="border: 0px none ;" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-5228436652497171247?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V0BHTyQSvoE:43CazgAh1zM:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V0BHTyQSvoE:43CazgAh1zM:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V0BHTyQSvoE:43CazgAh1zM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=V0BHTyQSvoE:43CazgAh1zM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V0BHTyQSvoE:43CazgAh1zM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=V0BHTyQSvoE:43CazgAh1zM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V0BHTyQSvoE:43CazgAh1zM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V0BHTyQSvoE:43CazgAh1zM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=V0BHTyQSvoE:43CazgAh1zM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V0BHTyQSvoE:43CazgAh1zM:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V0BHTyQSvoE:43CazgAh1zM:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=V0BHTyQSvoE:43CazgAh1zM:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=V0BHTyQSvoE:43CazgAh1zM:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/V0BHTyQSvoE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/5228436652497171247/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=5228436652497171247" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/5228436652497171247" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/5228436652497171247" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/V0BHTyQSvoE/table-variables-in-sql-server-2005.html" title="table variables in sql server 2005" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>3</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/05/table-variables-in-sql-server-2005.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-1927974773562071221</id><published>2009-05-04T07:13:00.001-04:00</published><updated>2009-12-15T00:42:28.022-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="output param" /><category scheme="http://www.blogger.com/atom/ns#" term="tsql" /><category scheme="http://www.blogger.com/atom/ns#" term="custom paging" /><category scheme="http://www.blogger.com/atom/ns#" term="common table expression" /><category scheme="http://www.blogger.com/atom/ns#" term="cte" /><category scheme="http://www.blogger.com/atom/ns#" term="dynamic query" /><category scheme="http://www.blogger.com/atom/ns#" term="sorting" /><category scheme="http://www.blogger.com/atom/ns#" term="over" /><category scheme="http://www.blogger.com/atom/ns#" term="row_number" /><category scheme="http://www.blogger.com/atom/ns#" term="with" /><category scheme="http://www.blogger.com/atom/ns#" term="SPROC" /><category scheme="http://www.blogger.com/atom/ns#" term="sp_executesql" /><title type="text">Implementing Custom Paging, Sorting and Dynamic query in sql</title><content type="html">This post explains and demonstrates how to implement following things&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Custom Paging: Returning a set of records for the given page number and page size&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Dynamic query: Querying based on the &lt;span style="font-weight: bold;"&gt;where string&lt;/span&gt; passed thru parameter&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Dynamic sorting: Sorting based on the &lt;span style="font-weight: bold;"&gt;sort expression&lt;/span&gt; passed thru parameter&lt;br /&gt;&lt;/li&gt;&lt;li&gt;SP_ExecuteSql: Executing sql statements included within parameters&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Common Table Expression: Similar to table variable&lt;/li&gt;&lt;li&gt;function row_number(): returns the current row number in a result set&lt;/li&gt;&lt;/ol&gt;The following code is to create the stored procedure GetCustomersByPage. This stored procedure accepts the parameters page size, page number to return the page, where string (It must start with 'and' keyword if a condition is added. Ex: " and CompanyName like '%soft%' " or empty is accepted but applies no filter), sort expression to get the sorted records and total count which is useful when implementing the paging logic in user interface.&lt;br /&gt;&lt;br /&gt;The sample sproc is written for NorthWind database. If you have NorthWind database installed then you can run this sproc and see how it works.&lt;br /&gt;&lt;br /&gt;create procedure GetCustomersByPage&lt;br /&gt;@PageSize int,&lt;br /&gt;@PageNumber int,&lt;br /&gt;@WhereString varchar(max),&lt;br /&gt;@SortExpression varchar(200),&lt;br /&gt;@TotalCount int output&lt;br /&gt;as&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;declare @FirstRecord int&lt;br /&gt;declare @LastRecord int&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;set @FirstRecord = (((@PageNumber - 1) * @PageSize) + 1)&lt;br /&gt;set @LastRecord = (@PageNumber * @PageSize)&lt;br /&gt;&lt;br /&gt;declare @sql nvarchar(max)&lt;br /&gt;DECLARE @ParmDefinition NVARCHAR(500)&lt;br /&gt;SET @ParmDefinition=N'@TotalCount int OUTPUT'&lt;br /&gt;&lt;br /&gt;set @sql = 'select @TotalCount = count(*) from dbo.Customers where 1=1 '+@WhereString+';&lt;br /&gt;with PagedCustomers as (select row_number() over(order by '+@SortExpression+') as RowNumber, * from dbo.Customers where 1=1 '+@WhereString+')&lt;br /&gt;SELECT * from PagedCustomers where RowNumber between '+cast(@FirstRecord as varchar)+'and '+cast(@LastRecord as varchar)&lt;br /&gt;&lt;br /&gt;exec sp_executesql @sql, @ParmDefinition, @TotalCount=@TotalCount output&lt;br /&gt;&lt;br /&gt;return @TotalCount&lt;br /&gt;end&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Implementing-Custom-Paging-Sorting-and-Dynamic-query-in-sql"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F05%2Fimplementing-custom-paging-sorting-and.html" style="border:0px" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-1927974773562071221?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NpqP02WnCzI:ILvUZxnBNMQ:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NpqP02WnCzI:ILvUZxnBNMQ:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NpqP02WnCzI:ILvUZxnBNMQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=NpqP02WnCzI:ILvUZxnBNMQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NpqP02WnCzI:ILvUZxnBNMQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=NpqP02WnCzI:ILvUZxnBNMQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NpqP02WnCzI:ILvUZxnBNMQ:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NpqP02WnCzI:ILvUZxnBNMQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=NpqP02WnCzI:ILvUZxnBNMQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NpqP02WnCzI:ILvUZxnBNMQ:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NpqP02WnCzI:ILvUZxnBNMQ:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=NpqP02WnCzI:ILvUZxnBNMQ:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NpqP02WnCzI:ILvUZxnBNMQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/NpqP02WnCzI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/1927974773562071221/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=1927974773562071221" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/1927974773562071221" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/1927974773562071221" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/NpqP02WnCzI/implementing-custom-paging-sorting-and.html" title="Implementing Custom Paging, Sorting and Dynamic query in sql" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/05/implementing-custom-paging-sorting-and.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-678238002988632256</id><published>2009-06-16T03:42:00.005-04:00</published><updated>2009-12-15T00:34:53.398-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="synchronization" /><category scheme="http://www.blogger.com/atom/ns#" term="sync" /><category scheme="http://www.blogger.com/atom/ns#" term="offline" /><category scheme="http://www.blogger.com/atom/ns#" term="occationally connected" /><category scheme="http://www.blogger.com/atom/ns#" term="ado.net" /><category scheme="http://www.blogger.com/atom/ns#" term="framework" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><category scheme="http://www.blogger.com/atom/ns#" term="synch" /><category scheme="http://www.blogger.com/atom/ns#" term="microsoft" /><title type="text">Occasionally Connected Systems Sync Framework</title><content type="html">Every one of us must have realized that there should be a system which allows us to work offline and online. Nowadays most of the people started using laptops and working remotely. So we got a need of a framework which lets the developers build applications to sync the offline changes with the server.&lt;br /&gt;&lt;br /&gt;Fortunately Microsoft has released this kind of framework which is called Microsoft Sync Framework. This enables the developers to build applications with the ability to sync the files in file system, table records in the database between two machines.&lt;br /&gt;&lt;br /&gt;For more details on microsoft sync framework please read the following.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a id="ctl00_mainContentContainer_ctl01_ctl03" onclick="javascript:Track('ctl00_mainContentContainer_ctl01_ctl01|ctl00_mainContentContainer_ctl01_ctl03',this);" title="Sync Framework Overview" href="http://msdn.microsoft.com/en-us/sync/bb821992.aspx"&gt;&lt;strong&gt;Sync Framework Overview&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="ctl00_mainContentContainer_ctl01_ctl04" onclick="javascript:Track('ctl00_mainContentContainer_ctl01_ctl01|ctl00_mainContentContainer_ctl01_ctl04',this);" title="Introduction to Occasionally Connected Database Synchronization" href="http://msdn.microsoft.com/en-us/sync/bb887608.aspx"&gt;&lt;strong&gt;Introduction to Occasionally Connected Database Synchronization&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="ctl00_mainContentContainer_ctl01_ctl05" onclick="javascript:Track('ctl00_mainContentContainer_ctl01_ctl01|ctl00_mainContentContainer_ctl01_ctl05',this);" title="Introduction to File Synchronization" href="http://msdn.microsoft.com/en-us/sync/bb887623.aspx"&gt;&lt;strong&gt;Introduction to File Synchronization&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f06%2foccasionally-connected-systems-sync.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f06%2foccasionally-connected-systems-sync.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-678238002988632256?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=HHPTvi9fKxs:KLhxVKGK604:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=HHPTvi9fKxs:KLhxVKGK604:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=HHPTvi9fKxs:KLhxVKGK604:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=HHPTvi9fKxs:KLhxVKGK604:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=HHPTvi9fKxs:KLhxVKGK604:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=HHPTvi9fKxs:KLhxVKGK604:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=HHPTvi9fKxs:KLhxVKGK604:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=HHPTvi9fKxs:KLhxVKGK604:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=HHPTvi9fKxs:KLhxVKGK604:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=HHPTvi9fKxs:KLhxVKGK604:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=HHPTvi9fKxs:KLhxVKGK604:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=HHPTvi9fKxs:KLhxVKGK604:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=HHPTvi9fKxs:KLhxVKGK604:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/HHPTvi9fKxs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/678238002988632256/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=678238002988632256" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/678238002988632256" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/678238002988632256" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/HHPTvi9fKxs/occasionally-connected-systems-sync.html" title="Occasionally Connected Systems Sync Framework" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/06/occasionally-connected-systems-sync.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-2919301623150135534</id><published>2009-08-28T00:58:00.007-04:00</published><updated>2009-12-15T00:29:46.839-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="web.config" /><category scheme="http://www.blogger.com/atom/ns#" term="sql server mode" /><category scheme="http://www.blogger.com/atom/ns#" term="sql server" /><category scheme="http://www.blogger.com/atom/ns#" term="mode" /><category scheme="http://www.blogger.com/atom/ns#" term="session" /><category scheme="http://www.blogger.com/atom/ns#" term="session state" /><category scheme="http://www.blogger.com/atom/ns#" term="aspnetdb" /><category scheme="http://www.blogger.com/atom/ns#" term="state server" /><category scheme="http://www.blogger.com/atom/ns#" term="Asp .Net" /><category scheme="http://www.blogger.com/atom/ns#" term="aspstate" /><title type="text">Problems in configuring sql server for session mode sql server</title><content type="html">Before going to details let me explain my experience on this. I was working on a project which pushed us to use bulky data in session. So we thought that it wouldn't be reliable to use the session in "InProc" mode as the asp.net worker process consumes lot of RAM and leads to crash the service. To avoid this we decided to use the session state in sql server mode. Telling the asp.net application to use sql server for session state is easy as shown below.&lt;br /&gt;&lt;sessionstate mode="SQLServer" sqlconnectionstring="Data Source=SqlServer;uid=username;pwd=password" timeout="20"&gt;&lt;br /&gt;&lt;br /&gt;But to make the above to work, we need to setup the sql server which is mentioned in connection string above. To do this, I did the following steps mentioned in some article found in Google search.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt; Find the file 'aspnet_regsql.exe' in the location 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727'.&lt;/li&gt;&lt;li&gt;Run the aspnet_regsql.exe.&lt;/li&gt;&lt;li&gt;Follow the wizard with all default values till the wizard finishes.&lt;/li&gt;&lt;li&gt;Verify that a new database is created in the sql server.&lt;/li&gt;&lt;/ol&gt;It all looked perfect for me and when I tested my application I got an error saying "Cannot open database requested in login 'ASPState'. The asp.net framework was look for the database 'ASPState' but when I looked at the sql server I have noticed that the setup has created 'aspnetdb' instead of 'ASPState'. Then I have changed the config to use the database 'aspnetdb' as show below.&lt;br /&gt;    &lt;sessionstate mode="SQLServer" allowcustomsqldatabase="true" sqlconnectionstring="Data Source=sqlserver;Initial Catalog=aspnetdb;uid=username;pwd=password" timeout="20"&gt;&lt;br /&gt;&lt;br /&gt;This time I got a different exception.&lt;br /&gt;"Unable to use SQL Server because ASP.NET version 2.0 Session State is not installed on the SQL server. Please install ASP.NET Session State SQL Server version 2.0 or above."&lt;br /&gt;&lt;br /&gt;To solve these problems I did a long research and found a way.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Open command prompt&lt;/li&gt;&lt;li&gt;Change the current directory to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727'.&lt;/li&gt;&lt;li&gt;Run &lt;span&gt;&lt;strong&gt;aspnet_regsql.exe -S SqlServer -E -ssadd -sstype p&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;You will notice the database 'ASPState' created in the sql server give&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;That's it. &lt;/span&gt;&lt;span&gt;Your application is&lt;/span&gt;&lt;span&gt; ready to use  the sql server to store the session state.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/sessionstate&gt;&lt;/sessionstate&gt;&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Solving-problems-in-configuring-sql-server-for-session-mode-sql-server"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F08%2Fproblems-in-configuring-sql-server-for.html" style="border:0px" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-2919301623150135534?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=LiPVdpZuLEE:As8TS6OfKDk:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=LiPVdpZuLEE:As8TS6OfKDk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=LiPVdpZuLEE:As8TS6OfKDk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=LiPVdpZuLEE:As8TS6OfKDk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=LiPVdpZuLEE:As8TS6OfKDk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=LiPVdpZuLEE:As8TS6OfKDk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=LiPVdpZuLEE:As8TS6OfKDk:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=LiPVdpZuLEE:As8TS6OfKDk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=LiPVdpZuLEE:As8TS6OfKDk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=LiPVdpZuLEE:As8TS6OfKDk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=LiPVdpZuLEE:As8TS6OfKDk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=LiPVdpZuLEE:As8TS6OfKDk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=LiPVdpZuLEE:As8TS6OfKDk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/LiPVdpZuLEE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/2919301623150135534/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=2919301623150135534" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/2919301623150135534" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/2919301623150135534" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/LiPVdpZuLEE/problems-in-configuring-sql-server-for.html" title="Problems in configuring sql server for session mode sql server" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/08/problems-in-configuring-sql-server-for.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-2433551562351951037</id><published>2009-09-25T02:53:00.005-04:00</published><updated>2009-12-15T00:23:32.010-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="only date" /><category scheme="http://www.blogger.com/atom/ns#" term="datetime" /><category scheme="http://www.blogger.com/atom/ns#" term="Sql" /><category scheme="http://www.blogger.com/atom/ns#" term="strip time" /><title type="text">Easy way to strip time part in sql date time</title><content type="html">Most of the times we wouldn't want the time part of the dates to be stored or retrieved when dealing with only days. But the data type "datetime" in sql always includes the time even though you don't want it. There is no other data type in sql to store or retrieve the date without time. In this case we need to strip the time part from the date and store the remaining in database. To do this favor, I have come up with the below sql code which strips the time part from the date time.&lt;br /&gt;&lt;br /&gt;declare @date datetime;&lt;br /&gt;set @date = getdate();&lt;br /&gt;select&lt;span style="color: rgb(0, 153, 0);"&gt; cast(convert(varchar, @date, 101) as datetime) --Strips time element from the date time&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;The above code will work like this:&lt;br /&gt;If you have the date time 25/09/2009 12:36:40:654 then this will be converted as &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;25/09/2009 00:00:00:000&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f09%2feasy-way-to-strip-time-part-in-sql-date.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f09%2feasy-way-to-strip-time-part-in-sql-date.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Easy-way-to-strip-time-part-in-sql-date-time"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F09%2Feasy-way-to-strip-time-part-in-sql-date.html" style="border:0px" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-2433551562351951037?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=5m3klxBofTw:bVpirQiSoPw:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=5m3klxBofTw:bVpirQiSoPw:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=5m3klxBofTw:bVpirQiSoPw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=5m3klxBofTw:bVpirQiSoPw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=5m3klxBofTw:bVpirQiSoPw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=5m3klxBofTw:bVpirQiSoPw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=5m3klxBofTw:bVpirQiSoPw:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=5m3klxBofTw:bVpirQiSoPw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=5m3klxBofTw:bVpirQiSoPw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=5m3klxBofTw:bVpirQiSoPw:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=5m3klxBofTw:bVpirQiSoPw:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=5m3klxBofTw:bVpirQiSoPw:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=5m3klxBofTw:bVpirQiSoPw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/5m3klxBofTw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/2433551562351951037/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=2433551562351951037" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/2433551562351951037" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/2433551562351951037" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/5m3klxBofTw/easy-way-to-strip-time-part-in-sql-date.html" title="Easy way to strip time part in sql date time" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/09/easy-way-to-strip-time-part-in-sql-date.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-7104925892090388513</id><published>2009-09-10T01:23:00.015-04:00</published><updated>2009-12-09T00:28:50.929-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="visual studio" /><category scheme="http://www.blogger.com/atom/ns#" term="service" /><category scheme="http://www.blogger.com/atom/ns#" term="create" /><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><category scheme="http://www.blogger.com/atom/ns#" term="project installer" /><category scheme="http://www.blogger.com/atom/ns#" term="windows service" /><category scheme="http://www.blogger.com/atom/ns#" term="installutil" /><category scheme="http://www.blogger.com/atom/ns#" term="win 32 service" /><category scheme="http://www.blogger.com/atom/ns#" term="project" /><title type="text">How to create a windows service in dot net framework</title><content type="html">Windows service is an application which always runs in background.  We can view all the installed windows services in ControlPanel/Administrativetools/Services. Sql server, Oracle, ... are the good examples of windows service.&lt;br /&gt;&lt;br /&gt;Using visual studio it is very easy to create windows service. Please follow the below steps to create a windows service.&lt;img src="file:///C:/DOCUME%7E1/KIRAN%7E1.CHE/LOCALS%7E1/Temp/moz-screenshot-1.png" alt="" /&gt;&lt;ol&gt;&lt;li&gt;Open visual studio and create a new project of template "Windows Service" as shown below&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_9y9twXlNhWY/SqiQn7bQbGI/AAAAAAAABzY/2WtfcMunzsw/s1600-h/Create+Windows+Service.JPG"&gt;&lt;img style="cursor: pointer; width: 400px; height: 287px;" src="http://2.bp.blogspot.com/_9y9twXlNhWY/SqiQn7bQbGI/AAAAAAAABzY/2WtfcMunzsw/s400/Create+Windows+Service.JPG" alt="" id="BLOGGER_PHOTO_ID_5379708770535369826" border="0" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;After you click OK in the above step you will see a new solution named "WindowsService1" created as shown below.                                         &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_9y9twXlNhWY/SqiS_yvIrCI/AAAAAAAABzg/g6jetkiS-xI/s1600-h/BlankWindowsService.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 238px;" src="http://2.bp.blogspot.com/_9y9twXlNhWY/SqiS_yvIrCI/AAAAAAAABzg/g6jetkiS-xI/s400/BlankWindowsService.png" alt="" id="BLOGGER_PHOTO_ID_5379711379542944802" border="0" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Right click on the above screen and click "Add Installer". This will create an installer component which helps us in &lt;img src="file:///C:/DOCUME%7E1/KIRAN%7E1.CHE/LOCALS%7E1/Temp/moz-screenshot-3.png" alt="" /&gt;&lt;img src="file:///C:/DOCUME%7E1/KIRAN%7E1.CHE/LOCALS%7E1/Temp/moz-screenshot-2.png" alt="" /&gt;installing this service.&lt;/li&gt;&lt;li&gt;You can notice a new component "ProjectInstaller.cs" added and opened as shown below. It has 2 controls "ServiceProcessInstaller1" and "ServiceInstaller1".                                    &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_9y9twXlNhWY/SqiUjc9lAdI/AAAAAAAABzo/JKv2RB9dLJ8/s1600-h/ProjectInstaller.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 238px;" src="http://1.bp.blogspot.com/_9y9twXlNhWY/SqiUjc9lAdI/AAAAAAAABzo/JKv2RB9dLJ8/s400/ProjectInstaller.png" alt="" id="BLOGGER_PHOTO_ID_5379713091684860370" border="0" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;You can set whether this service is manual, automatic, or disabled by changing the StartType property of "ServiceInstaller1" (Right click -&gt; Properties).&lt;/li&gt;&lt;li&gt;Change the "ServiceProcessInstaller1"'s property "Account" to "LocalSystem"&lt;/li&gt;&lt;li&gt;Right click on Service1.cs in solution explorer and click "View Code"&lt;/li&gt;&lt;li&gt;In code you will see the service event handlers "OnStart", "OnStop".&lt;/li&gt;&lt;li&gt;Write code that initiates a thread in OnStart event handler.&lt;/li&gt;&lt;li&gt;Write code that stops execution of the thread in OnStop event handler.&lt;/li&gt;&lt;li&gt;Please see below for sample code                                                                         &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_9y9twXlNhWY/SqiYx1zr_-I/AAAAAAAABzw/KYGB6xWISgQ/s1600-h/Service1.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 238px;" src="http://1.bp.blogspot.com/_9y9twXlNhWY/SqiYx1zr_-I/AAAAAAAABzw/KYGB6xWISgQ/s400/Service1.png" alt="" id="BLOGGER_PHOTO_ID_5379717736918941666" border="0" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Build the solution. You have the windows service built ready.&lt;/li&gt;&lt;li&gt;But until we install this service we cannot see it is running or not.&lt;/li&gt;&lt;li&gt;To install this service you need to open the Visual Studio 2005/2008 Command prompt in Start-&gt;Visual Studio 2005/2008-&gt;Visual Studio Tools&lt;/li&gt;&lt;li&gt;Run the command : InstallUtil.exe Windows_Service_EXE_Full_Path&lt;/li&gt;&lt;li&gt;Here Windows_Service_EXE_Full_Path is the exe generated for the WindowsService1 project. Let's say the full path of the exe is C:/WindowsService1/Bin/Debug/WindowsService1.exe then our command to install it would be like this.&lt;/li&gt;&lt;li&gt;InstallUtil.exe C:/WindowsService1/Bin/Debug/WindowsService1.exe&lt;/li&gt;&lt;li&gt;If the above command is successful then you will notice a new service named "Service1" is shown in Control Panel-&gt;Administrative Tools/Services&lt;br /&gt;&lt;/li&gt;&lt;li&gt;To uninstall a service, InstallUtil.exe -u C:/WindowsService1/Bin/Debug/WindowsService1.exe&lt;/li&gt;&lt;li&gt;To make the life easier to install/uninstall windows services we can create a setup project which will let people easily install/uninstall with a wizard Please read this link. &lt;a href="http://cherupally.blogspot.com/2009/09/how-to-create-setup-project-to-install.html"&gt;http://cherupally.blogspot.com/2009/09/how-to-create-setup-project-to-install.html&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f09%2fhow-to-create-windows-service-in-dot.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f09%2fhow-to-create-windows-service-in-dot.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/How-to-create-a-windows-service-in-dot-net-framework"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F09%2Fhow-to-create-windows-service-in-dot.html" style="border:0px"/&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-7104925892090388513?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=l2RWvCoX2UY:FZ7174zjISU:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=l2RWvCoX2UY:FZ7174zjISU:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=l2RWvCoX2UY:FZ7174zjISU:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=l2RWvCoX2UY:FZ7174zjISU:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=l2RWvCoX2UY:FZ7174zjISU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=l2RWvCoX2UY:FZ7174zjISU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=l2RWvCoX2UY:FZ7174zjISU:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=l2RWvCoX2UY:FZ7174zjISU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=l2RWvCoX2UY:FZ7174zjISU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=l2RWvCoX2UY:FZ7174zjISU:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=l2RWvCoX2UY:FZ7174zjISU:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=l2RWvCoX2UY:FZ7174zjISU:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=l2RWvCoX2UY:FZ7174zjISU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/l2RWvCoX2UY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/7104925892090388513/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=7104925892090388513" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/7104925892090388513" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/7104925892090388513" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/l2RWvCoX2UY/how-to-create-windows-service-in-dot.html" title="How to create a windows service in dot net framework" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_9y9twXlNhWY/SqiQn7bQbGI/AAAAAAAABzY/2WtfcMunzsw/s72-c/Create+Windows+Service.JPG" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/09/how-to-create-windows-service-in-dot.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-2744212898072205923</id><published>2009-09-10T00:34:00.013-04:00</published><updated>2009-12-09T00:27:39.702-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="visual studio" /><category scheme="http://www.blogger.com/atom/ns#" term="service" /><category scheme="http://www.blogger.com/atom/ns#" term="deployment" /><category scheme="http://www.blogger.com/atom/ns#" term="install" /><category scheme="http://www.blogger.com/atom/ns#" term="configure" /><category scheme="http://www.blogger.com/atom/ns#" term="windows service" /><category scheme="http://www.blogger.com/atom/ns#" term="setup" /><category scheme="http://www.blogger.com/atom/ns#" term="installutil" /><category scheme="http://www.blogger.com/atom/ns#" term="win 32 service" /><category scheme="http://www.blogger.com/atom/ns#" term="project" /><title type="text">How to create a setup project to install windows services</title><content type="html">This post assumes that you have knowledge on windows services and how to create a windows service using visual studio. People who don't know how to create windows service please learn &lt;a href="http://cherupally.blogspot.com/2009/09/how-to-create-windows-service-in-dot.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Please follow below steps to create a setup project&lt;br /&gt;1. Create a visual studio solution with a project of type Windows Service as explained in &lt;a href="http://cherupally.blogspot.com/2009/09/how-to-create-windows-service-in-dot.html"&gt;http://cherupally.blogspot.com/2009/09/how-to-create-windows-service-in-dot.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Add a new project of type "Setup Project" to the solution as shown below&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_9y9twXlNhWY/Sqimzkvog1I/AAAAAAAABz4/XbF8l8axfAQ/s1600-h/SetupProject.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 258px;" src="http://1.bp.blogspot.com/_9y9twXlNhWY/Sqimzkvog1I/AAAAAAAABz4/XbF8l8axfAQ/s400/SetupProject.png" alt="" id="BLOGGER_PHOTO_ID_5379733159861060434" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Once you click on OK button in the above step, you will see the screen below. There you notice a new project named "Setup1" is added.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_9y9twXlNhWY/Sqitr5tWTdI/AAAAAAAAB0A/yO01xmTg-HQ/s1600-h/SetupScreen.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 304px;" src="http://4.bp.blogspot.com/_9y9twXlNhWY/Sqitr5tWTdI/AAAAAAAAB0A/yO01xmTg-HQ/s400/SetupScreen.png" alt="" id="BLOGGER_PHOTO_ID_5379740724631064018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. Now right click on Setup1 project in the solution and click "Add Project Output" as shown below.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_9y9twXlNhWY/Sqiudmu2upI/AAAAAAAAB0I/wUtvhUga75M/s1600-h/AddProjectOutput.png"&gt;&lt;img style="cursor: pointer; width: 330px; height: 400px;" src="http://3.bp.blogspot.com/_9y9twXlNhWY/Sqiudmu2upI/AAAAAAAAB0I/wUtvhUga75M/s400/AddProjectOutput.png" alt="" id="BLOGGER_PHOTO_ID_5379741578530568850" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;4. In "Add Project Output Group" dialog box shown below, select the windows service project in the drop down and click OK.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_9y9twXlNhWY/SqivTL_QVOI/AAAAAAAAB0Q/uHl-ykFV55k/s1600-h/AddProjectOutput+Group.png"&gt;&lt;img style="cursor: pointer; width: 324px; height: 379px;" src="http://3.bp.blogspot.com/_9y9twXlNhWY/SqivTL_QVOI/AAAAAAAAB0Q/uHl-ykFV55k/s400/AddProjectOutput+Group.png" alt="" id="BLOGGER_PHOTO_ID_5379742499064534242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;5. The above 4 steps are only to copy all the assemblies to specifies installation folder. Setup will not install the services in the system. To tell the setup to install services we must add custom actions. To open the custom actions window right click "Setup1" project in solution explorer and click View-&gt;Custom Actions as shown below.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_9y9twXlNhWY/SqixWtDZUXI/AAAAAAAAB0Y/c1zQcjI8Fa4/s1600-h/CustomActions.png"&gt;&lt;img style="cursor: pointer; width: 287px; height: 400px;" src="http://2.bp.blogspot.com/_9y9twXlNhWY/SqixWtDZUXI/AAAAAAAAB0Y/c1zQcjI8Fa4/s400/CustomActions.png" alt="" id="BLOGGER_PHOTO_ID_5379744758503133554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;6. You will see the Custom Actions tab opened like this.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_9y9twXlNhWY/SqiyHY-fIJI/AAAAAAAAB0g/QvOBCeKF2l0/s1600-h/CustomActions_Screen.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 304px;" src="http://3.bp.blogspot.com/_9y9twXlNhWY/SqiyHY-fIJI/AAAAAAAAB0g/QvOBCeKF2l0/s400/CustomActions_Screen.png" alt="" id="BLOGGER_PHOTO_ID_5379745594927423634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;7. Right click on "Custom Actions" and click "Add Custom Action".&lt;br /&gt;&lt;br /&gt;8. That will open a dialog box which lets you choose the items from "Application Folder". Select "Primary Output From WindowsService1" in "ApplicationFolder" and click OK.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_9y9twXlNhWY/Sqiz8X2yjiI/AAAAAAAAB0o/v_ZJbk2NAoA/s1600-h/AddCustomAction.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 285px;" src="http://2.bp.blogspot.com/_9y9twXlNhWY/Sqiz8X2yjiI/AAAAAAAAB0o/v_ZJbk2NAoA/s400/AddCustomAction.png" alt="" id="BLOGGER_PHOTO_ID_5379747604671401506" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;9. The above step will add this custom action to all sub folders "Install", "Commit", "Rollback", "Uninstall". Finally you will see the screen like this.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_9y9twXlNhWY/Sqi05__Nc-I/AAAAAAAAB0w/va9EnuHiro0/s1600-h/CustomActions_AfterAdd.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 304px;" src="http://3.bp.blogspot.com/_9y9twXlNhWY/Sqi05__Nc-I/AAAAAAAAB0w/va9EnuHiro0/s400/CustomActions_AfterAdd.png" alt="" id="BLOGGER_PHOTO_ID_5379748663416157154" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;10. Build the "Setup1" project. Now you are ready to use this setup project to install/uninstall windows services. Take the setup build from WindowsService1\Setup1\Debug and use it to install/uninstall when needed.&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f09%2fhow-to-create-setup-project-to-install.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f09%2fhow-to-create-setup-project-to-install.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/How-to-create-a-setup-project-to-install-windows-services"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F09%2Fhow-to-create-setup-project-to-install.html" style="border:0px"/&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-2744212898072205923?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=ymRxgLwl8HQ:7X5I8TxY3rM:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=ymRxgLwl8HQ:7X5I8TxY3rM:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=ymRxgLwl8HQ:7X5I8TxY3rM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=ymRxgLwl8HQ:7X5I8TxY3rM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=ymRxgLwl8HQ:7X5I8TxY3rM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=ymRxgLwl8HQ:7X5I8TxY3rM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=ymRxgLwl8HQ:7X5I8TxY3rM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=ymRxgLwl8HQ:7X5I8TxY3rM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=ymRxgLwl8HQ:7X5I8TxY3rM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=ymRxgLwl8HQ:7X5I8TxY3rM:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=ymRxgLwl8HQ:7X5I8TxY3rM:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=ymRxgLwl8HQ:7X5I8TxY3rM:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=ymRxgLwl8HQ:7X5I8TxY3rM:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/ymRxgLwl8HQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/2744212898072205923/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=2744212898072205923" title="7 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/2744212898072205923" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/2744212898072205923" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/ymRxgLwl8HQ/how-to-create-setup-project-to-install.html" title="How to create a setup project to install windows services" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_9y9twXlNhWY/Sqimzkvog1I/AAAAAAAABz4/XbF8l8axfAQ/s72-c/SetupProject.png" height="72" width="72" /><thr:total>7</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/09/how-to-create-setup-project-to-install.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-4529331220978053631</id><published>2009-09-22T05:07:00.009-04:00</published><updated>2009-12-09T00:14:50.933-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Object" /><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><category scheme="http://www.blogger.com/atom/ns#" term="Find" /><category scheme="http://www.blogger.com/atom/ns#" term="sort items" /><category scheme="http://www.blogger.com/atom/ns#" term="Generic List" /><category scheme="http://www.blogger.com/atom/ns#" term="element" /><title type="text">How to find an element in c# Generic List</title><content type="html">The following sample code demonstrates you how to find a matching element in the object list.&lt;br /&gt;&lt;br /&gt;Let's say we have an object called Person with public properties PersonID, Name, Age, Gender as defined below.&lt;br /&gt;&lt;br /&gt;using System.Collections.Generic.List;&lt;br /&gt;&lt;br /&gt;public class Person&lt;br /&gt;{&lt;br /&gt;public int PersonID {get; set;}&lt;br /&gt;public string Name {get; set;}&lt;br /&gt;public int Age {get; set;}&lt;br /&gt;public bool Gender {get; set;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;class program&lt;br /&gt;{&lt;br /&gt;public static void Main(string[] args)&lt;br /&gt;{&lt;br /&gt;      // Let's say we have a method defined as dbAccess.GetPersons() to&lt;br /&gt;//return all the records from Person table and populates the&lt;br /&gt;//list object "persons" as shown below.&lt;br /&gt;      List&lt;person&gt; persons = dbAccess.GetPersons();&lt;br /&gt;&lt;br /&gt;    int personIDToFind = 1234;&lt;br /&gt;    //Find person in persons list by PersonID using predicate&lt;br /&gt;//"p=&gt;p.PersonID == personIDToFind"&lt;br /&gt;    Person personByFindOperation = persons.Find( p=&gt;p.PersonID == personIDToFind );&lt;br /&gt;&lt;br /&gt;    string personName = "Kiran"&lt;br /&gt;    //Find person in persons list by Name using predicate&lt;br /&gt;//"p=&gt;p.Name == personName"&lt;br /&gt;    Person personByFindOperation2 = persons.Find( p=&gt;p.Name == personName );&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Note: The Find method of List returns the first occurrence of the exact match within the entire System.Collections.Generic.List.&lt;/person&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f09%2fhow-to-find-element-in-c-list.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f09%2fhow-to-find-element-in-c-list.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/How-to-find-an-element-in-c-Generic-List"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F09%2Fhow-to-find-element-in-c-list.html" style="border:0px" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-4529331220978053631?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eOHTV-HrJ3k:MORbFEcr2d8:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eOHTV-HrJ3k:MORbFEcr2d8:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eOHTV-HrJ3k:MORbFEcr2d8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=eOHTV-HrJ3k:MORbFEcr2d8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eOHTV-HrJ3k:MORbFEcr2d8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=eOHTV-HrJ3k:MORbFEcr2d8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eOHTV-HrJ3k:MORbFEcr2d8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eOHTV-HrJ3k:MORbFEcr2d8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=eOHTV-HrJ3k:MORbFEcr2d8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eOHTV-HrJ3k:MORbFEcr2d8:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eOHTV-HrJ3k:MORbFEcr2d8:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=eOHTV-HrJ3k:MORbFEcr2d8:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=eOHTV-HrJ3k:MORbFEcr2d8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/eOHTV-HrJ3k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/4529331220978053631/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=4529331220978053631" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/4529331220978053631" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/4529331220978053631" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/eOHTV-HrJ3k/how-to-find-element-in-c-list.html" title="How to find an element in c# Generic List" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>3</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/09/how-to-find-element-in-c-list.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-1712938179586117829</id><published>2009-11-08T01:45:00.005-05:00</published><updated>2009-11-25T00:30:22.827-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="install" /><category scheme="http://www.blogger.com/atom/ns#" term="IIS 7.0" /><category scheme="http://www.blogger.com/atom/ns#" term="Windows Server 2008" /><title type="text">Installing IIS 7.0 on Windows Server 2008</title><content type="html">&lt;div&gt;Let me explain my experience on installing IIS 7.0 on windows server 2008. I had a tough time to find a way to install IIS 7.0 on windows server 2008. I thought that it would be same as installing IIS 6.0 on windows server 2003 by going to "control panel" -&gt; "Add or Remove Programs" -&gt; "Add/Remove Windows Components" and install IIS. But I couldn't find this in windows server 2008. After doing a long research I found a link which helped me. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I followed the below steps to install IIS 7.0 on windows server 2008.&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Go to "Start" -&gt; "Administrative tools" -&gt; "Service Manager".&lt;/li&gt;&lt;li&gt;Right click the node "Roles" in the "Service Manager" window and click on "Add Roles".&lt;/li&gt;&lt;li&gt;Follow the wizard.&lt;/li&gt;&lt;li&gt;Select web server(IIS) in 2nd step of the wizard.&lt;/li&gt;&lt;li&gt;You might get the following popup immediately. If you get this please click "Add Required Role Services".                                                                                                                   &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_9y9twXlNhWY/SvaxO5igE0I/AAAAAAAAB04/chMbBryHx-0/s1600-h/Add_Role_3.png"&gt;&lt;img src="http://4.bp.blogspot.com/_9y9twXlNhWY/SvaxO5igE0I/AAAAAAAAB04/chMbBryHx-0/s400/Add_Role_3.png" alt="" id="BLOGGER_PHOTO_ID_5401699672599302978" style="cursor: pointer; width: 400px; height: 246px;" border="0" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;You follow the wizard until you get the below step.                                                                      &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_9y9twXlNhWY/SvazDMN7FlI/AAAAAAAAB1A/e0N5DNJnZRc/s1600-h/Add_Role_4.png"&gt;&lt;img src="http://4.bp.blogspot.com/_9y9twXlNhWY/SvazDMN7FlI/AAAAAAAAB1A/e0N5DNJnZRc/s400/Add_Role_4.png" alt="" id="BLOGGER_PHOTO_ID_5401701670478091858" style="cursor: pointer; width: 400px; height: 301px;" border="0" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Follow the wizard until the final step.&lt;/li&gt;&lt;li&gt;That's it. You are done with installing IIS 7.0 on windows server 2008.&lt;/li&gt;&lt;li&gt;If you face any problems please follow the below link. It  has detailed step by step guidelines to install the IIS 7.0 on windows server 2008.  &lt;a href="http://learn.iis.net/page.aspx/29/installing-iis-70-on-windows-server-2008/"&gt;http://learn.iis.net/page.aspx/29/installing-iis-70-on-windows-server-2008/&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f11%2finstalling-iis-70-on-windows-server.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fcherupally.blogspot.com%2f2009%2f11%2finstalling-iis-70-on-windows-server.html" alt="kick it on DotNetKicks.com" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a rev="vote-for" href="http://dotnetshoutout.com/Installing-IIS-70-on-Windows-Server-2008"&gt;&lt;img alt="Shout it" src="http://dotnetshoutout.com/image.axd?url=http%3A%2F%2Fcherupally.blogspot.com%2F2009%2F11%2Finstalling-iis-70-on-windows-server.html" style="border: 0px none ;" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-1712938179586117829?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=1s3Xj6m370A:Eu3GAgrcH6M:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=1s3Xj6m370A:Eu3GAgrcH6M:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=1s3Xj6m370A:Eu3GAgrcH6M:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=1s3Xj6m370A:Eu3GAgrcH6M:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=1s3Xj6m370A:Eu3GAgrcH6M:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=1s3Xj6m370A:Eu3GAgrcH6M:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=1s3Xj6m370A:Eu3GAgrcH6M:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=1s3Xj6m370A:Eu3GAgrcH6M:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=1s3Xj6m370A:Eu3GAgrcH6M:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=1s3Xj6m370A:Eu3GAgrcH6M:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=1s3Xj6m370A:Eu3GAgrcH6M:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=1s3Xj6m370A:Eu3GAgrcH6M:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=1s3Xj6m370A:Eu3GAgrcH6M:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/1s3Xj6m370A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/1712938179586117829/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=1712938179586117829" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/1712938179586117829" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/1712938179586117829" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/1s3Xj6m370A/installing-iis-70-on-windows-server.html" title="Installing IIS 7.0 on Windows Server 2008" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_9y9twXlNhWY/SvaxO5igE0I/AAAAAAAAB04/chMbBryHx-0/s72-c/Add_Role_3.png" height="72" width="72" /><thr:total>3</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/11/installing-iis-70-on-windows-server.html</feedburner:origLink></entry><entry><title type="text">Links for 2009-11-06 [del.icio.us]</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/lRGoL5cFuTs/kcherupa" /><updated>2009-11-07T00:00:00-08:00</updated><id>http://del.icio.us/kcherupa#2009-11-06</id><content type="html">&lt;ul&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/11/c-40-new-features-named-and-optional.html"&gt;C# 4.0 new features: Named and Optional arguments&lt;/a&gt;&lt;br/&gt;
This post explains the usage of c# 4.0&amp;#039;s new feature &amp;quot;named and optional arguments&amp;quot;. This feature is mostly useful when we have methods defined with large number of parameters. It is hard to remember the list of parameters in order. So by using named arguments we can pass the arguments in any order. And also many times it is possible that, we don&amp;#039;t want to pass all arguments but use default values. This requirement is replaced by &amp;quot;optional parameters&amp;quot; feature.&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/lRGoL5cFuTs" height="1" width="1"/&gt;</content><feedburner:origLink>http://del.icio.us/kcherupa#2009-11-06</feedburner:origLink></entry><entry><title type="text">Links for 2009-10-20 [del.icio.us]</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/bjXHrozr31c/kcherupa" /><updated>2009-10-21T00:00:00-07:00</updated><id>http://del.icio.us/kcherupa#2009-10-20</id><content type="html">&lt;ul&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/10/use-of-for-attribute-of-html-label.html"&gt;Use of &amp;quot;for&amp;quot; attribute of  label control in html&lt;/a&gt;&lt;br/&gt;
This post explains the actual use of &amp;quot;for&amp;quot; attribute of label control in html language&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/bjXHrozr31c" height="1" width="1"/&gt;</content><feedburner:origLink>http://del.icio.us/kcherupa#2009-10-20</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-8317796759412530631</id><published>2009-05-04T04:47:00.002-04:00</published><updated>2009-10-21T02:53:36.448-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blogger" /><category scheme="http://www.blogger.com/atom/ns#" term="blog" /><category scheme="http://www.blogger.com/atom/ns#" term="html code" /><category scheme="http://www.blogger.com/atom/ns#" term="post" /><category scheme="http://www.blogger.com/atom/ns#" term="process" /><category scheme="http://www.blogger.com/atom/ns#" term="render" /><category scheme="http://www.blogger.com/atom/ns#" term="start tag" /><category scheme="http://www.blogger.com/atom/ns#" term="Code" /><category scheme="http://www.blogger.com/atom/ns#" term="convert" /><category scheme="http://www.blogger.com/atom/ns#" term="end tag" /><category scheme="http://www.blogger.com/atom/ns#" term="XML" /><category scheme="http://www.blogger.com/atom/ns#" term="blogspot" /><category scheme="http://www.blogger.com/atom/ns#" term="html tags" /><category scheme="http://www.blogger.com/atom/ns#" term="html" /><title type="text">How to post html code in blogspot / blogger</title><content type="html">I had problem when posting an article on blogspot. I was trying to show some sample html/xml code in that article. But I faced problems when I wrote the core html code. The problem was that the html code was rendering as html controls and breaking the post content. I tried many times and got frustration. Finally I searched in google for this problem and I got the below useful link.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.simplebits.com/cgi-bin/simplecode.pl"&gt;http://www.simplebits.com/cgi-bin/simplecode.pl&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you follow the above link you will  notice 2 textareas in which the first one is for input the html code and second one is for output of the changed  html code which fits into the blogspot post and renders as expected.&lt;br /&gt;&lt;br /&gt;Whoever wants to post the html code in blogger, please go to the link and paste your html code in first text box control and click the process button. Then you will notice the second textbox updated with the processed html code. Then copy the complete code from second text box and paste it in your blogspot post. It works not only in blogspot but also in all blogs which don't allow direct html code in posts.&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-8317796759412530631?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=em-_4THS1tg:Jw6MI9marAo:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=em-_4THS1tg:Jw6MI9marAo:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=em-_4THS1tg:Jw6MI9marAo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=em-_4THS1tg:Jw6MI9marAo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=em-_4THS1tg:Jw6MI9marAo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=em-_4THS1tg:Jw6MI9marAo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=em-_4THS1tg:Jw6MI9marAo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=em-_4THS1tg:Jw6MI9marAo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=em-_4THS1tg:Jw6MI9marAo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=em-_4THS1tg:Jw6MI9marAo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=em-_4THS1tg:Jw6MI9marAo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=em-_4THS1tg:Jw6MI9marAo:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=em-_4THS1tg:Jw6MI9marAo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/em-_4THS1tg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/8317796759412530631/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=8317796759412530631" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/8317796759412530631" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/8317796759412530631" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/em-_4THS1tg/how-to-post-html-code-in-blogspot.html" title="How to post html code in blogspot / blogger" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>3</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/05/how-to-post-html-code-in-blogspot.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-4911129440716176670.post-5427857085605377282</id><published>2009-10-21T01:58:00.006-04:00</published><updated>2009-10-21T02:29:03.835-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="for" /><category scheme="http://www.blogger.com/atom/ns#" term="label" /><category scheme="http://www.blogger.com/atom/ns#" term="attribute" /><category scheme="http://www.blogger.com/atom/ns#" term="html" /><title type="text">Use of "for" attribute of html label</title><content type="html">I have noticed many of the html programmers that, they use an attribute called "for" when writing a label tag. And the attribute value is exactly same as the corresponding html input control such as text box, check box, drop down,... But I never tried to know the actual use of this attribute.&lt;br /&gt;&lt;br /&gt;Very recently, I have searched in Google to know the use of it. Now I have come to know that, the "for" attribute of label binds the label with the corresponding control. Binding in the sense, when the user clicks on the label it toggles the corresponding control (control id passed as value for "for" attribute). This way the "for" attribute is used for the label. Now onwards I am going to make a good practice of using "for" attribute of the label control.&lt;br /&gt;&lt;br /&gt;Let's see an example of the usage of the "for" attribute of label control&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;label for="FirstName"&amp;gt;First Name:&amp;lt;/label&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;input id="FirstName" type="text"&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The above code is rendered as shown below. You can test this behavior by clicking on the label "First Name:". You can notice the text box focused.&lt;br /&gt;&lt;br /&gt;      &lt;label for="FirstName"&gt;First Name:&lt;/label&gt;&lt;br /&gt;      &lt;input id="FirstName" type="text"&gt;&lt;div class="blogger-post-footer"&gt;&lt;div&gt;
&lt;script type="text/javascript"&gt;
&lt;!-- 
lqm_channel=1;
lqm_publisher=401;
lqm_zone=1;
lqm_format=3;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://a.lakequincy.com/s.js"&gt;&lt;/script&gt;
&lt;a href="http://lakequincy.com?401" style="text-align:right;font-size:8px;display:block;color:#000;text-decoration:none;font-family:Sans-Serif;margin:0;padding:0;"&gt;Ads by Lake Quincy Media&lt;/a&gt;
&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4911129440716176670-5427857085605377282?l=cherupally.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NjYoTBAFUnM:wbH-XoCMgSI:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NjYoTBAFUnM:wbH-XoCMgSI:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NjYoTBAFUnM:wbH-XoCMgSI:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=NjYoTBAFUnM:wbH-XoCMgSI:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NjYoTBAFUnM:wbH-XoCMgSI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=NjYoTBAFUnM:wbH-XoCMgSI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NjYoTBAFUnM:wbH-XoCMgSI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NjYoTBAFUnM:wbH-XoCMgSI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=NjYoTBAFUnM:wbH-XoCMgSI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NjYoTBAFUnM:wbH-XoCMgSI:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NjYoTBAFUnM:wbH-XoCMgSI:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?i=NjYoTBAFUnM:wbH-XoCMgSI:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DiggingTechnology?a=NjYoTBAFUnM:wbH-XoCMgSI:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DiggingTechnology?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/NjYoTBAFUnM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cherupally.blogspot.com/feeds/5427857085605377282/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4911129440716176670&amp;postID=5427857085605377282" title="7 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/5427857085605377282" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4911129440716176670/posts/default/5427857085605377282" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/NjYoTBAFUnM/use-of-for-attribute-of-html-label.html" title="Use of &quot;for&quot; attribute of html label" /><author><name>Kiran</name><uri>http://www.blogger.com/profile/11561832781186250401</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>7</thr:total><feedburner:origLink>http://cherupally.blogspot.com/2009/10/use-of-for-attribute-of-html-label.html</feedburner:origLink></entry><entry><title type="text">Links for 2009-09-22 [del.icio.us]</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/FTSf9FgZyl8/kcherupa" /><updated>2009-09-23T00:00:00-07:00</updated><id>http://del.icio.us/kcherupa#2009-09-22</id><content type="html">&lt;ul&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/09/how-to-find-element-in-c-list.html"&gt;How to find an element in c# Generic List&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/FTSf9FgZyl8" height="1" width="1"/&gt;</content><feedburner:origLink>http://del.icio.us/kcherupa#2009-09-22</feedburner:origLink></entry><entry><title type="text">Links for 2009-09-18 [del.icio.us]</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DiggingTechnology/~3/kjqCPIij66E/kcherupa" /><updated>2009-09-19T00:00:00-07:00</updated><id>http://del.icio.us/kcherupa#2009-09-18</id><content type="html">&lt;ul&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/09/how-to-create-windows-service-in-dot.html"&gt;How to create a windows service in dot net framework&lt;/a&gt;&lt;br/&gt;
Explains step by step process to create a windows service in visual studio.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/09/how-to-create-setup-project-to-install.html"&gt;How to create a setup project to install windows services&lt;/a&gt;&lt;br/&gt;
This demonstrates how to create a setup project to easily install windows services and other console and winform applications&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/08/problems-in-configuring-sql-server-for.html"&gt;Problems in configuring sql server for session mode sql server&lt;/a&gt;&lt;br/&gt;
This discusses the problems faced in setting up sql server to work as storage media to store session data.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/06/occasionally-connected-systems-sync.html"&gt;Occasionally Connected Systems Sync Framework&lt;/a&gt;&lt;br/&gt;
This give you a brief introduction of Microsoft Sync framework.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/05/web-page-loading-twice-problem.html"&gt;Web page loading twice problem&lt;/a&gt;&lt;br/&gt;
This discusses and solves the problem with web page loading twice&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/04/code-to-serialize-object-in-c-net.html"&gt;Code to Serialize Object in C# .Net&lt;/a&gt;&lt;br/&gt;
This explains how to write code to serialize any object in c# language&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/04/how-to-access-remote-sql-servers.html"&gt;How to access Remote sql server&amp;rsquo;s database table&lt;/a&gt;&lt;br/&gt;
This teaches you to learn how to make sql queries from one sql server&amp;#039;s pane to other sql server&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/04/how-to-invoke-processapplication-from.html"&gt;How to invoke a process/application from parent application using C#&lt;/a&gt;&lt;br/&gt;
Explains how to invoke a third party application from the current application using c# language&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/04/hyper-text-tranfer-protocol.html"&gt;Learn How HyperText Tranfer Protocol works&lt;/a&gt;&lt;br/&gt;
This explains how HTTP protocol works in detail&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/04/impose-maxlength-on-textarea-controls.html"&gt;Impose maxlength on textarea controls to avoid &amp;quot;String or binary data would be truncated&amp;quot; error&lt;/a&gt;&lt;br/&gt;
This is useful to put  length constraint on html text area controls or multiline text box controls&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/04/imultipleresults-in-linq-not-working-as.html"&gt;Return multiple result sets using IMultipleResults in linq c#&lt;/a&gt;&lt;br/&gt;
This demonstrates how to query multiple result sets from sproc and populate the objects using LINQ IMultipleResult&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/04/schedule-daily-backup-for-sql-server_27.html"&gt;Schedule daily backup for sql server 2005 datbase using sql agent&lt;/a&gt;&lt;br/&gt;
This post very well explains and demonstrates how to schedule a database backup daily or weekly using sql server agent or maintenance plan wizard&lt;/li&gt;
&lt;li&gt;&lt;a href="http://cherupally.blogspot.com/2009/04/search-for-keywords-in-stored.html"&gt;How to perform search within the stored procedures&lt;/a&gt;&lt;br/&gt;
This is helpful to query for the key words used within the sproc&amp;#039;s code&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DiggingTechnology/~4/kjqCPIij66E" height="1" width="1"/&gt;</content><feedburner:origLink>http://del.icio.us/kcherupa#2009-09-18</feedburner:origLink></entry></feed>

