<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7951526608711884626</id><updated>2011-11-27T16:54:06.842-08:00</updated><category term='WCF Interview Questions'/><category term='C# Interview Questions'/><category term='Interview Questions'/><category term='SQL Server Interview Questions'/><category term='Frame work Interview Questions'/><category term='Articles'/><category term='Tutorials'/><category term='ASP.net Interview Questions'/><category term='IIS Interview Questions'/><category term='XML Interview Questions'/><title type='text'>Interview Questions, ASP.net &amp; C# Code Samples...</title><subtitle type='html'>Get all the Interview Questions and Code samples</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default?start-index=101&amp;max-results=100'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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>115</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4787957090903767088</id><published>2011-10-20T10:44:00.001-07:00</published><updated>2011-10-20T10:44:51.323-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>master page</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;A Nested master page is a master page associated with another master page. To create a nested master page, set the MasterPageFile attribute of the @Master directive to the name of the .master file of the base master page.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4787957090903767088?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4787957090903767088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/10/master-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4787957090903767088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4787957090903767088'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/10/master-page.html' title='master page'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3292849730997184778</id><published>2011-10-20T10:43:00.001-07:00</published><updated>2011-10-20T10:43:41.283-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>Custom Control?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Custom controls are compiled components that run on the server and that encapsulate user-interface and other related functionality into reusable packages. They can include all the design-time features of standard ASP.NET server controls, including full support for Visual Studio design features such as the Properties window, the visual designer, and the Toolbox.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3292849730997184778?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3292849730997184778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/10/custom-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3292849730997184778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3292849730997184778'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/10/custom-control.html' title='Custom Control?'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-6993049877187099367</id><published>2011-10-20T10:35:00.001-07:00</published><updated>2011-10-20T10:35:28.160-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>user and custom controls</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;User controls are easier to create in comparison to custom controls, however user controls can be less convenient to use in advanced scenarios.&lt;br /&gt;&lt;br /&gt;User controls have limited support for consumers who use a visual design tool whereas custom controls have full visual design tool support for consumers.&lt;br /&gt;&lt;br /&gt;A separate copy of the user control is required in each application that uses it whereas only a single copy of the custom control is required, in the global assembly cache, which makes maintenance easier.&lt;br /&gt;&lt;br /&gt;A user control cannot be added to the Toolbox in Visual Studio whereas custom controls can be added to the Toolbox in Visual Studio.&lt;br /&gt;&lt;br /&gt;User controls are good for static layout whereas custom controls are good for dynamic layout.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-6993049877187099367?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/6993049877187099367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/10/user-and-custom-controls.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6993049877187099367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6993049877187099367'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/10/user-and-custom-controls.html' title='user and custom controls'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8245759187342263866</id><published>2011-10-20T10:34:00.000-07:00</published><updated>2011-10-20T10:34:20.010-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>Web.config and Machine.config</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;Web.config files are used to apply configuration settings to a particular web application whereas machine.config file is used to apply configuration settings for all the websites on a web server.&lt;br /&gt;&lt;br /&gt;Web.config files are located in the application's root directory or inside a folder situated in a lower hierarchy. The machine.config is located in the Windows directory Microsoft.Net\Framework\Version\CONFIG.&lt;br /&gt;&lt;br /&gt;There can be multiple web.config files in an application nested at different hierarchies. However there can be only one machine.config file on a web server.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8245759187342263866?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8245759187342263866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/10/webconfig-and-machineconfig.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8245759187342263866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8245759187342263866'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/10/webconfig-and-machineconfig.html' title='Web.config and Machine.config'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5308543436726417636</id><published>2011-10-20T10:32:00.000-07:00</published><updated>2011-10-20T10:32:09.739-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process. &lt;br /&gt;&lt;br /&gt;inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension), the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5308543436726417636?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5308543436726417636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/10/inetinfoexe-aspnetisapidll.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5308543436726417636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5308543436726417636'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/10/inetinfoexe-aspnetisapidll.html' title='inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5459572636532758814</id><published>2011-09-28T11:45:00.000-07:00</published><updated>2011-09-28T11:45:08.391-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>typed dataset</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;What is &amp;nbsp;typed dataset?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A typed dataset will be having the sehema with them as in an xml format. It raises the compile time exceptions. Arranging data and giving relationship is possible through this.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5459572636532758814?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5459572636532758814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/typed-dataset.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5459572636532758814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5459572636532758814'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/typed-dataset.html' title='typed dataset'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-2678614283240551280</id><published>2011-09-28T11:33:00.000-07:00</published><updated>2011-09-28T11:33:25.835-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>side-by-side execution</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;What is side-by-side execution? Can two application one using private assembly and&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;other using Shared assembly be stated as a side-by-side executables?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Side-by-side execution is the ability to run multiple versions of an application or component on the same computer. You can have multiple versions of the common language runtime, and multiple versions of applications and components that use a version of the runtime, on the same computer at the same time. Since versioning is only applied to shared assemblies, and not to private assemblies, two application one using private assembly and one using shared assembly cannot be stated as side-by-side executables&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-2678614283240551280?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/2678614283240551280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/side-by-side-execution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2678614283240551280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2678614283240551280'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/side-by-side-execution.html' title='side-by-side execution'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3433745316498997730</id><published>2011-09-28T11:32:00.000-07:00</published><updated>2011-09-28T11:32:15.404-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>Immutable data Type</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Why string is called Immutable data Type?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The memory representation of string is an Array of Characters, So on re-assigning the new array of Char is formed &amp;amp; the start address is changed. Thus keeping the Old string in&amp;nbsp;&amp;nbsp; Memory for Garbage Collector to be disposed.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3433745316498997730?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3433745316498997730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/immutable-data-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3433745316498997730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3433745316498997730'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/immutable-data-type.html' title='Immutable data Type'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5036336082210331160</id><published>2011-09-28T11:31:00.000-07:00</published><updated>2011-09-28T11:31:01.210-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>assembly versioning</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;How does assembly versioning work?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Each assembly has a version number called the compatibility version. Also each reference to an assembly (from another assembly) includes both the name and version of the referenced&amp;nbsp; assembly.The version number has four numeric parts (e.g. 5.5.2.33). Assemblies with either&amp;nbsp; of the first two parts different are normally viewed as incompatible. If the first two parts are&amp;nbsp; the same, but the third is different, the assemblies are deemed as 'maybe compatible'. If only the fourth part is different, the assemblies are deemed compatible. However, this is just the default guideline - it is the version policy that decides to what extent these rules are enforced. The version policy can be specified via the application configuration file.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5036336082210331160?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5036336082210331160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/assembly-versioning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5036336082210331160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5036336082210331160'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/assembly-versioning.html' title='assembly versioning'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-6834117170119754392</id><published>2011-09-28T11:29:00.000-07:00</published><updated>2011-09-28T11:29:45.512-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>CAS</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;How does CAS work?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The CAS security policy revolves around two key concepts - code groups and permissions. Each .NET assembly is a member of a particular code group, and each code group is granted the permissions specified in a named permission set. For example, using the default security policy, a control downloaded from a web site belongs to the 'Zone - Internet' code group, which adheres to the permissions defined by the 'Internet' named permission set. (Naturally the 'Internet' named permission set represents a veryrestrictive range of permissions.)&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-6834117170119754392?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/6834117170119754392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/cas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6834117170119754392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6834117170119754392'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/cas.html' title='CAS'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-7692992969408962693</id><published>2011-09-28T11:27:00.001-07:00</published><updated>2011-09-28T11:27:43.972-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>value-type variables and reference-type</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;What is the difference between the value-type variables and reference-type variables in&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;terms of garbage collection?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The value-type variables are not garbage-collected, they just fall off the stack when they fall&lt;br /&gt;&lt;br /&gt;out of scope, the reference-type objects are picked up by GC when their references go null.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-7692992969408962693?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/7692992969408962693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/value-type-variables-and-reference-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7692992969408962693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7692992969408962693'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/value-type-variables-and-reference-type.html' title='value-type variables and reference-type'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3350920394053723408</id><published>2011-09-28T11:26:00.002-07:00</published><updated>2011-09-28T11:26:56.587-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>StringBuilder over System.String</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;What's the advantage of using System.Text.StringBuilder over System.String?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text.&lt;br /&gt;&lt;br /&gt;Strings are immutable, so each time it's being operated on, a new instance is created.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3350920394053723408?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3350920394053723408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/stringbuilder-over-systemstring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3350920394053723408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3350920394053723408'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/stringbuilder-over-systemstring.html' title='StringBuilder over System.String'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4276448574587576482</id><published>2011-09-28T11:26:00.000-07:00</published><updated>2011-09-28T11:26:01.362-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>satellite assembly</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;What's a satellite assembly?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When you write a multilingual or multi-cultural application in .NET, and want to distribute&lt;br /&gt;&lt;br /&gt;the core application separately from the localized modules, the localized assemblies that&lt;br /&gt;&lt;br /&gt;modify the core application are called satellite assemblies.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4276448574587576482?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4276448574587576482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/satellite-assembly.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4276448574587576482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4276448574587576482'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/satellite-assembly.html' title='satellite assembly'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3976041618096521293</id><published>2011-09-28T11:23:00.000-07:00</published><updated>2011-09-28T11:23:04.450-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>Thread and a Process?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;Describe the difference between a Thread and a Process?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A Process is an instance of an running application. And a thread is the Execution stream of&lt;br /&gt;&lt;br /&gt;the Process. A process can have multiple Thread.&lt;br /&gt;&lt;br /&gt;When a process starts a specific memory area is allocated to it. When there is multiple thread&lt;br /&gt;&lt;br /&gt;in a process, each thread gets a memory for storing the variables in it and plus they can access&lt;br /&gt;&lt;br /&gt;to the global variables which is common for all the thread.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3976041618096521293?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3976041618096521293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/thread-and-process.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3976041618096521293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3976041618096521293'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/thread-and-process.html' title='Thread and a Process?'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4542243545979869107</id><published>2011-09-28T11:21:00.001-07:00</published><updated>2011-09-28T11:21:37.276-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>EXE and a DLL?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;What is the difference between an EXE and a DLL?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can create an object of Dll but not of the EXE.&lt;br /&gt;&lt;br /&gt;Dll is an In-Process Component whereas EXE is an OUt-Process Component.&lt;br /&gt;&lt;br /&gt;Exe is for single use whereas you can use Dll for multiple use.&lt;br /&gt;&lt;br /&gt;Exe can be started as standalone where dll cannot be.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4542243545979869107?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4542243545979869107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/exe-and-dll.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4542243545979869107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4542243545979869107'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/exe-and-dll.html' title='EXE and a DLL?'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5496094469683152571</id><published>2011-09-28T11:18:00.000-07:00</published><updated>2011-09-28T11:18:15.458-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>strong-typing versus weak-typing</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;What is strong-typing versus weak-typing?&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Strong typing implies that the types of variables involved in operations are associated to the variable, checked at compile-time, and require explicit conversion; weak typing implies that they are associated to the value, checked at run-time, and are implicitly converted as required.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5496094469683152571?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5496094469683152571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/strong-typing-versus-weak-typing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5496094469683152571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5496094469683152571'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/strong-typing-versus-weak-typing.html' title='strong-typing versus weak-typing'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3372517770317112363</id><published>2011-09-28T11:17:00.000-07:00</published><updated>2011-09-28T11:17:17.206-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>Generate a strong name?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;How do you generate a strong name?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;.NET provides an utility called strong name tool. You can run this toolfrom the VS.NET command prompt to generate a strong name with an option "-k" and providing the strong key&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;file name. i.e. sn- -k &amp;lt; file-name &amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3372517770317112363?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3372517770317112363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/generate-strong-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3372517770317112363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3372517770317112363'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/generate-strong-name.html' title='Generate a strong name?'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4762052321752091886</id><published>2011-09-28T11:16:00.000-07:00</published><updated>2011-09-28T11:16:27.602-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>Debug and Release</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;What is the difference between a Debug and Release build?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The Debug build is the program compiled with full symbolic debug information and no optimization. The Release build is the program compiled employing optimization and contains no symbolic debug information. These settings can be changed as per need from Project Configuration properties. The release runs faster since it does not have any debug symbols and is optimized.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4762052321752091886?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4762052321752091886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/debug-and-release.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4762052321752091886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4762052321752091886'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/debug-and-release.html' title='Debug and Release'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3903190632995185147</id><published>2011-09-28T11:14:00.000-07:00</published><updated>2011-09-28T11:14:55.474-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frame work Interview Questions'/><title type='text'>Version, Culture and PublicKeyToken</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Explain the importance and use of each, Version, Culture and PublicKeyToken for an assembly.&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This three alongwith name of the assembly provide a strong name or fully qualified name to the assembly. When a assebly is referenced with all three. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;PublicKeyToken&lt;/strong&gt;: Each assembly can have a public key embedded in its manifest that identifies the developer. This ensures that once the assembly ships, no one can modify the code or other resources contained in the assembly.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Culture&lt;/strong&gt;: Specifies which culture the assembly supports&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Version&lt;/strong&gt;: The version number of the assembly.It is of the following form major.minor.build.revision.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3903190632995185147?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3903190632995185147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/version-culture-and-publickeytoken.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3903190632995185147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3903190632995185147'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/version-culture-and-publickeytoken.html' title='Version, Culture and PublicKeyToken'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4568938542189646709</id><published>2011-09-26T03:53:00.001-07:00</published><updated>2011-09-26T03:53:12.247-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Message contract</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;Message contract&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A message contract describes the format of a message. For example, it declares whether message elements should go in headers versus the body, what level of&amp;nbsp; security should be applied to what elements of the message, and so on. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4568938542189646709?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4568938542189646709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/message-contract.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4568938542189646709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4568938542189646709'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/message-contract.html' title='Message contract'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-7045848044312394751</id><published>2011-09-26T03:52:00.001-07:00</published><updated>2011-09-26T03:52:42.287-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Operation contract</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Operation contract&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;An operation contract defines the parameters and return type of an operation. When creating an interface that defines the service contract, you signify an operation contract by applying the OperationContractAttribute attribute to each method definition that is part of the contract. The operations can be modeled as taking a single message and returning a single message, or as taking a set of types and returning a type. In the latter case, the system will determine the format for the messages that need to be exchanged for that operation. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-7045848044312394751?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/7045848044312394751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/operation-contract.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7045848044312394751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7045848044312394751'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/operation-contract.html' title='Operation contract'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1601252753773813951</id><published>2011-09-26T03:51:00.000-07:00</published><updated>2011-09-26T03:51:42.609-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Service contract</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Service contract&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The service contract ties together multiple related operations into a single functional unit. The contract can define service-level settings, such as the namespace of the&amp;nbsp; service, a corresponding callback contract, and other such settings. In most cases, the contract is defined by creating an interface in the programming language of your choice and applying the ServiceContractAttribute attribute to the interface. The actual service code results by implementing the interface. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1601252753773813951?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1601252753773813951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/service-contract.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1601252753773813951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1601252753773813951'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/service-contract.html' title='Service contract'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-6786544604669369391</id><published>2011-09-26T03:50:00.000-07:00</published><updated>2011-09-26T03:50:04.171-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Service operation</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Service operation&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A service operation is a procedure defined in a service's code that implements the functionality for an operation. This operation is exposed to clients as methods on a WCF client. The method may return a value, and may take an optional number of arguments, or take no arguments, and return no response. For example, an operation that functions as a simple "Hello" can be used as a notification of a client's presence and to begin a series of operations.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-6786544604669369391?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/6786544604669369391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/service-operation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6786544604669369391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6786544604669369391'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/service-operation.html' title='Service operation'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8419573412587721971</id><published>2011-09-26T03:48:00.001-07:00</published><updated>2011-09-26T03:48:36.072-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>System-provided bindings</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;System-provided bindings&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;WCF includes a number of system-provided bindings. These are collections of binding elements that are optimized for specific scenarios. For example, the WSHttpBinding is designed for interoperability with services that implement various WS-* specifications. These predefined bindings save time by presenting only those&amp;nbsp; options that can be correctly applied to the specific scenario. If a predefined binding does not meet your requirements, you can create your own custom binding.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8419573412587721971?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8419573412587721971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/system-provided-bindings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8419573412587721971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8419573412587721971'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/system-provided-bindings.html' title='System-provided bindings'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-2315408949158809221</id><published>2011-09-26T03:47:00.005-07:00</published><updated>2011-09-26T03:47:47.479-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'></title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Behaviors&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A behavior is a component that controls various run-time aspects of a service, an&amp;nbsp; endpoint, a particular operation, or a client. Behaviors are grouped according to scope: common behaviors affect all endpoints globally, service behaviors affect only service-related aspects, endpoint behaviors affect only endpoint-related properties,&amp;nbsp; and operation-level behaviors affect particular operations. For example, one service&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;behavior is throttling, which specifies how a service reacts when an excess of messages threaten to overwhelm its handling capabilities. An endpoint behavior, on the other hand, controls only aspects relevant to endpoints, such as how and where to find a security credential.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-2315408949158809221?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/2315408949158809221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/behaviors-behavior-is-component-that.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2315408949158809221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2315408949158809221'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/behaviors-behavior-is-component-that.html' title=''/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-6942152126995946930</id><published>2011-09-26T03:47:00.001-07:00</published><updated>2011-09-26T03:47:02.080-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Binding element</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;Binding element&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A binding element represents a particular piece of the binding, such as a transport, an&amp;nbsp; encoding, an implementation of an infrastructure-level protocol (such as WSReliableMessaging), or any other component of the communication stack. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-6942152126995946930?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/6942152126995946930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/binding-element.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6942152126995946930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6942152126995946930'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/binding-element.html' title='Binding element'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4443675293426350279</id><published>2011-09-26T03:46:00.001-07:00</published><updated>2011-09-26T03:46:30.711-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Binding</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Binding&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A binding defines how an endpoint communicates to the world. It is constructed of a&amp;nbsp; set of components called binding elements that "stack" one on top of the other to&amp;nbsp; create the communication infrastructure. At the very least, a binding defines the transport (such as HTTP or TCP) and the encoding being used (such as text or binary). A binding can contain binding elements that specify details like the security mechanisms used to secure messages, or the message pattern used by an endpoint. &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4443675293426350279?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4443675293426350279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/binding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4443675293426350279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4443675293426350279'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/binding.html' title='Binding'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-2550965272975144230</id><published>2011-09-26T03:45:00.001-07:00</published><updated>2011-09-26T03:45:38.601-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Address</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;Address&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;An address specifies the location where messages are received. It is specified as a Uniform Resource Identifier (URI). The URI schema part names the transport&amp;nbsp; mechanism to use to reach the address, such as HTTP and TCP. The hierarchical part&amp;nbsp; of the URI contains a unique location whose format is dependent on the transport mechanism.&lt;br /&gt;&lt;br /&gt;The endpoint address enables you to create unique endpoint addresses for each&amp;nbsp; endpoint in a service, or under certain conditions share an address across endpoints. The following example shows an address using the HTTPS protocol with a nondefault port: &lt;a href="https://cohowinery:8005/ServiceModelSamples/CalculatorService"&gt;TPS://cohowinery:8005/ServiceModelSamples/CalculatorService&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-2550965272975144230?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/2550965272975144230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2550965272975144230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2550965272975144230'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/address.html' title='Address'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4808754468286016792</id><published>2011-09-26T03:44:00.001-07:00</published><updated>2011-09-26T03:44:22.841-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Infrastructure endpoint</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;Infrastructure endpoint&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;An endpoint that is exposed by the infrastructure to facilitate functionality that is needed or provided by the service that does not relate to a service contract. For example, a service might have an infrastructure endpoint that provides metadata information.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4808754468286016792?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4808754468286016792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/infrastructure-endpoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4808754468286016792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4808754468286016792'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/infrastructure-endpoint.html' title='Infrastructure endpoint'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8562229492691116478</id><published>2011-09-26T03:43:00.002-07:00</published><updated>2011-09-26T03:43:53.926-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Application endpoint</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;Application endpoint&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;An endpoint exposed by the application and that corresponds to a service contract implemented by the application.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8562229492691116478?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8562229492691116478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/application-endpoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8562229492691116478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8562229492691116478'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/application-endpoint.html' title='Application endpoint'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5792099436275278151</id><published>2011-09-26T03:43:00.000-07:00</published><updated>2011-09-26T03:43:14.502-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Endpoint</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Endpoint&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;An endpoint is a construct at which messages are sent or received (or both). It comprises a location (an address) that defines where messages can be sent, a&amp;nbsp; specification of the communication mechanism (a binding) that described how&amp;nbsp; messages should be sent, and a definition for a set of messages that can be sent or&amp;nbsp; received (or both) at that location (a service contract) that describes what message can be sent.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;An WCF service is exposed to the world as a collection of endpoints.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5792099436275278151?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5792099436275278151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/endpoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5792099436275278151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5792099436275278151'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/endpoint.html' title='Endpoint'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-2393882410804104089</id><published>2011-09-26T03:42:00.001-07:00</published><updated>2011-09-26T03:42:31.847-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Service</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Service&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A service is a construct that exposes one or more endpoints, with each endpoint&amp;nbsp; exposing one or more service operations.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-2393882410804104089?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/2393882410804104089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2393882410804104089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2393882410804104089'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/service.html' title='Service'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-99902565353704115</id><published>2011-09-26T03:41:00.001-07:00</published><updated>2011-09-26T03:41:54.029-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Message</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;Message&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A message is a self-contained unit of data that may consist of several parts, including&amp;nbsp; a body and headers.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-99902565353704115?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/99902565353704115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/message.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/99902565353704115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/99902565353704115'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/message.html' title='Message'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1771042435169972133</id><published>2011-09-26T03:40:00.000-07:00</published><updated>2011-09-26T03:40:41.260-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Communication Protocols</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;strong&gt;Communication Protocols&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;One required element of the communication stack is the transport protocol. Messages can be sent over intranets and the Internet using common transports, such as HTTP and TCP. Other&amp;nbsp; transports are included that support communication with Microsoft Message Queuing&amp;nbsp; (MSMQ) applications and nodes on a Peer Networking mesh. More transport mechanisms&amp;nbsp; can be added using the built-in extension points of WCF.&lt;br /&gt;&lt;br /&gt;Another required element in the communication stack is the encoding that specifies how any&lt;br /&gt;&lt;br /&gt;given message is formatted. WCF provides the following encodings:&lt;br /&gt;&lt;br /&gt;· Text encoding, an interoperable encoding.&lt;br /&gt;· Message Transmission Optimization Mechanism (MTOM) encoding, which is an interoperable way for efficiently sending unstructured binary data to and from a service.&lt;br /&gt;· Binary encoding for efficient transfer.&lt;br /&gt;&lt;br /&gt;More encoding mechanisms (for example, a compression encoding) can be added using the built-in extension points of WCF.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1771042435169972133?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1771042435169972133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/communication-protocols.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1771042435169972133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1771042435169972133'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/communication-protocols.html' title='Communication Protocols'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4677628417240096799</id><published>2011-09-26T03:38:00.000-07:00</published><updated>2011-09-26T03:38:44.001-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>Messaging and Endpoints</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Messaging and Endpoints&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;WCF is based on the notion of message-based communication, and anything that can be modeled as a message (for example, an HTTP request or an MSMQ message) can be represented in a uniform way in the programming model. This enables a unified API across&amp;nbsp; different transport mechanisms.The model distinguishes between clients, which are applications that initiate communication,&amp;nbsp; and services, which are applications that wait for clients to communicate with them and respond to that communication. A single application can act as both a client and a service.&amp;nbsp; Messages are sent between endpoints. Endpoints are places where messages are sent or received (or both), and they define all the information required for the message exchange. A service exposes one or more application endpoints (as well as zero or more infrastructure&amp;nbsp; endpoints), and the client generates an endpoint that is compatible with one of the service's&lt;/div&gt;&lt;div style="text-align: justify;"&gt;endpoints.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;An endpoint describes in a standard-based way where messages should be sent, how they should be sent, and what the messages should look like. A service can expose this information as metadata that clients can process to generate appropriate WCF clients and communication stacks.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4677628417240096799?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4677628417240096799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/messaging-and-endpoints.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4677628417240096799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4677628417240096799'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/messaging-and-endpoints.html' title='Messaging and Endpoints'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1494843183393602037</id><published>2011-09-18T23:58:00.000-07:00</published><updated>2011-09-18T23:58:08.948-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>ASP.NET Caching Features</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;ASP.NET Caching Features&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;One of the most important factors in building high-performance, scalable Web applications is the ability to store items, whether data objects, pages, or parts of a page, in memory the initial time they are requested. You can store these items on the Web server or other software in the request stream, such as the proxy server or browser. This allows you to avoid recreating information that satisfied a previous request, particularly information that demands significant processor time or other resources. Known as caching, it allows you to use a number of techniques to store page output or application data across HTTP requests and reuse it. Thus, the server does not have to recreate information, saving time and resources.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;ASP.NET provides two types of caching that you can use to create high-performance Web applications. The first is called output caching, which allows you to store dynamic page and user control responses on any HTTP 1.1 cache-capable device in the output stream, from the originating server to the requesting browser. On subsequent requests, the page or user control code is not executed; the cached output is used to satisfy the request. The second type of caching is traditional application data caching, which you can use to programmatically store arbitrary objects, such as data sets, to server memory so that your application can save the time and resources it takes to recreate them.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Caching ASP.NET Pages&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;ASP.NET allows you to cache the entire response content for dynamic pages on HTTP 1.1 capable mechanisms, including browsers, proxy servers, and the Web server where your application resides. This provides a powerful way for you to increase the performance of your Web applications. Called output caching, it allows subsequent requests for a particular page to be satisfied from the cache so the code that initially creates the page does not have to be run upon subsequent requests. Using this technique to cache your site's most frequently accessed pages can increase your Web server's throughput, commonly measured in requests per second, substantially.&lt;br /&gt;&lt;br /&gt;You have your choice of a high-level declarative API or a low-level programmatic API when manipulating the output cache for a page. You can use the former by including the @ OutputCache directive in the .aspx file for the page. The @ OutputCache directive can meet nearly all the common needs you may have when you want to cache a page's output. The following directive, when included in an .aspx file, sets an expiration of 60 seconds for the cached output of a dynamically generated page.&lt;br /&gt;&lt;br /&gt;&lt;!--OutputCache Duration="60" VaryByParam="None"--&gt;&lt;br /&gt;&lt;br /&gt;CAUTION When you use the @ OutputCache directive, the Duration and VaryByParam attributes are required. If you do not include them, a parser error occurs when the page is first requested. If you do not want to use the functionality that the VaryByParam attribute provides, you must set its value to None. For more information about using the VaryByParam attribute, see Caching Multiple Versions of a Page.&lt;br /&gt;&lt;br /&gt;ASP.NET also includes a set of APIs that control output-cache expirations and policies for a page programmatically through the HttpCachePolicy class. This class, its methods, and its properties are available through the HttpResponse.Cache property. In turn, you can access this property from the Page object through the Page.Response property.&lt;br /&gt;&lt;br /&gt;You can enable or disable page output caching for cache-capable devices in the request stream either declaratively or programmatically as well. In the @ OutputCache directive for a page you can use the Location attribute to specify whether the page's output can be cached on proxy servers, browser clients, the originating Web server, or all or none of these. You can do the same programmatically using the HttpCachePolicy.SetCacheability method to specify the appropriate HttpCacheability enumeration value for your page. For more information, see Setting the Cacheability of a Page. &lt;br /&gt;&lt;br /&gt;Responses generated by GET requests with query string parameters or form POST requests with parameters can also be cached, but caching for the passed parameters must be explicitly enabled using the @ OutputCache directive's VaryByParam attribute. For more information, see Caching Multiple Versions of a Page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Caching Options in ASP.NET&lt;/strong&gt; &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;ASP.NET supports three types of caching for Web-based applications: &lt;br /&gt;&lt;br /&gt;• Page Level Caching (called Output Caching) &lt;br /&gt;&lt;br /&gt;• Page Fragment Caching (often called Partial-Page Output Caching) &lt;br /&gt;&lt;br /&gt;• Programmatic or Data Caching &lt;br /&gt;&lt;br /&gt;We'll look at each of these options, including how, and when, to use each option to increase your site's performance! &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1494843183393602037?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1494843183393602037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/aspnet-caching-features.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1494843183393602037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1494843183393602037'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/aspnet-caching-features.html' title='ASP.NET Caching Features'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8873755532936598430</id><published>2011-09-18T23:51:00.000-07:00</published><updated>2011-09-18T23:51:47.335-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Duplicate Rows</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;How does one eliminate duplicates rows from a table?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Choose one of the following queries to identify or remove duplicate rows from a table leaving only unique&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;records in the table:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Method 1:&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;DELETE FROM table_name A WHERE ROWID &amp;gt; (&amp;nbsp;SELECT min(rowid) FROM table_name B&amp;nbsp;WHERE A.key_values = B.key_values);&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Method 2:&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;create table table_name2 as select distinct * from table_name1;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;drop table_name1;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;rename table_name2 to table_name1;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: #38761d;"&gt;-- Remember to recreate all indexes, constraints, triggers, etc on table...&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Method 3: &lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;delete from my_table t1&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;where exists (select 'x' from my_table t2&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;where t2.key_value1 = t1.key_value1&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;and t2.key_value2 = t1.key_value2&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue;"&gt;and t2.rowid &amp;gt; t1.rowid);&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Note: One can eliminate N^2 unnecessary operations by creating an index on the joined fields in the inner&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;loop (no need to loop through the entire table on each pass by a record). This will speed-up the deletion&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;process.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Note 2: If you are comparing NOT-NULL columns, use the NVL function. Remember that NULL is not&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;equal to NULL. This should not be a problem as all key columns should be NOT NULL by definition.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8873755532936598430?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8873755532936598430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/duplicate-rows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8873755532936598430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8873755532936598430'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/duplicate-rows.html' title='Duplicate Rows'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-9001253170556950604</id><published>2011-09-18T23:48:00.000-07:00</published><updated>2011-09-18T23:48:40.947-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>special characters</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;How does one escape special characters when building SQL queries?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The LIKE keyword allows for string searches. The '_' wild card character is used to match exactly one&lt;/div&gt;&lt;div style="text-align: justify;"&gt;character, '%' is used to match zero or more occurrences of any characters. These characters can be escaped&amp;nbsp; in SQL. Example:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;SELECT name FROM emp WHERE id LIKE '%\_%' ESCAPE '\';&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Use two quotes for every one displayed. Example:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;SELECT 'Franks''s Oracle site' FROM DUAL;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;SELECT 'A ''quoted'' word.' FROM DUAL;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;SELECT 'A ''''double quoted'''' word.' FROM DUAL;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-9001253170556950604?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/9001253170556950604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/special-characters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/9001253170556950604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/9001253170556950604'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/special-characters.html' title='special characters'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-844734027770534788</id><published>2011-09-18T23:46:00.000-07:00</published><updated>2011-09-18T23:46:44.362-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>DDL, DML and DCL</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;What are the difference between DDL, DML and DCL commands?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;DDL is Data Definition Language statements. Some examples:&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• CREATE - to create objects in the database&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• ALTER - alters the structure of the database&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• DROP - delete objects from the database&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• COMMENT - add comments to the data dictionary&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• GRANT - gives user's access privileges to database&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• REVOKE - withdraw access privileges given with the GRANT command&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;DML is Data Manipulation Language statements. Some examples:&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• SELECT - retrieve data from the a database&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• INSERT - insert data into a table&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• UPDATE - updates existing data within a table&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• DELETE - deletes all records from a table, the space for the records remain&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• CALL - call a PL/SQL or Java subprogram&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• EXPLAIN PLAN - explain access path to data&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• LOCK TABLE - control concurrency&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;DCL is Data Control Language statements. Some examples:&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• COMMIT - save work done&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• SAVEPOINT - identify a point in a transaction to which you can later roll back&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• ROLLBACK - restore database to original since the last COMMIT&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• SET TRANSACTION - Change transaction options like what rollback segment to use&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-844734027770534788?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/844734027770534788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/09/ddl-dml-and-dcl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/844734027770534788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/844734027770534788'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/09/ddl-dml-and-dcl.html' title='DDL, DML and DCL'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5521614647691052794</id><published>2011-08-03T11:31:00.001-07:00</published><updated>2011-08-08T08:36:06.341-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Execution Plan</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_ulfamo="115" style="text-align: justify;"&gt;&lt;strong closure_uid_ulfamo="125"&gt;What is an execution plan? When would you use it? How would you view the execution plan?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_ulfamo="132" style="text-align: justify;"&gt;An execution plan is basically a road map that graphically or textually shows the data retrieval methods chosen by the SQL Server query optimizer for a stored procedure or ad-hoc query and is a very useful tool for a developer to understand the performance characteristics of a query or stored procedure since the plan is the one that SQL Server will place in its cache and use to execute the stored procedure or query. From within Query Analyzer is an option called “Show Execution Plan” (located on the Query drop-down menu). If this option is turned on it will display query execution plan in separate window when query is ran again.&lt;/div&gt;&lt;br /&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004EBT5CU&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005DD7H50&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003WOLOLU&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5521614647691052794?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5521614647691052794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/execution-plan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5521614647691052794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5521614647691052794'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/execution-plan.html' title='Execution Plan'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1181126321130822207</id><published>2011-08-03T11:30:00.000-07:00</published><updated>2011-08-08T09:54:44.685-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>XML &amp; SQL</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_i3zkdr="128" style="text-align: justify;"&gt;&lt;strong&gt;How do SQL server 2000 and XML linked? Can XML be used to access data?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_i3zkdr="131" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;FOR XML (ROW, AUTO, EXPLICIT)&lt;/div&gt;&lt;div closure_uid_i3zkdr="132" style="text-align: justify;"&gt;You can execute SQL queries against existing relational databases to return results as XML rather than standard rowsets. These queries can be executed directly or from within stored procedures. To retrieve XML results, use the FOR XML clause of the SELECT statement and specify an XML mode of RAW, AUTO, or EXPLICIT.&lt;/div&gt;&lt;div closure_uid_i3zkdr="133" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_i3zkdr="144" style="text-align: justify;"&gt;&lt;strong&gt;OPENXML&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_i3zkdr="129" style="text-align: justify;"&gt;OPENXML is a Transact-SQL keyword that provides a relational/rowset view over an in-memory XML document. OPENXML is a rowset provider similar to a table or a view. OPENXML provides a way to access XML data within the Transact-SQL context by transferring data from an XML document into the relational tables. Thus, OPENXML allows you to manage an XML document and its interaction with the relational environment.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004P5O6OM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005DD7H50&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1181126321130822207?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1181126321130822207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/xml-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1181126321130822207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1181126321130822207'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/xml-sql.html' title='XML &amp; SQL'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1554747097397085876</id><published>2011-08-03T11:29:00.000-07:00</published><updated>2011-08-08T08:43:23.941-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Advantages of Stored Procedure</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_ao8lxq="109"&gt;&lt;strong closure_uid_ao8lxq="143"&gt;Advantages of Stored Procedure.&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;div closure_uid_ao8lxq="114"&gt;Stored procedure can reduced network traffic and latency, boosting application performance.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_ao8lxq="115"&gt;Stored procedure execution plans can be reused, staying cached in SQL Server’s memory, reducing server overhead.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_ao8lxq="116"&gt;Stored procedures help promote code reuse.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_ao8lxq="117"&gt;Stored procedures can encapsulate logic. You can change stored procedure code without affecting clients.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_ao8lxq="118"&gt;&lt;div closure_uid_8zjo04="107"&gt;Stored procedures provide better security to your data.&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0054SMIH6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005FDWIGQ&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_ao8lxq="118"&gt;&lt;div closure_uid_8zjo04="107"&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005DD7H50&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1554747097397085876?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1554747097397085876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/advantages-of-stored-procedure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1554747097397085876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1554747097397085876'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/advantages-of-stored-procedure.html' title='Advantages of Stored Procedure'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8402559893425929966</id><published>2011-08-03T11:27:00.001-07:00</published><updated>2011-08-08T08:44:40.972-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Self Join &amp;  Cross Join?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_meeytp="110" style="text-align: justify;"&gt;&lt;strong&gt;&lt;span&gt;&lt;/span&gt;What is Self Join?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_meeytp="109" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_meeytp="112" closure_uid_rz8yyi="107" style="text-align: justify;"&gt;&lt;div closure_uid_p2keq3="107"&gt;This is a particular case when one table joins to itself, with one or two aliases to avoid confusion. A self join can be of any type, as long as the joined tables are the same. A self join is rather unique in that it involves a relationship with only one table. The common example is when company have a hierarchal reporting structure whereby one member of staff reports to another.&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_meeytp="128" closure_uid_rz8yyi="132" style="text-align: justify;"&gt;&lt;strong&gt;What is Cross Join?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_meeytp="130" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_meeytp="116" style="text-align: justify;"&gt;&lt;div closure_uid_p2keq3="109"&gt;A cross join that does not have a WHERE clause produces the Cartesian product of the tables involved in the join. The size of a Cartesian product result set is the number of rows in the first table multiplied by the number of rows in the second table. The common example is when company wants to combine each product with a pricing table to analyze each product at each price.&lt;/div&gt;&lt;div closure_uid_p2keq3="109"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_p2keq3="109"&gt;&lt;span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000LRMS66&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003ZX8B3W&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003ZX8B0U&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_p2keq3="109"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8402559893425929966?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8402559893425929966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/self-join-cross-join.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8402559893425929966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8402559893425929966'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/self-join-cross-join.html' title='Self Join &amp;  Cross Join?'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3500353776915570667</id><published>2011-08-03T11:26:00.000-07:00</published><updated>2011-08-03T11:26:37.933-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Table &amp; Indexes</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div closure_uid_vpw6n9="115" style="text-align: justify;"&gt;&lt;div closure_uid_3v7uls="126"&gt;&lt;strong&gt;What is a table called, if it does not have neither Cluster nor Non-cluster Index? What is it used for?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_3v7uls="124" closure_uid_vpw6n9="132" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_vpw6n9="133" style="text-align: justify;"&gt;Unindexed table or Heap. Microsoft Press Books and Book On Line (BOL) refers it as Heap.&lt;/div&gt;&lt;div closure_uid_vpw6n9="134" style="text-align: justify;"&gt;A heap is a table that does not have a clustered index and, therefore, the pages are not linked by pointers. The IAM pages are the only structures that link the pages in a table together.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Unindexed tables are good for fast storing of data. Many times it is better to drop all indexes from table and than do bulk of inserts and to restore those indexes after that.&lt;/div&gt;&lt;div closure_uid_3v7uls="107" closure_uid_vpw6n9="131" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_3v7uls="123" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3500353776915570667?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3500353776915570667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/table-indexes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3500353776915570667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3500353776915570667'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/table-indexes.html' title='Table &amp; Indexes'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5389636952094596052</id><published>2011-08-03T11:25:00.001-07:00</published><updated>2011-08-08T08:47:41.731-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Identity</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_21j0ts="109" closure_uid_9creqj="118" style="text-align: justify;"&gt;&lt;strong closure_uid_9creqj="123"&gt;What is Identity?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_21j0ts="110" closure_uid_9creqj="121" style="text-align: justify;"&gt;&lt;div closure_uid_hsmft6="108"&gt;&lt;div closure_uid_6lq54o="118"&gt;Identity (or AutoNumber) is a column that automatically generates numeric values. A start and increment value can be set, but most DBA leave these at 1. A GUID column also generates numbers, the value of this cannot be controled. Identity/GUID columns do not need to be indexed.&lt;/div&gt;&lt;div closure_uid_6lq54o="118"&gt;&lt;span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B00465S85O&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0040KGYHY&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5389636952094596052?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5389636952094596052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/identity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5389636952094596052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5389636952094596052'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/identity.html' title='Identity'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1896945779395122937</id><published>2011-08-03T11:24:00.002-07:00</published><updated>2011-08-08T09:47:59.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Error and Rowcount</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_pm0a9="109" closure_uid_sjzqxx="118" style="text-align: justify;"&gt;&lt;strong closure_uid_pm0a9="122"&gt;How to get @@error and @@rowcount at the same time?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_f5rk0e="127" closure_uid_sjzqxx="120" style="text-align: justify;"&gt;&lt;div closure_uid_mu4rfs="107"&gt;If @@Rowcount is checked after Error checking statement then it will have 0 as the value of @@Recordcount as it would have been reset. And if @@Recordcount is checked before the error-checking statement then @@Error would get reset. To get @@error and @@rowcount at the same time do both in same statement and store them in local variable.&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003WOLOLU&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004P5O6OM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span closure_uid_mu4rfs="127" style="font-size: small;"&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1896945779395122937?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1896945779395122937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/error-and-rowcount.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1896945779395122937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1896945779395122937'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/error-and-rowcount.html' title='Error and Rowcount'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-730306653588817443</id><published>2011-08-03T11:24:00.000-07:00</published><updated>2011-08-08T09:18:44.491-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>De-normalization</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_yrw09j="106" style="text-align: justify;"&gt;&lt;strong&gt;What is De-normalization?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_yrw09j="137" style="text-align: justify;"&gt;&lt;div closure_uid_ykq8db="108"&gt;De-normalization is the process of attempting to optimize the performance of a database by adding redundant data. It is sometimes necessary because current DBMSs implement the relational model poorly. A true relational DBMS would allow for a fully normalized database at the logical level, while providing physical storage of data that is tuned for high performance. De-normalization is a technique to move from higher to lower normal forms of database modeling in order to speed up database access.&lt;/div&gt;&lt;div closure_uid_ykq8db="108"&gt;&lt;span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003VNKNEQ&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B001ECQVSS&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003WOLOLU&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-730306653588817443?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/730306653588817443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/de-normalization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/730306653588817443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/730306653588817443'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/de-normalization.html' title='De-normalization'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4656687866329228750</id><published>2011-08-03T11:23:00.000-07:00</published><updated>2011-08-08T09:19:50.985-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Relational tables</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_kp0hd0="118"&gt;&lt;strong closure_uid_kp0hd0="145"&gt;&lt;span&gt;&lt;/span&gt;What are the properties of the Relational tables?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_agvasq="107"&gt;Relational tables have six properties:&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;div closure_uid_kp0hd0="131"&gt;Values are atomic.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_kp0hd0="132"&gt;Column values are of the same kind.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_kp0hd0="133"&gt;Each row is unique.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_kp0hd0="134"&gt;The sequence of columns is insignificant.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_kp0hd0="135"&gt;&lt;div closure_uid_agvasq="109"&gt;The sequence of rows is insignificant.&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_kp0hd0="136"&gt;&lt;div closure_uid_agvasq="110"&gt;Each column must have a unique name.&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_agvasq="110"&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003RZTCWC&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004EYSKM8&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B001UO651S&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4656687866329228750?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4656687866329228750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/relational-tables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4656687866329228750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4656687866329228750'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/relational-tables.html' title='Relational tables'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-2624387360842835215</id><published>2011-08-03T11:22:00.000-07:00</published><updated>2011-08-08T09:22:56.148-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'></title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div closure_uid_ggdomw="109" style="text-align: justify;"&gt;&lt;strong&gt;What is data integrity? Explain constraints?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_ggdomw="121" style="text-align: justify;"&gt;Data integrity is an important feature in SQL Server. When used properly, it ensures that data is accurate, correct, and valid. It also acts as a trap for otherwise undetectable bugs within applications.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_ggdomw="122" style="text-align: justify;"&gt;A &lt;strong&gt;PRIMARY KEY&lt;/strong&gt; constraint is a unique identifier for a row within a database table. Every table should have a primary key constraint to uniquely identify each row and only one primary key constraint can be created for each table. The primary key constraints are used to enforce entity integrity. &lt;/div&gt;&lt;div closure_uid_ggdomw="124" style="text-align: justify;"&gt;A &lt;strong&gt;UNIQUE&lt;/strong&gt; constraint enforces the uniqueness of the values in a set of columns, so no duplicate values are entered. The unique key constraints are used to enforce entity integrity as the primary key constraints.&lt;/div&gt;&lt;div closure_uid_ggdomw="125" style="text-align: justify;"&gt;&lt;div closure_uid_nb0aht="107"&gt;A &lt;strong&gt;FOREIGN KEY&lt;/strong&gt; constraint prevents any actions that would destroy links between tables with the corresponding data values. A foreign key in one table points to a primary key in another table. Foreign keys prevent actions that would leave rows with foreign key values when there are no primary keys with that value. The foreign key constraints are used to enforce referential integrity.&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_ggdomw="126" style="text-align: justify;"&gt;A &lt;strong&gt;CHECK&lt;/strong&gt; constraint is used to limit the values that can be placed in a column. The check constraints are used to enforce domain integrity.&lt;/div&gt;&lt;div closure_uid_ggdomw="127" style="text-align: justify;"&gt;&lt;div closure_uid_nb0aht="122"&gt;A &lt;strong&gt;NOT NULL&lt;/strong&gt; constraint enforces that the column will not accept null values. The not null constraints are used to enforce domain integrity, as the check constraints.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000S5ODO6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000TG8D6I&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002HZ4XMC&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-2624387360842835215?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/2624387360842835215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/what-is-data-integrity-explain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2624387360842835215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2624387360842835215'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/what-is-data-integrity-explain.html' title=''/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-7533962833576826460</id><published>2011-08-03T11:21:00.000-07:00</published><updated>2011-08-08T09:23:28.083-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Primary keys and Foreign keys?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_qthtks="119"&gt;&lt;div closure_uid_f11xmx="116"&gt;&lt;strong closure_uid_qthtks="122"&gt;What are primary keys and foreign keys? &lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_f11xmx="118"&gt;Primary keys are the unique identifiers for each row. They must contain unique values and cannot be null. Due to their importance in relational databases, Primary keys are the most fundamental of all keys and constraints. A table can have only one Primary key.&lt;/div&gt;&lt;div closure_uid_qthtks="132"&gt;&lt;div closure_uid_f11xmx="119"&gt;Foreign keys are both a method of ensuring data integrity and a manifestation of the relationship between tables.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B00005NIOH&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0037STB02&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0047ERVHA&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-7533962833576826460?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/7533962833576826460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/primary-keys-and-foreign-keys.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7533962833576826460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7533962833576826460'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/primary-keys-and-foreign-keys.html' title='Primary keys and Foreign keys?'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1537130847008755099</id><published>2011-08-03T11:20:00.001-07:00</published><updated>2011-08-08T09:24:55.959-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>master, msdb, model, tempdb</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div closure_uid_k3dyhw="119" style="text-align: justify;"&gt;&lt;strong closure_uid_k3dyhw="147"&gt;What is the basic functions for master, msdb, model, tempdb databases?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_k3dyhw="125" style="text-align: justify;"&gt;The Master database holds information for all databases located on the SQL Server instance and is the glue that holds the engine together. Because SQL Server cannot start without a functioning master database, you must administer this database with care.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The msdb database stores information regarding database backups, SQL Agent information, DTS packages, SQL Server jobs, and some replication information such as for log shipping.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The tempdb holds temporary objects such as global and local temporary tables and stored procedures.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_k3dyhw="126" style="text-align: justify;"&gt;&lt;div closure_uid_8de1b5="118"&gt;The model is essentially a template database used in the creation of any new user database created in the instance.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0029XDZIK&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005BHIESC&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000VXELEW&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1537130847008755099?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1537130847008755099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/master-msdb-model-tempdb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1537130847008755099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1537130847008755099'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/master-msdb-model-tempdb.html' title='master, msdb, model, tempdb'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3117707585862854704</id><published>2011-08-03T11:18:00.000-07:00</published><updated>2011-08-08T09:26:24.189-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Local and a Global Variable</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_yc6qib="106" style="text-align: justify;"&gt;&lt;strong closure_uid_yc6qib="136"&gt;﻿What is the difference between a local and a global variable?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_yc6qib="106" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_yc6qib="131" style="text-align: justify;"&gt;A local temporary table exists only for the duration of a connection or, if defined inside a compound statement, for the duration of the compound statement. &lt;/div&gt;&lt;div closure_uid_yc6qib="132" style="text-align: justify;"&gt;&lt;div closure_uid_1p0ct0="107"&gt;A global temporary table remains in the database permanently, but the rows exist only within a given connection. When connection are closed, the data in the global temporary table disappears. However, the table definition remains with the database for access when database is opened next time.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B001CSMJKS&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0001EMM0G&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B00143UIC2&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3117707585862854704?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3117707585862854704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/local-and-global-variable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3117707585862854704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3117707585862854704'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/local-and-global-variable.html' title='Local and a Global Variable'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-6942030844232936440</id><published>2011-08-03T11:17:00.001-07:00</published><updated>2011-08-08T09:26:55.849-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Log shipping</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_fr9ndm="109"&gt;&lt;div closure_uid_hejtxj="109"&gt;&lt;strong closure_uid_fr9ndm="121"&gt;What is log shipping?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_fr9ndm="136" style="text-align: justify;"&gt;&lt;div closure_uid_hejtxj="110"&gt;Log shipping is the process of automating the backup of database and transaction log files on a production SQL server, and then restoring them onto a standby server. Enterprise Editions only supports log shipping. In log shipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db can be used this as the Disaster Recovery plan. The key feature of log shipping is that is will automatically backup transaction logs throughout the day and automatically restore them on the standby server at defined interval.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003VWJ2K8&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B001PGXHXA&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003VWKPHC&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-6942030844232936440?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/6942030844232936440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/log-shipping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6942030844232936440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6942030844232936440'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/log-shipping.html' title='Log shipping'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3647589103895194420</id><published>2011-08-03T11:16:00.001-07:00</published><updated>2011-08-08T09:27:32.424-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>ERROR &amp;&amp; Raiseerror</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div closure_uid_z6ub21="109" style="text-align: justify;"&gt;&lt;strong closure_uid_z6ub21="122"&gt;What is @@ERROR?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_z6ub21="135" style="text-align: justify;"&gt;The @@ERROR automatic variable returns the error code of the last Transact-SQL statement. If there was no error, @@ERROR returns zero. Because @@ERROR is reset after each Transact-SQL statement, it must be saved to a variable if it is needed to process it further after checking it.&lt;/div&gt;&lt;div closure_uid_z6ub21="121" style="text-align: justify;"&gt;&lt;strong closure_uid_z6ub21="124"&gt;What is Raiseerror? &lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_z6ub21="145" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_z6ub21="136" style="text-align: justify;"&gt;&lt;div closure_uid_h266ri="128"&gt;Stored procedures report errors to client applications via the RAISERROR command. RAISERROR doesn’t change the flow of a procedure; it merely displays an error message, sets the @@ERROR automatic variable, and optionally writes the message to the SQL Server error log and the NT application event log.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0007QCQGI&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004NET1E0&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002IUG14O&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3647589103895194420?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3647589103895194420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/error-raiseerror.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3647589103895194420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3647589103895194420'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/error-raiseerror.html' title='ERROR &amp;&amp; Raiseerror'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-7525877482757408604</id><published>2011-08-03T11:15:00.001-07:00</published><updated>2011-08-08T09:28:03.184-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Recursive stored procedure</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_b6wkgf="115" style="text-align: justify;"&gt;&lt;div closure_uid_p0npta="107"&gt;&lt;strong closure_uid_b6wkgf="129"&gt;&lt;span&gt;&lt;/span&gt;Can a stored procedure call itself or recursive stored procedure? How many level SP nesting possible?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_b6wkgf="137" style="text-align: justify;"&gt;&lt;div closure_uid_p0npta="109"&gt;Yes. Because Transact-SQL supports recursion, you can write stored procedures that call themselves. Recursion can be defined as a method of problem solving wherein the solution is arrived at by repetitively applying it to subsets of the problem. A common application of recursive logic is to perform numeric computations that lend themselves to repetitive evaluation by the same processing steps. Stored procedures are nested when one stored procedure calls another or executes managed code by referencing a CLR routine, type, or aggregate. You can nest stored procedures and managed code references up to 32 levels.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004EBT5CU&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003WOLOLU&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-7525877482757408604?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/7525877482757408604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/recursive-stored-procedure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7525877482757408604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7525877482757408604'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/recursive-stored-procedure.html' title='Recursive stored procedure'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5560484844330517727</id><published>2011-08-03T11:14:00.001-07:00</published><updated>2011-08-08T09:28:29.074-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>SQL server agent</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_s3e5sc="122" style="text-align: justify;"&gt;&lt;div closure_uid_xav18="116"&gt;&lt;strong closure_uid_s3e5sc="126"&gt;What is SQL server agent?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_s3e5sc="138" style="text-align: justify;"&gt;SQL Server agent plays an important role in the day-to-day tasks of a database administrator (DBA). It is often overlooked as one of the main tools for SQL Server management. Its purpose is to ease the implementation of tasks for the DBA, with its full-function scheduling engine, which allows you to schedule your own jobs and scripts.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004HZYA6E&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003CW67UK&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004P5O6OM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5560484844330517727?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5560484844330517727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/sql-server-agent.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5560484844330517727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5560484844330517727'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/sql-server-agent.html' title='SQL server agent'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-905213044914559018</id><published>2011-08-03T11:13:00.001-07:00</published><updated>2011-08-08T09:30:20.409-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Authentication Modes</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_l0zu3b="117" style="text-align: justify;"&gt;&lt;strong closure_uid_l0zu3b="138"&gt;What are the authentication modes in SQL Server? How can it be changed?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_l0zu3b="124" style="text-align: justify;"&gt;&lt;div closure_uid_gld82e="107"&gt;&lt;strong&gt;&lt;span style="font-size: x-small;"&gt;Windows mode and mixed mode (SQL &amp;amp; Windows). &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_l0zu3b="123" style="text-align: justify;"&gt;&lt;div closure_uid_gld82e="120"&gt;To change authentication mode in SQL Server click Start, Programs, Microsoft SQL Server and click SQL Enterprise Manager to run SQL Enterprise Manager from the Microsoft SQL Server program group. Select the server then from the Tools menu select SQL Server Configuration Properties, and choose the Security page.&lt;span&gt;&lt;span&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=debuglog-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B000N2G3RY" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin: 0px; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important;" width="1" /&gt;&lt;/span&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=debuglog-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B000N2G3RY" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin: 0px; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important;" width="1" /&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000N2G3RY&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0055IU4GM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004UB2WAQ&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-905213044914559018?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/905213044914559018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/authentication-modes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/905213044914559018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/905213044914559018'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/authentication-modes.html' title='Authentication Modes'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8604956586903479347</id><published>2011-08-03T11:12:00.000-07:00</published><updated>2011-08-08T09:33:19.559-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>User -Defined functions</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_f3jgos="108" closure_uid_rl75b9="113" style="text-align: justify;"&gt;&lt;div closure_uid_f3jgos="121"&gt;&lt;strong&gt;What is User Defined Functions?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_f3jgos="109"&gt;User-Defined Functions allow to define its own T-SQL functions that can accept 0 or more parameters and return a single scalar data value or a table data type.&lt;/div&gt;&lt;div closure_uid_f3jgos="122"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;&lt;strong&gt;What kind of User-Defined Functions can be created?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_8pligo="107" closure_uid_rl75b9="115" style="text-align: justify;"&gt;There are three types of User-Defined functions in SQL Server 2000 and they are Scalar, Inline Table-Valued and Multi-statement Table-valued.&lt;/div&gt;&lt;div closure_uid_rl75b9="115" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_rl75b9="116" style="text-align: justify;"&gt;&lt;strong&gt;Scalar User-Defined Function&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_rl75b9="117" style="text-align: justify;"&gt;A Scalar user-defined function returns one of the scalar data types. Text, ntext, image and timestamp data types are not supported. These are the type of user-defined functions that most developers are used to in other programming languages. You pass in 0 to many parameters and you get a return value.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_rl75b9="119" style="text-align: justify;"&gt;&lt;strong&gt;Inline Table-Value User-Defined Function&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_rl75b9="120" style="text-align: justify;"&gt;An Inline Table-Value user-defined function returns a table data type and is an exceptional alternative to a view as the user-defined function can pass parameters into a T-SQL select command and in essence provide us with a parameterized, non-updateable view of the underlying tables.&lt;/div&gt;&lt;div closure_uid_rl75b9="141" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_8pligo="129" closure_uid_rl75b9="122" style="text-align: justify;"&gt;&lt;strong&gt;Multi-statement Table-Value User-Defined Function&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_8pligo="130" closure_uid_rl75b9="123" style="text-align: justify;"&gt;A Multi-Statement Table-Value user-defined function returns a table and is also an exceptional alternative to a view as the function can support multiple T-SQL statements to build the final result where the view is limited to a single SELECT statement. Also, the ability to pass parameters into a T-SQL select command or a group of them gives us the capability to in essence create a parameterized, non-updateable view of the data in the underlying tables. Within the create function command you must define the table structure that is being returned. After creating this type of user-defined function, It can be used in the FROM clause of a T-SQL command unlike the behavior found when using a stored procedure which can also return record sets.&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004P5O6OM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005DD7H50&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8604956586903479347?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8604956586903479347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/user-defined-functions_03.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8604956586903479347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8604956586903479347'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/user-defined-functions_03.html' title='User -Defined functions'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8359634092881763972</id><published>2011-08-03T11:08:00.001-07:00</published><updated>2011-08-08T09:33:55.955-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>SQL Profiler</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div closure_uid_w8suda="118" style="text-align: justify;"&gt;&lt;strong closure_uid_w8suda="129"&gt;What is SQL Profiler?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_w8suda="122" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_w8suda="130" style="text-align: justify;"&gt;SQL Profiler is a graphical tool that allows system administrators to monitor events in an instance of Microsoft SQL Server. You can capture and save data about each event to a file or SQL Server table to analyze later. For example, you can monitor a production environment to see which stored procedures are hampering performance by executing too slowly. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_w8suda="131" style="text-align: justify;"&gt;&lt;div closure_uid_9dryzd="107"&gt;Use SQL Profiler to monitor only the events in which you are interested. If traces are becoming too large, you can filter them based on the information you want, so that only a subset of the event data is collected. Monitoring too many events adds overhead to the server and the monitoring process and can cause the trace file or trace table to grow very large, especially when the monitoring process takes place over a long period of time.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000AST3AK&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0029XLH4Y&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0029XDZIK&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8359634092881763972?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8359634092881763972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/sql-profiler.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8359634092881763972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8359634092881763972'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/sql-profiler.html' title='SQL Profiler'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-7176214481579001811</id><published>2011-08-03T11:05:00.001-07:00</published><updated>2011-08-08T09:34:30.198-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Sub-query</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div closure_uid_nd4xt1="115" style="text-align: justify;"&gt;&lt;strong closure_uid_nd4xt1="125"&gt;&lt;span&gt;&lt;/span&gt;What is sub-query? Explain properties of sub-query.&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_nd4xt1="135" style="text-align: justify;"&gt;Sub-queries are often referred to as sub-selects, as they allow a SELECT statement to be executed arbitrarily within the body of another SQL statement. A sub-query is executed by enclosing it in a set of parentheses. Sub-queries are generally used to return a single row as an atomic value, though they may be used to compare values against multiple rows with the IN keyword. &lt;/div&gt;&lt;div closure_uid_9ij5c4="107" closure_uid_nd4xt1="148" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_juu4f8="108" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;&lt;div closure_uid_9ij5c4="110"&gt;A subquery is a SELECT statement that is nested within another T-SQL statement. A subquery SELECT statement if executed independently of the T-SQL statement, in which it is nested, will return a result set. Meaning a subquery SELECT statement can standalone and is not depended on the statement in which it is nested. A subquery SELECT statement can return any number of values, and can be found in, the column list of a SELECT statement, a FROM, GROUP BY, HAVING, and/or ORDER BY clauses of a T-SQL statement. A Subquery can also be used as a parameter to a function call. Basically a subquery can be used anywhere an expression can be used.&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_juu4f8="108" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_juu4f8="108" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;&lt;strong&gt;Properties of Sub-Query&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_juu4f8="122" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;A subquery must be enclosed in the parenthesis.&lt;/div&gt;&lt;div closure_uid_juu4f8="123" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;A subquery must be put in the right hand of the comparison operator, and&lt;/div&gt;&lt;div closure_uid_juu4f8="124" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;A subquery cannot contain a ORDER-BY clause.&lt;/div&gt;&lt;div closure_uid_juu4f8="125" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;A query can contain more than one sub-queries.&lt;/div&gt;&lt;div closure_uid_juu4f8="126" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;&lt;strong&gt;What are types of sub-queries?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_juu4f8="128" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;Single-row subquery, where the subquery returns only one row.&lt;/div&gt;&lt;div closure_uid_juu4f8="129" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;Multiple-row subquery, where the subquery returns multiple rows,.and&lt;/div&gt;&lt;div closure_uid_juu4f8="130" closure_uid_nd4xt1="136" style="text-align: justify;"&gt;&lt;div closure_uid_9ij5c4="109"&gt;Multiple column subquery, where the subquery returns multiple columns.&lt;span closure_uid_9ij5c4="111"&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004P5O6OM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005DD7H50&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-7176214481579001811?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/7176214481579001811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/sub-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7176214481579001811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7176214481579001811'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/sub-query.html' title='Sub-query'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3844592596267830038</id><published>2011-08-03T11:04:00.001-07:00</published><updated>2011-08-08T09:34:59.443-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>HAVING &amp; WHERE CLAUSE?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_vk5wsq="118" style="text-align: justify;"&gt;&lt;strong&gt;What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_vk5wsq="139" style="text-align: justify;"&gt;&lt;div closure_uid_jpr18z="107"&gt;Specifies a search condition for a group or an aggregate. HAVING can be used only with the SELECT statement. HAVING is typically used in a GROUP BY clause. When GROUP BY is not used, HAVING behaves like a WHERE clause. Having Clause is basically used only with the GROUP BY function in a query. WHERE Clause is applied to each row before they are part of the GROUP BY function in a query. HAVING criteria is applied after the the grouping of rows has occurred.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0040KGYHY&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004A92TO2&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B00465S85O&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3844592596267830038?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3844592596267830038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/having-where-clause.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3844592596267830038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3844592596267830038'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/having-where-clause.html' title='HAVING &amp; WHERE CLAUSE?'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-7008384147940928994</id><published>2011-08-03T11:03:00.002-07:00</published><updated>2011-08-08T09:35:55.722-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Function and Stored Procedure</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_bw5ayh="116" closure_uid_ird1v2="118" style="text-align: justify;"&gt;&lt;strong&gt;Difference between Function and Stored Procedure?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_bw5ayh="121" style="text-align: justify;"&gt;UDF can be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section where as Stored procedures cannot be.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;UDFs that return tables can be treated as another rowset. This can be used in JOINs with other tables.&lt;/div&gt;&lt;div closure_uid_bw5ayh="122" style="text-align: justify;"&gt;Inline UDF’s can be though of as views that take parameters and can be used in JOINs and other Rowset operations.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004P5O6OM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005DD7H50&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-7008384147940928994?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/7008384147940928994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/function-and-stored-procedure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7008384147940928994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7008384147940928994'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/function-and-stored-procedure.html' title='Function and Stored Procedure'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1836172222584638484</id><published>2011-08-03T11:03:00.000-07:00</published><updated>2011-08-08T09:37:47.555-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>DELETE &amp; TRUNCATE</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_wa599w="109" style="text-align: justify;"&gt;&lt;strong closure_uid_wa599w="127"&gt;What is difference between DELETE &amp;amp; TRUNCATE commands?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_wa599w="128" style="text-align: justify;"&gt;Delete command removes the rows from a table based on the condition that we provide with a WHERE clause. Truncate will actually remove all the rows from a table and there will be no data in the table after we run the truncate command.&lt;/div&gt;&lt;div closure_uid_26ipkf="107" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_wa599w="129" style="text-align: justify;"&gt;&lt;strong&gt;TRUNCATE&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_26ipkf="134" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_26ipkf="125" style="text-align: justify;"&gt;TRUNCATE is faster and uses fewer system and transaction log resources than DELETE.&lt;/div&gt;&lt;div closure_uid_26ipkf="109" style="text-align: justify;"&gt;TRUNCATE removes the data by deallocating the data pages used to store the table’s data, and only the page deallocations are recorded in the transaction log.&lt;/div&gt;&lt;div closure_uid_26ipkf="135" style="text-align: justify;"&gt;TRUNCATE removes all rows from a table, but the table structure and its columns, constraints, indexes and so on remain. The counter used by an identity for new rows is reset to the seed for the column.&lt;/div&gt;&lt;div closure_uid_26ipkf="136" style="text-align: justify;"&gt;You cannot use TRUNCATE TABLE on a table referenced by a FOREIGN KEY constraint. Because TRUNCATE TABLE is not logged, it cannot activate a trigger.&lt;/div&gt;&lt;div closure_uid_26ipkf="138" style="text-align: justify;"&gt;TRUNCATE can not be Rolled back using logs.&lt;/div&gt;&lt;div closure_uid_26ipkf="140" style="text-align: justify;"&gt;TRUNCATE is DDL Command.&lt;/div&gt;&lt;div closure_uid_26ipkf="141" style="text-align: justify;"&gt;TRUNCATE Resets identity of the table.&lt;/div&gt;&lt;div closure_uid_26ipkf="142" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_wa599w="135" style="text-align: justify;"&gt;&lt;strong&gt;DELETE&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;DELETE removes rows one at a time and records an entry in the transaction log for each deleted row.&lt;/div&gt;&lt;div closure_uid_26ipkf="144" style="text-align: justify;"&gt;If you want to retain the identity counter, use DELETE instead. If you want to remove table definition and its data, use the DROP TABLE statement.&lt;/div&gt;&lt;div closure_uid_26ipkf="143" style="text-align: justify;"&gt;DELETE Can be used with or without a WHERE clause&lt;/div&gt;&lt;div closure_uid_26ipkf="145" style="text-align: justify;"&gt;DELETE Activates Triggers.&lt;/div&gt;&lt;div closure_uid_26ipkf="146" style="text-align: justify;"&gt;DELETE Can be Rolled back using logs.&lt;/div&gt;&lt;div closure_uid_26ipkf="147" style="text-align: justify;"&gt;DELETE is DML Command.&lt;/div&gt;&lt;div closure_uid_26ipkf="148" style="text-align: justify;"&gt;DELETE does not reset identity of the table.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002HP8EKE&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004XU0CDI&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005EUSC1U&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1836172222584638484?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1836172222584638484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/delete-truncate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1836172222584638484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1836172222584638484'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/delete-truncate.html' title='DELETE &amp; TRUNCATE'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-755727971577561699</id><published>2011-08-03T11:01:00.000-07:00</published><updated>2011-08-08T09:56:10.642-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>NOLOCK</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_4aic79="120" style="text-align: justify;"&gt;&lt;strong&gt;What is a NOLOCK?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_4aic79="125" style="text-align: justify;"&gt;&lt;div closure_uid_ib3zkj="121"&gt;&lt;div closure_uid_yl91tq="116"&gt;Using the NOLOCK query optimiser hint is generally considered good practice in order to improve concurrency on a busy system. When the NOLOCK hint is included in a SELECT statement, no locks are taken when data is read. The result is a Dirty Read, which means that another process could be updating the data at the exact time you are reading it. There are no guarantees that your query will retrieve the most recent data. The advantage to performance is that your reading of data will not block updates from taking place, and updates will not block your reading of data. SELECT statements take Shared (Read) locks. This means that multiple SELECT statements are allowed simultaneous access, but other processes are blocked from modifying the data. The updates will queue until all the reads have completed, and reads requested after the update will wait for the updates to complete. The result to your system is delay(blocking).&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004P5O6OM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005DD7H50&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-755727971577561699?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/755727971577561699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/nolock.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/755727971577561699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/755727971577561699'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/nolock.html' title='NOLOCK'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8969227193017977949</id><published>2011-08-03T10:52:00.000-07:00</published><updated>2011-08-08T09:56:39.523-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Relationships</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div closure_uid_ppeuds="128" style="text-align: justify;"&gt;&lt;div closure_uid_ycvdbj="119"&gt;&lt;strong closure_uid_ppeuds="137"&gt;How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;One-to-One relationship can be implemented as a single table and rarely as two tables with primary and foreign key relationships.&lt;/div&gt;&lt;div closure_uid_ppeuds="127" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;One-to-Many relationships are implemented by splitting the data into two tables with primary key and foreign key relationships.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div closure_uid_ycvdbj="120"&gt;&lt;div closure_uid_aw495f="118"&gt;Many-to-Many relationships are implemented using a junction table with the keys from both the tables forming the composite primary key of the junction table.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0013FG2DA&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000668Z96&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B001D0S8F0&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8969227193017977949?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8969227193017977949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/relationships.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8969227193017977949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8969227193017977949'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/relationships.html' title='Relationships'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3266886451064331404</id><published>2011-08-03T10:51:00.000-07:00</published><updated>2011-08-08T09:57:24.996-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Primary key and a unique Key</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_92m7tw="107" closure_uid_bjfz2h="117" style="text-align: justify;"&gt;&lt;strong closure_uid_bjfz2h="125"&gt;What’s the difference between a primary key and a unique key?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_92m7tw="109" closure_uid_bjfz2h="124" style="text-align: justify;"&gt;&lt;div closure_uid_z86qoq="116"&gt;Both primary key and unique enforce uniqueness of the column on which they are defined. But by default primary key creates a clustered index on the column, where are unique creates a nonclustered index by default. Another major difference is that, primary key doesn’t allow NULLs, but unique key allows one NULL only.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000AST3AK&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0029XLH4Y&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0029XDZIK&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3266886451064331404?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3266886451064331404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/primary-key-and-unique-key.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3266886451064331404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3266886451064331404'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/primary-key-and-unique-key.html' title='Primary key and a unique Key'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5873433489017532417</id><published>2011-08-03T10:49:00.001-07:00</published><updated>2011-08-08T09:58:57.214-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Collation</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_hbto35="126" style="text-align: justify;"&gt;&lt;div closure_uid_juag3z="117"&gt;&lt;strong&gt;What is Collation?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_hbto35="133" style="text-align: justify;"&gt;&lt;div closure_uid_juag3z="119"&gt;Collation refers to a set of rules that determine how data is sorted and compared. Character data is sorted using rules that define the correct character sequence, with options for specifying case-sensitivity, accent marks, kana character types and character width.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B001EWF2GU&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B00332FFIE&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004Q8FFJS&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5873433489017532417?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5873433489017532417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/collation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5873433489017532417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5873433489017532417'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/collation.html' title='Collation'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1301976458676456157</id><published>2011-08-03T10:48:00.000-07:00</published><updated>2011-08-08T10:00:00.070-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Cursors</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_hoqmej="116" closure_uid_z05faq="107" style="text-align: justify;"&gt;&lt;strong closure_uid_hoqmej="136"&gt;What is cursors?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_ew1li7="129" closure_uid_hoqmej="125" style="text-align: justify;"&gt;Cursor is a database object used by applications to manipulate data in a set on a row-by-row basis, instead of the typical SQL commands that operate on all the rows in the set at one time. &lt;/div&gt;&lt;div closure_uid_hoqmej="126" style="text-align: justify;"&gt;In order to work with a cursor we need to perform some steps in the following order:&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;div closure_uid_hoqmej="127" style="text-align: justify;"&gt;Declare cursor&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_hoqmej="128" style="text-align: justify;"&gt;&lt;div closure_uid_ew1li7="107"&gt;Open cursor&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_hoqmej="129" style="text-align: justify;"&gt;&lt;div closure_uid_ew1li7="128"&gt;Fetch row from the cursor&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_hoqmej="130" style="text-align: justify;"&gt;Process fetched row&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_hoqmej="131" closure_uid_z05faq="109" style="text-align: justify;"&gt;Close cursor&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_hoqmej="132" closure_uid_z05faq="110" style="text-align: justify;"&gt;&lt;div closure_uid_ew1li7="109"&gt;Deallocate cursor&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0024R0ZJI&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0055QYJKG&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002OHDIWY&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1301976458676456157?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1301976458676456157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/cursors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1301976458676456157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1301976458676456157'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/cursors.html' title='Cursors'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-7148339087671366713</id><published>2011-08-03T10:47:00.000-07:00</published><updated>2011-08-08T10:03:01.431-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Index Configurations</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_a07sbh="118"&gt;&lt;div closure_uid_cb8ep0="107"&gt;&lt;strong closure_uid_a07sbh="135"&gt;What are the different index configurations a table can have?&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_a07sbh="126"&gt;&lt;div closure_uid_cb8ep0="109"&gt;A table can have one of the following index configurations:&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;div closure_uid_a07sbh="127"&gt;No indexes&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_a07sbh="128"&gt;A clustered index&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_a07sbh="129"&gt;A clustered index and many nonclustered indexes&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_a07sbh="130"&gt;A nonclustered index&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_a07sbh="131"&gt;&lt;div closure_uid_cb8ep0="110"&gt;&lt;div closure_uid_a5cyse="107"&gt;Many nonclustered indexes&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000JQM1DE&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0019K3LI8&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B00143UIC2&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-7148339087671366713?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/7148339087671366713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/index-configurations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7148339087671366713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/7148339087671366713'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/index-configurations.html' title='Index Configurations'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-6981922493478974413</id><published>2011-08-03T10:45:00.001-07:00</published><updated>2011-08-08T10:04:02.750-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Clustered and a Non-Clustered index</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_rc87pw="112" closure_uid_sje0wz="107" style="text-align: justify;"&gt;&lt;strong closure_uid_rc87pw="124"&gt;What is the difference between clustered and a non-clustered index?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_rc87pw="110" style="text-align: justify;"&gt;A clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table can have only one clustered index. The leaf nodes of a clustered index contain the data pages. &lt;/div&gt;&lt;div closure_uid_rc87pw="111" closure_uid_sje0wz="109" style="text-align: justify;"&gt;&lt;div closure_uid_f3rgeg="127"&gt;A nonclustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows on disk. The leaf node of a nonclustered index does not consist of the data pages. Instead, the leaf nodes contain index rows.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003VNKNEQ&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003VNKNF0&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003WOLOLU&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-6981922493478974413?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/6981922493478974413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/clustered-and-non-clustered-index.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6981922493478974413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6981922493478974413'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/clustered-and-non-clustered-index.html' title='Clustered and a Non-Clustered index'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-2684495598943555829</id><published>2011-08-03T10:44:00.001-07:00</published><updated>2011-08-08T10:05:12.003-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>RDBMS</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_oizxx1="133" style="text-align: justify;"&gt;&lt;div closure_uid_uh64pb="107"&gt;&lt;strong&gt;What is RDBMS?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_oizxx1="132" style="text-align: justify;"&gt;&lt;div closure_uid_uh64pb="109"&gt;&lt;div closure_uid_fly219="108"&gt;Relational Data Base Management Systems (RDBMS) are database management systems that maintain data records and indices in tables. Relationships may be created and maintained across and among the data and tables. In a relational database, relationships between data items are expressed by means of tables. Interdependencies among these tables are expressed by data values rather than by pointers. This allows a high degree of data independence. An RDBMS has the capability to recombine the data items from different files, providing powerful tools for data usage.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000LRMS66&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0030BBWHQ&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003ZX8B0U&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-2684495598943555829?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/2684495598943555829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/rdbms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2684495598943555829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2684495598943555829'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/rdbms.html' title='RDBMS'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1474578099152212706</id><published>2011-08-03T10:43:00.000-07:00</published><updated>2011-08-08T10:06:27.173-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Normalization Forms</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_6k2frs="107" closure_uid_r1637l="119" style="text-align: justify;"&gt;&lt;strong closure_uid_r1637l="143"&gt;What are different normalization forms?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_r1637l="129" style="text-align: justify;"&gt;&lt;strong&gt;1NF: Eliminate Repeating Groups&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_r1637l="132" style="text-align: justify;"&gt;Make a separate table for each set of related attributes, and give each table a primary key. Each field contains at most one value from its attribute domain.&lt;/div&gt;&lt;div closure_uid_r1637l="131" style="text-align: justify;"&gt;&lt;strong&gt;2NF: Eliminate Redundant Data&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;If an attribute depends on only part of a multi-valued key, remove it to a separate table.&lt;/div&gt;&lt;div closure_uid_r1637l="133" style="text-align: justify;"&gt;&lt;strong&gt;3NF: Eliminate Columns Not Dependent On Key &lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_r1637l="135" style="text-align: justify;"&gt;If attributes do not contribute to a description of the key, remove them to a separate table. All attributes must be directly dependent on the primary key&lt;/div&gt;&lt;div closure_uid_r1637l="134" style="text-align: justify;"&gt;&lt;strong&gt;BCNF: Boyce-Codd Normal Form&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_6k2frs="109" style="text-align: justify;"&gt;If there are non-trivial dependencies between candidate key attributes, separate them out into distinct tables.&lt;/div&gt;&lt;div closure_uid_6k2frs="110" closure_uid_r1637l="136" style="text-align: justify;"&gt;&lt;strong&gt;4NF: Isolate Independent Multiple Relationships&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_6k2frs="111" style="text-align: justify;"&gt;No table may contain two or more 1:n or n:m relationships that are not directly related.&lt;/div&gt;&lt;div closure_uid_6k2frs="112" closure_uid_r1637l="137" style="text-align: justify;"&gt;&lt;strong&gt;5NF: Isolate Semantically Related Multiple Relationships &lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_6k2frs="113" closure_uid_r1637l="141" style="text-align: justify;"&gt;&lt;div closure_uid_ccsq9n="127"&gt;There may be practical constrains on information that justify separating logically related many-to-many relationships.&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_6k2frs="114" closure_uid_r1637l="139" style="text-align: justify;"&gt;&lt;strong&gt;ONF: Optimal Normal Form&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_6k2frs="115" closure_uid_ccsq9n="117" style="text-align: justify;"&gt;A model limited to only simple (elemental) facts, as expressed in Object Role Model notation.&lt;/div&gt;&lt;div closure_uid_6k2frs="116" closure_uid_r1637l="142" style="text-align: justify;"&gt;&lt;strong&gt;DKNF: Domain-Key Normal Form&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_6k2frs="117" closure_uid_r1637l="121" style="text-align: justify;"&gt;A model free from all modification anomalies. &lt;/div&gt;&lt;div closure_uid_ccsq9n="128" closure_uid_r1637l="125" style="text-align: justify;"&gt;Remember, these normalization guidelines are cumulative. For a database to be in 3NF, it must first fulfill all the criteria of a 2NF and 1NF database.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1611940109&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1402255837&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1474578099152212706?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1474578099152212706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/normalization-forms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1474578099152212706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1474578099152212706'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/normalization-forms.html' title='Normalization Forms'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4464517894556477535</id><published>2011-08-03T10:41:00.001-07:00</published><updated>2011-08-08T10:07:19.643-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Stored Procedure</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_93z2hw="109" closure_uid_i6ilyj="122" style="text-align: justify;"&gt;&lt;strong closure_uid_93z2hw="123"&gt;What is Stored Procedure?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_93z2hw="122" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_93z2hw="137" style="text-align: justify;"&gt;&lt;div closure_uid_i6ilyj="116"&gt;A stored procedure is a named group of SQL statements that have been previously created and stored in the server database. Stored procedures accept input parameters so that a single procedure can be used over the network by several clients using different input data. And when the procedure is modified, all clients automatically get the new version. Stored procedures reduce network traffic and improve performance. Stored procedures can be used to help ensure the integrity of the database.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003TR58KS&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003X57XB8&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004M5KV3A&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4464517894556477535?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4464517894556477535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/stored-procedure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4464517894556477535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4464517894556477535'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/stored-procedure.html' title='Stored Procedure'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3305808457052529936</id><published>2011-08-03T10:40:00.001-07:00</published><updated>2011-08-08T10:08:29.051-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Index</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_h1htxx="118" style="text-align: justify;"&gt;&lt;strong&gt;What is Index?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_h1htxx="126" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_h1htxx="128" closure_uid_iirh64="117" style="text-align: justify;"&gt;An index is a physical structure containing pointers to the data. Indices are created in an existing table to locate rows more quickly and efficiently. It is possible to create an index on one or more columns of a table, and each index is given a name. The users cannot see the indexes, they are just used to speed up queries. Effective indexes are one of the best ways to improve performance in a database application. A table scan happens when there is no index available to help a query. In a table scan SQL Server examines every row in the table to satisfy the query results. Table scans are sometimes unavoidable, but on large tables, scans have a terrific impact on performance.&lt;/div&gt;&lt;div closure_uid_iirh64="132" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_h1htxx="129" closure_uid_iirh64="129" style="text-align: justify;"&gt;Clustered indexes define the physical sorting of a database table’s rows in the storage media. For this reason, each database table may have only one clustered index.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_h1htxx="130" style="text-align: justify;"&gt;Non-clustered indexes are created outside of the database table and contain a sorted list of references to the table itself.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004HO6I4M&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003L77GRO&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004HO6I4W&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3305808457052529936?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3305808457052529936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/index.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3305808457052529936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3305808457052529936'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/index.html' title='Index'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-6252751473904038170</id><published>2011-08-03T10:39:00.001-07:00</published><updated>2011-08-08T10:09:04.200-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>View</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_h6odjt="116" style="text-align: justify;"&gt;&lt;strong closure_uid_h6odjt="139"&gt;What is View?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_9fu25f="107" closure_uid_h6odjt="132" style="text-align: justify;"&gt;A simple view can be thought of as a subset of a table. It can be used for retrieving data, as well as updating or deleting rows. Rows updated or deleted in the view are updated or deleted in the table the view was created with. It should also be noted that as data in the original table changes, so does data in the view, as views are the way to look at part of the original table. The results of using a view are not permanently stored in the database. The data accessed through a view is actually constructed using standard T-SQL select command and can come from one to many different base tables or even other views.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003VWJ2K8&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000SE6IV8&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003VWKPHC&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-6252751473904038170?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/6252751473904038170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6252751473904038170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6252751473904038170'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/view.html' title='View'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1187665691843646996</id><published>2011-08-03T10:37:00.000-07:00</published><updated>2011-08-03T10:37:53.995-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>Trigger</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div closure_uid_q8l8rd="114" style="text-align: justify;"&gt;&lt;strong&gt;What is Trigger?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_q8l8rd="132" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A trigger is a SQL procedure that initiates an action when an event (INSERT, DELETE or UPDATE) occurs. Triggers are stored in and managed by the DBMS.Triggers are used to maintain the referential integrity of data by changing the data in a systematic fashion. A trigger cannot be called or executed; the DBMS automatically fires the trigger as a result of a data modification to the associated table. Triggers can be viewed as similar to stored procedures in that both consist of procedural logic that is stored at the database level. Stored procedures, however, are not event-drive and are not attached to a specific table as triggers are. Stored procedures are explicitly executed by invoking a CALL to the procedure while triggers are implicitly executed. In addition, triggers can also execute stored procedures.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_q8l8rd="136" style="text-align: justify;"&gt;Nested Trigger: A trigger can also contain INSERT, UPDATE and DELETE logic within itself, so when the trigger is fired because of data modification it can also cause another data modification, thereby firing another trigger. A trigger that contains data modification logic within itself is called a nested trigger.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1187665691843646996?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1187665691843646996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/trigger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1187665691843646996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1187665691843646996'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/trigger.html' title='Trigger'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4077021299250887175</id><published>2011-08-03T10:26:00.000-07:00</published><updated>2011-08-08T10:10:08.460-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorials'/><title type='text'>Data Contract</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_ir2s1h="230" style="text-align: justify;"&gt;&lt;strong closure_uid_ir2s1h="127"&gt;Data Contract&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_ir2s1h="129" style="text-align: justify;"&gt;A data contract is a formal agreement between a service and a client that abstractly describes the data to be exchanged.&lt;/div&gt;&lt;div closure_uid_7n2ye4="124" closure_uid_ir2s1h="225" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_ir2s1h="226" style="text-align: justify;"&gt;Data contract can be explicit or implicit. Simple type such as int, string etc has an implicit data contract. User defined object are explicit or Complex type, for which you have to define a Data contract using [DataContract] and [DataMember] attribute.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_ir2s1h="131" style="text-align: justify;"&gt;A data contract can be defined as follows:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;It describes the external format of data passed to and from service operations &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;It defines the structure and types of data exchanged in service messages &lt;/div&gt;&lt;div closure_uid_9eugh7="124" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;It maps a CLR type to an XML Schema &lt;/div&gt;&lt;div closure_uid_9eugh7="107" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_9eugh7="125" style="text-align: justify;"&gt;t defines how data types are serialized and deserialized. Through serialization, you convert an object into a sequence of bytes that can be transmitted over a network. Through deserialization, you reassemble an object from a sequence of bytes that you receive from a calling application. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;It is a versioning system that allows you to manage changes to structured data &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_ir2s1h="132" style="text-align: justify;"&gt;We need to include System.Runtime.Serialization reference to the project. This assembly holds the DataContract and DataMember attribute.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_ir2s1h="133" style="text-align: justify;"&gt;&lt;div closure_uid_9eugh7="127"&gt;Create user defined data type called Employee. This data type should be identified for serialization and deserialization by mentioning with [DataContract] and [DataMember] attribute.&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;pre class="c#" closure_uid_ir2s1h="212" name="code"&gt;[ServiceContract]&lt;br /&gt;    public interface IEmployeeService&lt;br /&gt;    {&lt;br /&gt;        [OperationContract]&lt;br /&gt;        Employee GetEmployeeDetails(int EmpId);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    [DataContract]&lt;br /&gt;    public class Employee&lt;br /&gt;    {&lt;br /&gt;        private string m_Name;&lt;br /&gt;        private int m_Age;&lt;br /&gt;        private int m_Salary;&lt;br /&gt;        private string m_Designation;&lt;br /&gt;        private string m_Manager;&lt;br /&gt;&lt;br /&gt;        [DataMember]&lt;br /&gt;        public string Name&lt;br /&gt;        {&lt;br /&gt;            get { return m_Name; }&lt;br /&gt;            set { m_Name = value; }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        [DataMember]&lt;br /&gt;        public int Age&lt;br /&gt;        {&lt;br /&gt;            get { return m_Age; }&lt;br /&gt;            set { m_Age = value; }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        [DataMember]&lt;br /&gt;        public int Salary&lt;br /&gt;        {&lt;br /&gt;            get { return m_Salary; }&lt;br /&gt;            set { m_Salary = value; }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        [DataMember]&lt;br /&gt;        public string Designation&lt;br /&gt;        {&lt;br /&gt;            get { return m_Designation; }&lt;br /&gt;            set { m_Designation = value; }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        [DataMember]&lt;br /&gt;        public string Manager&lt;br /&gt;        {&lt;br /&gt;            get { return m_Manager; }&lt;br /&gt;            set { m_Manager = value; }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div closure_uid_ir2s1h="134" style="text-align: justify;"&gt;Implementation of the service class is shown below. In GetEmployee method we have created the Employee instance and return to the client. Since we have created the data contract for the Employee class, client will aware of this instance whenever he creates proxy for the service.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;pre class="c#" closure_uid_ir2s1h="212" name="code"&gt;public class EmployeeService : IEmployeeService&lt;br /&gt;    {&lt;br /&gt;        public Employee GetEmployeeDetails(int empId)&lt;br /&gt;        {&lt;br /&gt;            &lt;br /&gt;            Employee empDetail = new Employee();&lt;br /&gt;&lt;br /&gt;            //Do something to get employee details and assign to 'empDetail' properties&lt;br /&gt;&lt;br /&gt;            return empDetail;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_ir2s1h="231" style="text-align: justify;"&gt;&lt;strong&gt;Client side&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_ir2s1h="233" style="text-align: justify;"&gt;On client side we can create the proxy for the service and make use of it. The client side code is shown below.&lt;/div&gt;&lt;div closure_uid_9eugh7="128" style="text-align: justify;"&gt;&lt;pre class="c#" closure_uid_ir2s1h="212" name="code"&gt;protected void btnGetDetails_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;EmployeeServiceClient objEmployeeClient = new EmployeeServiceClient();&lt;br /&gt;&lt;br /&gt;Employee empDetails;&lt;br /&gt;&lt;br /&gt;empDetails = objEmployeeClient.GetEmployeeDetails(empId);&lt;br /&gt;&lt;br /&gt;//Do something on employee details&lt;br /&gt;}&lt;br /&gt;&lt;span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B00005NIOH&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0037STB02&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0047ERVHA&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4077021299250887175?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4077021299250887175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/data-contract.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4077021299250887175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4077021299250887175'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/data-contract.html' title='Data Contract'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5283779191919676466</id><published>2011-08-03T09:43:00.000-07:00</published><updated>2011-08-08T10:10:53.427-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorials'/><title type='text'>Extension Methods</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_lqbyc1="138" style="text-align: justify;"&gt;Another cool feature of C# 3.0 is Extension Methods. They allow you to extend an existing type with new functionality, without having to sub-class or recompile the old type. For instance, you might like to know whether a certain string was a number or not. The usual approach would be to define a function and then call it each time, and once you got a whole lot of those kind of functions, you would put them together in a utility class, like this: &lt;/div&gt;&lt;div closure_uid_4kkrrb="126" closure_uid_lqbyc1="138" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;pre class="c#" closure_uid_4kkrrb="129" closure_uid_89xy5d="119" closure_uid_frfy3t="106" closure_uid_xct56n="107" name="code"&gt;public class MyUtils&lt;br /&gt;{&lt;br /&gt;public static bool IsNumeric(string s)&lt;br /&gt;{&lt;br /&gt;float output;&lt;br /&gt;return float.TryParse(s, out output);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_48tzql="119" closure_uid_lqbyc1="143" style="text-align: justify;"&gt;Now you could check a string by executing a line of code like this:&amp;nbsp;&lt;/div&gt;&lt;div closure_uid_48tzql="118" closure_uid_lqbyc1="139" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;pre class="c#" name="code"&gt;string test = "4";&lt;br /&gt;if (MyUtils.IsNumeric(test))&lt;br /&gt;console.WriteLine("Yes");&lt;br /&gt;else&lt;br /&gt;console.WriteLine("No");&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;However, with Extension Methods, you can actually extend the String class to support this directly. You do it by defining a static class, with a set of static methods that will be your library of extension methods. Here is an example: &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;pre class="c#" name="code"&gt;public static class MyExtensionMethods&lt;br /&gt;{&lt;br /&gt;public static bool IsNumeric(this string s)&lt;br /&gt;{&lt;br /&gt;float output;&lt;br /&gt;return float.TryParse(s, out output);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The only thing that separates this from any other static method, is the "this" keyword in the parameter section of the method. It tells the compiler that this is an extension method for the string class, and that's actually all you need to create an extension method. Now, you can call the IsNumeric() method directly on strings, like this: &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_xct56n="109" style="text-align: justify;"&gt;&lt;pre class="c#" name="code"&gt;string test = "4";&lt;br /&gt;if (test.IsNumeric())&lt;br /&gt;console.WriteLine("Yes");&lt;br /&gt;else&lt;br /&gt;Console.WriteLine("No");&lt;br /&gt;&lt;span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B001EWF2GU&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B00332FFIE&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004Q8FFJS&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5283779191919676466?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5283779191919676466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/extension-methods.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5283779191919676466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5283779191919676466'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/extension-methods.html' title='Extension Methods'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8454524566426675957</id><published>2011-08-03T09:15:00.000-07:00</published><updated>2011-08-08T10:28:10.727-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WCF Interview Questions'/><title type='text'>WCF Concurrency</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_9m9jax="116"&gt;&lt;strong&gt;What are 3 ways of implementing WCF concurrency? &lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_9m9jax="116" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_9m9jax="116" style="text-align: justify;"&gt;&lt;strong&gt;Single&lt;/strong&gt;: - A single request has access to the WCF service object at a given moment of time. So only one request will be processed at any given moment of time. The other requests have to wait until the request processed by the WCF service is not completed.&lt;/div&gt;&lt;div closure_uid_9m9jax="133" style="text-align: justify;"&gt;&lt;div closure_uid_x2nl4l="107"&gt;&lt;strong&gt;Multiple&lt;/strong&gt;: - In this scenario multiple requests can be handled by the WCF service object at any given moment of time. In other words request are processed at the same time by spawning multiple threads on the WCFserver object. So you have great a throughput here but you need to ensure concurrency issues related to WCF server objects.&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_9m9jax="134" style="text-align: justify;"&gt;&lt;div closure_uid_x2nl4l="125"&gt;&lt;strong&gt;Reentrant&lt;/strong&gt;: - A single request thread has access to the WCF service object, but the thread can exit the WCF service to call another WCF service or can also call WCF client through callback and reenter without deadlock.&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004U2UPOK&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004ZZS4CC&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_x2nl4l="127" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8454524566426675957?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8454524566426675957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/wcf-concurrency.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8454524566426675957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8454524566426675957'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/wcf-concurrency.html' title='WCF Concurrency'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-2551734014991416921</id><published>2011-08-02T11:35:00.000-07:00</published><updated>2011-08-08T10:32:29.025-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview Questions'/><title type='text'>Finalize and Dispose</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_l1xdev="113" closure_uid_lyxp7d="125" style="text-align: justify;"&gt;&lt;strong&gt;What is the difference between Finalize and Dispose (Garbage collection)&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Class instances often encapsulate control over resources that are not managed by the runtime, such as window handles (HWND), database connections, and so on. Therefore, you should provide both an explicit and an implicit way to free those resources. Provide implicit control by implementing the protected Finalize Method on an object (destructor syntax in C# and the Managed Extensions for C++). The garbage collector calls this method at some point after there are no longer any valid references to the object.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;In some cases, you might want to provide programmers using an object with the ability to explicitly release these external resources before the garbage collector frees the object. If an external resource is scarce or expensive, better performance can be achieved if the programmer explicitly releases resources when they are no longer being used. To provide explicit control, implement the Dispose method provided by the IDisposable Interface. The consumer of the object should call this method when it is done using the object. Dispose can be called even if other references to the object are alive.&lt;/div&gt;&lt;div closure_uid_lyxp7d="126" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div closure_uid_dvlv4z="107"&gt;Note that even when you provide explicit control by way of Dispose, you should provide implicit cleanup using the Finalize method. Finalize provides a backup to prevent resources from permanently leaking if the programmer fails to call Dispose. &lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000N2G3RY&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0055IU4GM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004EBT5CU&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-2551734014991416921?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/2551734014991416921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/finalize-and-dispose.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2551734014991416921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2551734014991416921'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/finalize-and-dispose.html' title='Finalize and Dispose'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5752644231092979191</id><published>2011-08-02T11:34:00.001-07:00</published><updated>2011-08-08T10:35:03.999-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview Questions'/><title type='text'>Private Constructor</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_9g0ezm="116" closure_uid_nw0nds="115" style="text-align: justify;"&gt;&lt;strong closure_uid_9g0ezm="121"&gt;What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A: When a class declares only private instance constructors, it is not possible for classes outside the program to derive from the class or to directly create instances of it. (Except Nested classes)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_nw0nds="125" style="text-align: justify;"&gt;Make a constructor private if:&lt;/div&gt;&lt;div closure_uid_14ir2v="107" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- You want it to be available only to the class itself. For example, you might have a special constructor used only in the implementation of your class' Clone method.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_nw0nds="116" style="text-align: justify;"&gt;&lt;div closure_uid_14ir2v="109"&gt;- You do not want instances of your component to be created. For example, you may have a class containing nothing but Shared utility functions, and no instance data. Creating instances of the class would waste memory. &lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004P5O6OM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B005DD7H50&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5752644231092979191?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5752644231092979191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/private-constructor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5752644231092979191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5752644231092979191'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/private-constructor.html' title='Private Constructor'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8752622411606547455</id><published>2011-08-02T11:33:00.000-07:00</published><updated>2011-08-08T10:35:56.209-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview Questions'/><title type='text'>Scenario for  Interface or Abstract Class</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_fgu3md="120" closure_uid_o1yeyv="107" style="text-align: justify;"&gt;&lt;strong closure_uid_fgu3md="133"&gt;In which Scenario you will go for Interface or Abstract Class?&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;div closure_uid_o1yeyv="105" style="text-align: justify;"&gt;Interfaces, like classes, define a set of properties, methods, and events. But unlike classes, interfaces do not provide implementation. They are implemented by classes, and defined as separate entities from classes. Even though class inheritance allows your classes to inherit implementation from a base class, it also forces you to make most of your design decisions when the class is first published.&lt;/div&gt;&lt;div closure_uid_o1yeyv="105" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_o1yeyv="108" style="text-align: justify;"&gt;Abstract classes are useful when creating components because they allow you specify an invariant level of functionality in some methods, but leave the implementation of other methods until a specific implementation of that class is needed. They also version well, because if additional functionality is needed in derived classes, it can be added to the base class without breaking code. Interfaces vs. Abstract Classes&lt;/div&gt;&lt;div closure_uid_o1yeyv="108" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;Multiple inheritance&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="134" style="text-align: justify;"&gt;&lt;div closure_uid_o1yeyv="109"&gt;A class may implement several interfaces. &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="134" style="text-align: justify;"&gt;&lt;div closure_uid_o1yeyv="110"&gt;A class may extend only one abstract class. &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_7gsnpl="121" style="text-align: justify;"&gt;&lt;strong&gt;Default implementation&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="128" style="text-align: justify;"&gt;An interface cannot provide any code at all, much less default code.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="128" style="text-align: justify;"&gt;&lt;div closure_uid_o1yeyv="111"&gt;An abstract class can provide complete code, default code, and/or just stubs that have to be overridden.&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_7gsnpl="132" style="text-align: justify;"&gt;&lt;strong&gt;Constants&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li closure_uid_7gsnpl="144"&gt;&lt;div style="text-align: justify;"&gt;Static final constants only, can use them without qualification in classes that implement the interface. On the other paw, these unqualified names pollute the namespace. You can use them and it is not obvious where they are coming from since the qualification is optional.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="141" style="text-align: justify;"&gt;Both instance and static constants are possible. Both static and instance intialiser code are also possible to compute the constants.&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_7gsnpl="146" style="text-align: justify;"&gt;&lt;strong&gt;Third party convenience&amp;nbsp;&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="147" style="text-align: justify;"&gt;An interface implementation may be added to any existing third party class. &lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="148" style="text-align: justify;"&gt;A third party class must be rewritten to extend only from the abstract class.&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_7gsnpl="149" style="text-align: justify;"&gt;&lt;strong&gt;is-a vs -able or can-do&amp;nbsp;&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li closure_uid_7gsnpl="155"&gt;&lt;div style="text-align: justify;"&gt;Interfaces are often used to describe the peripheral abilities of a class, not its central identity, e.g. an Automobile class might implement the Recyclable interface, which could apply to many otherwise totally unrelated objects.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="152" style="text-align: justify;"&gt;An abstract class defines the core identity of its descendants. If you defined a Dog abstract class then Damamation descendants are Dogs, they are not merely dogable. Implemented interfaces enumerate the general things a class can do, not the things a class is.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_7gsnpl="156" style="text-align: justify;"&gt;&lt;strong&gt;Plug-in&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;ul closure_uid_7gsnpl="160" style="text-align: left;"&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="157" style="text-align: justify;"&gt;You can write a new replacement module for an interface that contains not one stick of code in common with the existing implementations. When you implement the interface, you start from scratch without any default implementation. You have to obtain your tools from other classes; nothing comes with the interface other than a few constants. This gives you freedom to implement a radically different internal design.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="158" style="text-align: justify;"&gt;You must use the abstract class as-is for the code base, with all its attendant baggage, good or bad. The abstract class author has imposed structure on you. Depending on the cleverness of the author of the abstract class, this may be good or bad. Another issue that's important is what I call "heterogeneous vs. homogeneous." If implementors/subclasses are homogeneous, tend towards an abstract base class. If they are heterogeneous, use an interface. (Now all I have to do is come up with a good definition of hetero/homogeneous in this context.) If the various objects are all of-a-kind, and share a common state and behavior, then tend towards a common base class. If all they share is a set of method signatures, then tend towards an interface.&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_7gsnpl="162" closure_uid_bp03ef="116" style="text-align: justify;"&gt;&lt;strong&gt;Homogeneity&amp;nbsp;&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="163" style="text-align: justify;"&gt;If all the various implementations share is the method signatures, then an interface works best.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="164" style="text-align: justify;"&gt;If the various implementations are all of a kind and share a common status and behavior, usually an abstract class works best.&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_7gsnpl="168" style="text-align: justify;"&gt;&lt;strong&gt;Maintenance&amp;nbsp;&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li closure_uid_7gsnpl="171"&gt;&lt;div style="text-align: justify;"&gt;If your client code talks only in terms of an interface, you can easily change the concrete implementation behind it, using a factory method.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="169" style="text-align: justify;"&gt;Just like an interface, if your client code talks only in terms of an abstract class, you can easily change the concrete implementation behind it, using a factory method.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_7gsnpl="172" style="text-align: justify;"&gt;&lt;strong&gt;Speed&amp;nbsp;&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="173" style="text-align: justify;"&gt;Slow, requires extra indirection to find the corresponding method in the actual class. Modern JVMs are discovering ways to reduce this speed penalty.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="174" style="text-align: justify;"&gt;Fast&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_7gsnpl="175" style="text-align: justify;"&gt;&lt;strong&gt;Terseness&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li closure_uid_7gsnpl="180"&gt;&lt;div style="text-align: justify;"&gt;The constant declarations in an interface are all presumed public static final, so you may leave that part out. You can't call any methods to compute the initial values of your constants. You need not declare individual methods of an interface abstract. They are all presumed so.&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="179" style="text-align: justify;"&gt;You can put shared code into an abstract class, where you cannot into an interface. If interfaces want to share code, you will have to write other bubblegum to arrange that. You may use methods to compute the initial values of your constants and variables, both instance and static. You must declare all the individual methods of an abstract class abstract.&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div closure_uid_7gsnpl="181" closure_uid_o1yeyv="113" style="text-align: justify;"&gt;&lt;strong&gt;Adding functionality&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li closure_uid_7gsnpl="183"&gt;&lt;div style="text-align: justify;"&gt;If you add a new method to an interface, you must track down all implementations of that interface in the universe and provide them with a concrete implementation of that method.&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div closure_uid_7gsnpl="182" style="text-align: justify;"&gt;&lt;div closure_uid_bp03ef="125"&gt;If you add a new method to an abstract class, you have the option of providing a default implementation of it. Then all existing code will continue to work without change.&lt;span closure_uid_bp03ef="126"&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002YKOXB6&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004HZYA6E&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;span&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=debuglog-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B004P5O6OM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8752622411606547455?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8752622411606547455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/scenario-for-interface-or-abstract.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8752622411606547455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8752622411606547455'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/scenario-for-interface-or-abstract.html' title='Scenario for  Interface or Abstract Class'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-6029345175777210885</id><published>2011-08-02T11:31:00.001-07:00</published><updated>2011-08-03T09:01:14.322-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview Questions'/><title type='text'>Struct and a Class</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="MsoNormal" closure_uid_tpy89="139" style="text-align: justify;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;b&gt;&lt;span closure_uid_tpy89="130" style="font-family: Arial; font-size: 10pt;"&gt;What is the difference between a Struct and a Class?&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul closure_uid_r9jxn7="135" style="text-align: left;"&gt;&lt;li class="MsoNormal" closure_uid_r9jxn7="105"&gt;&lt;div closure_uid_r9jxn7="131" style="text-align: justify;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The struct type is suitable for representing lightweight objects such as Point, Rectangle, and Color. Although it is possible to represent a point as a class, a struct is more efficient in some scenarios. For example, if you declare an array of 1000 Point objects, you will allocate additional memory for referencing each object. In this case, the struct is less expensive. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;div closure_uid_r9jxn7="132" style="text-align: justify;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;When you create a struct object using the new operator, it gets created and the appropriate constructor is called. Unlike classes, structs can be instantiated without using the new operator. If you do not use new, the fields will remain unassigned and the object cannot be used until all of the fields are initialized. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;It is an error to declare a default (parameterless) constructor for a struct. A default constructor is always provided to initialize the struct members to their default values. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;It is an error to initialize an instance field in a struct. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;There is no inheritance for structs as there is for classes. A struct cannot inherit from another struct or class, and it cannot be the base of a class. Structs, however, inherit from the base class Object. A struct can implement interfaces, and it does that exactly as classes do. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="MsoNormal"&gt;&lt;div closure_uid_r9jxn7="133" style="text-align: justify;"&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;A struct is a value type, while a class is a reference type. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-6029345175777210885?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/6029345175777210885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/struct-and-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6029345175777210885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6029345175777210885'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/struct-and-class.html' title='Struct and a Class'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1834016503545756487</id><published>2011-08-02T11:30:00.000-07:00</published><updated>2011-08-03T09:01:48.686-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview Questions'/><title type='text'>Namespaces</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_fbfrth="105" style="text-align: justify;"&gt;&lt;strong&gt;What are Namespaces?&lt;/strong&gt; &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_fbfrth="107" style="text-align: justify;"&gt;The namespace keyword is used to declare a scope. This namespace scope lets you organize code and gives you a way to create globally-unique types. Even if you do not explicitly declare one, a default namespace is created. This unnamed namespace, sometimes called the global namespace, is present in every file. Any identifier in the global namespace is available for use in a named namespace. Namespaces implicitly have public access and this is not modifiable. &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1834016503545756487?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1834016503545756487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/namespaces.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1834016503545756487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1834016503545756487'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/namespaces.html' title='Namespaces'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-6734672483577670209</id><published>2011-08-02T11:28:00.001-07:00</published><updated>2011-08-03T09:02:14.416-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview Questions'/><title type='text'>Garbage Collector</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_z4x86x="114" style="text-align: justify;"&gt;&lt;strong&gt;How Garbage Collector (GC) Works?&lt;/strong&gt; &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The methods in this class influence when an object is garbage collected and when resources allocated by an object are released. Properties in this class provide information about the total amount of memory available in the system and the age category, or generation, of memory allocated to an object. Periodically, the garbage collector performs garbage collection to reclaim memory allocated to objects for which there are no valid references. Garbage collection happens automatically when a request for memory cannot be satisfied using available free memory. Alternatively, an application can force garbage collection using the Collect method.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Garbage collection consists of the following steps: 0.The garbage collector searches for managed objects that are referenced in managed code. 1.The garbage collector attempts to finalize objects that are not referenced. 2.The garbage collector frees objects that are not referenced and reclaims their memory. &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-6734672483577670209?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/6734672483577670209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/garbage-collector.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6734672483577670209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6734672483577670209'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/garbage-collector.html' title='Garbage Collector'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1526283523265205980</id><published>2011-08-02T11:23:00.000-07:00</published><updated>2011-08-03T09:03:27.163-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XML Interview Questions'/><title type='text'>Syntax rules in XML</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_c6pdvo="108"&gt;&lt;div closure_uid_pwoos1="105"&gt;&lt;strong&gt;Define Syntax rules in XML in brief? &lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_c6pdvo="123"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div closure_uid_c6pdvo="122"&gt;&lt;div closure_uid_pwoos1="121"&gt;1.&amp;nbsp;All XML Elements Must Have a Closing Tag&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_pwoos1="119"&gt;2. XML Tags are Case Sensitive&lt;/div&gt;&lt;div closure_uid_pwoos1="122"&gt;3. XML Elements Must be Properly Nested&lt;/div&gt;&lt;div closure_uid_pwoos1="123"&gt;4. XML Documents Must Have a Root Element&lt;/div&gt;&lt;div closure_uid_pwoos1="124"&gt;5. XML Attribute Values Must be Quoted&lt;/div&gt;&lt;div closure_uid_pwoos1="125"&gt;6. Entity References:&lt;/div&gt;&lt;div closure_uid_pwoos1="126"&gt;&amp;lt; &amp;lt; less than &lt;/div&gt;&lt;div closure_uid_pwoos1="127"&gt;&amp;gt; &amp;gt; greater than &lt;/div&gt;&lt;div closure_uid_pwoos1="128"&gt;&amp;amp; &amp;amp; ampersand &lt;/div&gt;&lt;div closure_uid_pwoos1="131"&gt;&amp;amp;apos; ' apostrophe " " &lt;/div&gt;&lt;div closure_uid_pwoos1="132"&gt;7. Comments in XML&lt;/div&gt;&lt;div closure_uid_pwoos1="133"&gt;8. White-space is Preserved in XML&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1526283523265205980?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1526283523265205980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/syntax-rules-in-xml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1526283523265205980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1526283523265205980'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/syntax-rules-in-xml.html' title='Syntax rules in XML'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3054614614771822110</id><published>2011-08-02T11:21:00.001-07:00</published><updated>2011-08-03T09:03:44.328-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XML Interview Questions'/><title type='text'>SOAP and XML</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_av8xd9="113" style="text-align: justify;"&gt;&lt;strong closure_uid_av8xd9="135"&gt;What is SOAP and how does it relate to XML?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_av8xd9="117" style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The Simple Object Access Protocol (SOAP) uses XML to define a protocol for the exchange of information in distributed computing environments. SOAP consists of three components: an envelope, a set of encoding rules, and a convention for representing remote procedure calls. Unless experience with SOAP is a direct requirement for the open position, knowing the specifics of the protocol, or how it can be used in conjunction with HTTP, is not as important as identifying it as a natural application of XML.&lt;/div&gt;&lt;div closure_uid_mecsul="105" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3054614614771822110?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3054614614771822110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/soap-and-xml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3054614614771822110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3054614614771822110'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/soap-and-xml.html' title='SOAP and XML'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8990494471137590094</id><published>2011-08-02T11:20:00.000-07:00</published><updated>2011-08-03T09:04:17.108-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XML Interview Questions'/><title type='text'>Protocols behind XML</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_4exsci="117"&gt;&lt;div closure_uid_uylxog="105"&gt;&lt;strong closure_uid_4exsci="125"&gt;What are the core protocols behind XML Web services? &lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div closure_uid_uylxog="107"&gt;XML (for message format), HTTP and others (for transport), WSDL (Web Service Definition Language, to describe the Web services and define the contract), and UDDI (Universal Description, Discovery and Integration, to dynamically discover and invoke Web services)&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8990494471137590094?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8990494471137590094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/protocols-behind-xml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8990494471137590094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8990494471137590094'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/protocols-behind-xml.html' title='Protocols behind XML'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-195419482593542630</id><published>2011-08-02T11:19:00.001-07:00</published><updated>2011-08-03T09:04:41.515-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XML Interview Questions'/><title type='text'>W3C</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_kfvltq="113"&gt;&lt;div closure_uid_k2tce6="107"&gt;&lt;strong&gt;What is W3C?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_k2tce6="105" closure_uid_kfvltq="117"&gt;&lt;/div&gt;&lt;br /&gt;World Wide Web Consortium, which defines all the standards for XML and HTML.&lt;br /&gt;&lt;div closure_uid_k2tce6="120"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-195419482593542630?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/195419482593542630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/w3c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/195419482593542630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/195419482593542630'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/w3c.html' title='W3C'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-6671905151549338632</id><published>2011-08-01T23:21:00.000-07:00</published><updated>2011-08-01T23:21:16.343-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview Questions'/><title type='text'>LINQ</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_96gb2e="132" style="text-align: justify;"&gt;&lt;strong closure_uid_96gb2e="134"&gt;What is LINQ?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Language-Integrated Query (LINQ) is a query syntax that defines a set of query operators that enable traversal, filter, and projection operations to be expressed in a declarative way in any .NET-based programming language. The data object can be an in-memory data collection or an object that represents data from a database. You can retrieve or modify the data without having to write SQL commands for each operation.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_96gb2e="118" style="text-align: justify;"&gt;Example: var col = from o in Orders where o.CustomerID == 84 select o;&lt;/div&gt;&lt;div closure_uid_96gb2e="131"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-6671905151549338632?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/6671905151549338632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/linq.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6671905151549338632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/6671905151549338632'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/linq.html' title='LINQ'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-1990957627069279713</id><published>2011-08-01T23:19:00.002-07:00</published><updated>2011-08-03T09:07:01.302-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>Application domain</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_181d29="118" closure_uid_eho20a="105" style="text-align: justify;"&gt;&lt;strong&gt;What is an application domain?&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_cbnxjc="122" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_eho20a="107" closure_uid_myuw0j="114" style="text-align: justify;"&gt;&lt;div closure_uid_cbnxjc="114"&gt;An application domain (often AppDomain) is a virtual process that serves to isolate an application. All objects created within the same application scope (in other words, anywhere along the sequence of object activations beginning with the application entry point) are created within the same application domain. Multiple application domains can exist in a single operating system process, making them a lightweight means of application isolation&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-1990957627069279713?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/1990957627069279713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/application-domain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1990957627069279713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/1990957627069279713'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/application-domain.html' title='Application domain'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4513338233816851392</id><published>2011-08-01T23:19:00.000-07:00</published><updated>2011-08-03T09:06:25.133-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview Questions'/><title type='text'>Private and Shared Assemblies</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_cd2b2s="118"&gt;&lt;div closure_uid_6pgbo3="105"&gt;&lt;strong&gt;What are private assemblies and shared assemblies?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div closure_uid_m4xiw9="105" style="text-align: justify;"&gt;&lt;div closure_uid_6pgbo3="121"&gt;A private assembly is used only by a single application, and is stored in that application's install directory (or a subdirectory therein). A shared assembly is one that can be referenced by more than one application. In order to share an assembly, the assembly must be explicitly built for this purpose by giving it a cryptographically strong name (referred to as a strong name). By contrast, a private assembly name need only be unique within the application that uses it. &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4513338233816851392?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4513338233816851392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/private-and-shared-assemblies.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4513338233816851392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4513338233816851392'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/private-and-shared-assemblies.html' title='Private and Shared Assemblies'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4577059563582919299</id><published>2011-08-01T23:18:00.000-07:00</published><updated>2011-08-03T09:07:30.037-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview Questions'/><title type='text'>Meta Data</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_2z0d1h="117" style="text-align: justify;"&gt;&lt;div closure_uid_pw6s2="116"&gt;&lt;strong&gt;What is Meta Data?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_2z0d1h="131" style="text-align: justify;"&gt;Metadata is binary information describing your program that is stored either in a common language runtime portable executable (PE) file or in memory. When you compile your code into a PE file, metadata is inserted into one portion of the file, while your code is converted to Microsoft intermediate language (MSIL) and inserted into another portion of the file. Every type and member defined and referenced in a module or assembly is described within metadata. When code is executed, the runtime loads metadata into memory and references it to discover information about your code's classes, members, inheritance, and so on.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_4k09jt="116" style="text-align: justify;"&gt;Metadata describes every type and member defined in your code in a language-neutral manner. Metadata stores the following information: &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• Description of the assembly. &lt;/div&gt;&lt;div closure_uid_2z0d1h="132" style="text-align: justify;"&gt;• Identity (name, version, culture, public key).&lt;/div&gt;&lt;div closure_uid_2z0d1h="133" style="text-align: justify;"&gt;• The types that are exported.&lt;/div&gt;&lt;div closure_uid_2z0d1h="134" style="text-align: justify;"&gt;• Other assemblies that this assembly depends on.&lt;/div&gt;&lt;div closure_uid_2z0d1h="135" style="text-align: justify;"&gt;• Security permissions needed to run.&lt;/div&gt;&lt;div closure_uid_2z0d1h="136" style="text-align: justify;"&gt;• Description of types. &lt;/div&gt;&lt;div closure_uid_2z0d1h="139" style="text-align: justify;"&gt;• Name, visibility, base class, and interfaces implemented.&lt;/div&gt;&lt;div closure_uid_2z0d1h="140" style="text-align: justify;"&gt;• Members (methods, fields, properties, events, nested types).&lt;/div&gt;&lt;div closure_uid_2z0d1h="141" style="text-align: justify;"&gt;• Attributes. &lt;/div&gt;&lt;div closure_uid_2z0d1h="142" style="text-align: justify;"&gt;&lt;div closure_uid_pw6s2="118"&gt;• Additional descriptive elements that modify types and members.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4577059563582919299?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4577059563582919299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/meta-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4577059563582919299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4577059563582919299'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/meta-data.html' title='Meta Data'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-4209522468820875299</id><published>2011-08-01T23:17:00.003-07:00</published><updated>2011-08-03T09:08:01.496-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>Forms Authentication</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_n84c8p="113" style="text-align: justify;"&gt;&lt;div closure_uid_9sfwy2="114"&gt;&lt;strong&gt;What is FormsAuthentication?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_oaorps="114" style="text-align: justify;"&gt;Forms authentication uses an authentication ticket that is created when a user logs on to a site, and then it tracks the user throughout the site. The forms authentication ticket is usually contained inside a cookie. However, ASP.NET version 2.0 supports cookie less forms authentication, which results in the ticket being passed in a query string. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_oaorps="126" style="text-align: justify;"&gt;&lt;div closure_uid_9sfwy2="125"&gt;If the user requests a page that requires authenticated access and that user has not previously logged on to the site, then the user is redirected to a configured logon page. The logon page prompts the user to supply credentials, typically a user name and password. These credentials are then passed to the server and validated against a user store, such as a SQL Server database. In ASP.NET 2.0, user-store access can be handled by a membership provider. After the user's credentials are authenticated, the user is redirected to the originally requested page. Forms authentication processing is handled by the FormsAuthenticationModule class, which is an HTTP module that participates in the regular ASP.NET page-processing cycle. This document explains how forms authentication works in ASP.NET 2.0.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-4209522468820875299?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/4209522468820875299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/formsauthentication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4209522468820875299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/4209522468820875299'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/formsauthentication.html' title='Forms Authentication'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-8043963601972739476</id><published>2011-08-01T23:16:00.003-07:00</published><updated>2011-08-03T09:08:31.298-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>Bubble Event</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_3y2kn2="116" style="text-align: justify;"&gt;&lt;div closure_uid_gh24bj="114"&gt;&lt;strong&gt;What is Bubble Event?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div closure_uid_gh24bj="116"&gt;The ASP.NET page framework provides a technique called event bubbling that allows a child control to propagate events up its containment hierarchy. Event bubbling enables events to be raised from a more convenient location in the controls hierarchy and allows event handlers to be attached to the original control as well as to the control that exposes the bubbled event.&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_3y2kn2="128" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div closure_uid_gh24bj="117"&gt;Event bubbling is used by the data-bound controls (Repeater, DataList, and DataGrid) to expose command events raised by child controls (within item templates) as top-level events. &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-8043963601972739476?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/8043963601972739476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/bubble-event.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8043963601972739476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/8043963601972739476'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/bubble-event.html' title='Bubble Event'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-2956253957981993674</id><published>2011-08-01T23:16:00.001-07:00</published><updated>2011-08-03T09:08:57.360-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>Session Modes</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_d4k37w="107" style="text-align: justify;"&gt;&lt;div closure_uid_vjrs3q="105"&gt;&lt;strong&gt;Explain about types of Session Modes in ASP.NET?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_d4k37w="131" style="text-align: justify;"&gt;ASP.NET supports three modes of session state: &lt;/div&gt;&lt;div closure_uid_vtv7z5="116" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_d4k37w="132" closure_uid_vtv7z5="127" style="text-align: justify;"&gt;• &lt;strong&gt;InProc&lt;/strong&gt;: In-Proc mode stores values in the memory of the ASP.NET worker process. Thus, this mode offers the fastest access to these values. However, when the ASP.NET worker process recycles, the state data is lost.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_d4k37w="133" style="text-align: justify;"&gt;• &lt;strong&gt;StateServer&lt;/strong&gt;: Alternately, StateServer mode uses a stand-alone Microsoft Windows service to store session variables. Because this service is independent of Microsoft Internet Information Server (IIS), it can run on a separate server. You can use this mode for a load-balancing solution because multiple Web servers can share session variables. Although session variables are not lost if you restart IIS, performance is impacted when you cross process boundaries.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_d4k37w="134" style="text-align: justify;"&gt;&lt;div closure_uid_vjrs3q="107"&gt;• &lt;strong&gt;SqlServer&lt;/strong&gt;: If you are greatly concerned about the persistence of session information, you can use SqlServer mode to leverage Microsoft SQL Server to ensure the highest level of reliability. SqlServer mode is similar to out-of-process mode, except that the session data is maintained in a SQL Server. SqlServer mode also enables you to utilize a state store that is located out of the IIS process and that can be located on the local computer or a remote server.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-2956253957981993674?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/2956253957981993674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/session-modes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2956253957981993674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/2956253957981993674'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/session-modes.html' title='Session Modes'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3083921079090341329</id><published>2011-08-01T23:15:00.001-07:00</published><updated>2011-08-01T23:24:22.862-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>Hidden Field</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_5c6ofh="119"&gt;&lt;strong&gt;What is Hidden Field?&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div closure_uid_3cvubn="114" style="text-align: justify;"&gt;ASP.NET allows you to store information in a HiddenField control, which renders as a standard HTML hidden field. A hidden field does not render visibly in the browser, but you can set its properties just as you can with a standard control. When a page is submitted to the server, the content of a hidden field is sent in the HTTP form collection along with the values of other controls. A hidden field acts as a repository for any page-specific information that you want to store directly in the page. A HiddenField control stores a single variable in its Value property and must be explicitly added to the page.&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3083921079090341329?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3083921079090341329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/hidden-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3083921079090341329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3083921079090341329'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/hidden-field.html' title='Hidden Field'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-3082853483306808377</id><published>2011-08-01T23:10:00.001-07:00</published><updated>2011-08-03T09:09:44.305-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>Transfer vs Response</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_2wewzg="114" closure_uid_87hgqf="105" style="text-align: justify;"&gt;&lt;strong&gt;Difference between Server.Transfer vs Response.Redirect?&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_2wewzg="122" style="text-align: justify;"&gt;&lt;strong&gt;Server transfer:&lt;/strong&gt;&lt;/div&gt;&lt;div closure_uid_2wewzg="135" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_87hgqf="107" style="text-align: justify;"&gt;• Transfers control to a new page that renders in place of the source page.&lt;/div&gt;&lt;div closure_uid_87hgqf="108" style="text-align: justify;"&gt;• Redirects only to target pages that are in the same Web application as the source page.&lt;/div&gt;&lt;div closure_uid_87hgqf="109" style="text-align: justify;"&gt;• Enables you to read values and public properties from source page.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• Does not update browser information with information about the target page. Pressing the refresh or back buttons in the browser can result in unexpected behavior.&lt;/div&gt;&lt;div closure_uid_87hgqf="110" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_2wewzg="136" closure_uid_87hgqf="133" style="text-align: justify;"&gt;&lt;strong&gt;Response.Redirect:&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_87hgqf="111" style="text-align: justify;"&gt;• Performs a new HTTP GET request on the target page.&lt;/div&gt;&lt;div closure_uid_87hgqf="112" style="text-align: justify;"&gt;• Passes the query string (if any) to the target page. In Internet Explorer, the size of the query string is limited to 2,048 characters.&lt;/div&gt;&lt;div closure_uid_87hgqf="113" style="text-align: justify;"&gt;• Provides programmatic and dynamic control over the target URL and query string.&lt;/div&gt;&lt;div closure_uid_87hgqf="114" style="text-align: justify;"&gt;• Enables you to redirect to any page, not just pages in the same Web application.&lt;/div&gt;&lt;div closure_uid_87hgqf="115" style="text-align: justify;"&gt;• Enables you to share information between source and target pages using session state.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-3082853483306808377?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/3082853483306808377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/transfer-vs-response.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3082853483306808377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/3082853483306808377'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/transfer-vs-response.html' title='Transfer vs Response'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-5294788384674032668</id><published>2011-08-01T23:08:00.007-07:00</published><updated>2011-08-01T23:11:25.521-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>Session State</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_kkylr8="108"&gt;&lt;div closure_uid_b0jv88="116"&gt;&lt;strong closure_uid_b0jv88="114" closure_uid_kkylr8="128"&gt;What is Session State in ASP.NET?&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div closure_uid_kkylr8="107"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div closure_uid_kkylr8="129"&gt;&lt;strong&gt;Session State:&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;You can store values that need to be persisted for the duration of a user's session in session variables. These variables are unique to each user session and can be accessed in any ASP.NET page within an application. You can set and access session information from within an ASP.NET application.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-5294788384674032668?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/5294788384674032668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/what-is-session-state-in-asp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5294788384674032668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/5294788384674032668'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/what-is-session-state-in-asp.html' title='Session State'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry><entry><id>tag:blogger.com,1999:blog-7951526608711884626.post-597263907306570247</id><published>2011-08-01T23:08:00.003-07:00</published><updated>2011-08-01T23:12:23.699-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.net Interview Questions'/><title type='text'>Application State</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_fmzmcn="117"&gt;&lt;strong closure_uid_uwgbo0="105"&gt;What is Application State in ASP&lt;/strong&gt;.&lt;strong&gt;NET?&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;Application State:&lt;br /&gt;&lt;br /&gt;Application state variables are, in effect, global variables for each ASP.NET application. You can share values of these variables throughout that application. These variables are usually set in the Application_OnStart event and then accessed and modified in individual ASP.NET pages.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7951526608711884626-597263907306570247?l=debuglogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debuglogs.blogspot.com/feeds/597263907306570247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://debuglogs.blogspot.com/2011/08/what-is-application-state-in-asp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/597263907306570247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7951526608711884626/posts/default/597263907306570247'/><link rel='alternate' type='text/html' href='http://debuglogs.blogspot.com/2011/08/what-is-application-state-in-asp.html' title='Application State'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/02305275298882043010</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></entry></feed>
