<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6642631816849046364</id><updated>2024-09-06T10:41:46.353-07:00</updated><category term="SQL"/><category term="Excel"/><category term="database"/><category term="CONDITIONAL STATEMENT"/><category term="IF-ELSE"/><category term="Naming Convention"/><category term="ON"/><category term="XML"/><category term="cast"/><category term="objects"/><category term="read"/><category term="set"/><category term="single_user"/><category term="sys"/><category term=".net 3.0"/><category term="0x80072098"/><category term="AND"/><category term="ANSI_NULL"/><category term="Active directory"/><category term="Activity"/><category term="Auto"/><category term="Basic"/><category term="COMException"/><category term="Donts"/><category term="Dos"/><category term="Excel Sharing"/><category term="FOR XML"/><category term="FxCop"/><category term="IDENTITY_INSERT"/><category term="Interview"/><category term="Javascript"/><category term="Kill"/><category term="LDAP"/><category term="Links"/><category term="MVC3"/><category term="MVC4"/><category term="Monitor"/><category term="NOT"/><category term="OBJECTPROPERTY"/><category term="OBJECT_NAME"/><category term="OFF"/><category term="OOP"/><category term="OR"/><category term="OpenXML"/><category term="Questions"/><category term="Raw"/><category term="SESSION"/><category term="SSMS"/><category term="Table variables"/><category term="WPF step by step"/><category term="Windows Presentation Foundation"/><category term="Xcopy"/><category term="access modifiers"/><category term="app pool"/><category term="articles"/><category term="asp.net"/><category term="authorization manager"/><category term="azman"/><category term="azman.msc"/><category term="basics"/><category term="blogs"/><category term="bytes"/><category term="character"/><category term="chinese"/><category term="classes"/><category term="column"/><category term="comma separated table"/><category term="connect to active directory"/><category term="convert"/><category term="cross join"/><category term="declare"/><category term="difference"/><category term="echo f"/><category term="events"/><category term="exception"/><category term="explicit"/><category term="file default"/><category term="find"/><category term="full text"/><category term="get list"/><category term="global"/><category term="hlookup"/><category term="iis"/><category term="inheritence"/><category term="inline variable"/><category term="insufficient access rights"/><category term="learn"/><category term="log"/><category term="lookup"/><category term="method"/><category term="multi_user"/><category term="object oriented programming"/><category term="open connections"/><category term="path"/><category term="patindex"/><category term="performance tuning"/><category term="permanent table"/><category term="private"/><category term="procedure"/><category term="properties"/><category term="protected"/><category term="public"/><category term="read_only"/><category term="read_write"/><category term="roles from authorization manager"/><category term="russian"/><category term="scope"/><category term="shortcut"/><category term="sql 2008 features"/><category term="sql result in xml"/><category term="stored"/><category term="sys.columns"/><category term="sys.object"/><category term="syscomments"/><category term="sysobjects"/><category term="table"/><category term="table name"/><category term="temp table"/><category term="terabyte"/><category term="transaction"/><category term="triggers"/><category term="unicode"/><category term="upgrade"/><category term="username"/><category term="userrole"/><category term="videos"/><category term="vlookup"/><category term="whats new in sql server 2008"/><title type='text'>Happy Coding ...</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>78</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-521057948821874114</id><published>2018-01-11T20:03:00.002-08:00</published><updated>2018-01-11T20:06:01.665-08:00</updated><title type='text'>Get C# class declaration from Oracle Table</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Select distinct&lt;br /&gt;
&#39;public &#39; ||&lt;br /&gt;
case Lower(DATA_TYPE)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when &#39;raw&#39; then &#39;Guid?&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when &#39;number&#39; then &#39;Decimal?&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when &#39;char&#39; then &#39;string&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when &#39;date&#39; then &#39;DateTime?&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when &#39;decimal&#39; then &#39;decimal?&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when &#39;nvarchar&#39; then &#39;string?&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when &#39;uniqueidentifier&#39; then &#39;Guid?&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when &#39;varchar2&#39; then &#39;string&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else &#39;UNKNOWN_&#39; || DATA_TYPE&lt;br /&gt;
end|| &#39; &#39;&lt;br /&gt;
&amp;nbsp;|| replace(initcap(replace(Column_name,&#39;_&#39;,&#39; &#39;)),&#39; &#39;,&#39;&#39;) || &#39; { get; set; }&#39; ,&lt;br /&gt;
&amp;nbsp;all_tab_columns.column_id&lt;br /&gt;
&amp;nbsp; from all_tab_columns where table_name= upper(&#39;SPA_DISCOUNT_GROUP&#39;)&lt;br /&gt;
&amp;nbsp; order by all_tab_columns.column_id&lt;br /&gt;
&lt;br /&gt;
select *&amp;nbsp; &amp;nbsp;from all_tab_columns where table_name= upper(&#39;SPA_DISCOUNT_GROUP&#39;)&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
--------------- Result --------------&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;PUBLIC&#39;||CASELOWER(DATA_TYPE)&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;COLUMN_ID&lt;br /&gt;
1&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public Decimal? RefUniqueNo { get; set; }&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
2&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public string Reference { get; set; }&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;br /&gt;
3&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public string DiscType { get; set; }&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;br /&gt;
4&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public Decimal? DiscPct { get; set; }&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;br /&gt;
5&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public Guid? DiscountGroupKey { get; set; }&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; 5&lt;br /&gt;
6&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public Guid? ReferenceRef { get; set; }&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/521057948821874114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2018/01/get-c-class-declaration-from-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/521057948821874114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/521057948821874114'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2018/01/get-c-class-declaration-from-oracle.html' title='Get C# class declaration from Oracle Table'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-3506564063684965535</id><published>2018-01-11T03:37:00.002-08:00</published><updated>2018-01-11T03:37:27.057-08:00</updated><title type='text'>Get C# class Declaration from SQL Table structure</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Get C# class Declaration from SQL Table structure&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;------------ CODE ---------- to be executed in SQL ---------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;declare&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; @TableName &lt;span style=&quot;color: blue;&quot;&gt;sysname&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;Transaction_document&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;declare&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; @Result &lt;span style=&quot;color: blue;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;max&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;public class &#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt;
@TableName &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&#39;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; @Result &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; @Result &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public &#39;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt;
ColumnType &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; NullableSign &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39; &#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; ColumnName &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39; { get; set; }&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: 9.5pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;select&lt;/span&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: magenta;&quot;&gt;replace&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;col&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;name&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39; &#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;_&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; ColumnName&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column_id
ColumnId&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;case&lt;/span&gt; typ&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;name &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;bigint&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;long&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;binary&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;byte[]&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;bit&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;bool&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;char&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;string&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;date&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;DateTime&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;datetime&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;DateTime&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;datetime2&#39;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;DateTime&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;datetimeoffset&#39;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;DateTimeOffset&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;decimal&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;decimal&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;float&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;float&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;image&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;byte[]&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;int&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;int&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;money&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;decimal&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;nchar&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;string&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;ntext&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;string&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;numeric&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;decimal&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;nvarchar&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;string&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;real&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;double&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;smalldatetime&#39;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;DateTime&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;smallint&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;short&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;smallmoney&#39;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;decimal&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;text&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;string&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;time&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;TimeSpan&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;timestamp&#39;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;DateTime&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;tinyint&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;byte&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;uniqueidentifier&#39;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;Guid&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;varbinary&#39;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;byte[]&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;varchar&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;string&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;UNKNOWN_&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; typ&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;end&lt;/span&gt; ColumnType&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;case&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;when&lt;/span&gt; col&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;is_nullable &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; 1 &lt;span style=&quot;color: grey;&quot;&gt;and&lt;/span&gt; typ&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;name &lt;span style=&quot;color: grey;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;bigint&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;bit&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;date&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;datetime&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;datetime2&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;datetimeoffset&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;decimal&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;float&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;int&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;money&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;numeric&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;real&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;smalldatetime&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;smallint&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;smallmoney&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;time&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;tinyint&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;uniqueidentifier&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;?&#39;&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;end&lt;/span&gt; NullableSign&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;columns&lt;/span&gt; col&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: grey;&quot;&gt;join&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;types&lt;/span&gt; typ &lt;span style=&quot;color: blue;&quot;&gt;on&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
col&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;system_type_id &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;
typ&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;system_type_id &lt;span style=&quot;color: grey;&quot;&gt;AND&lt;/span&gt;
col&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;user_type_id &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;
typ&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;user_type_id&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;where&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;object_id&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;@TableName&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: 9.5pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; t&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;order&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;by&lt;/span&gt; ColumnId&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; @Result &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; @Result&amp;nbsp; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&#39;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; @Result&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;-------------------- RESULT --------------&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
public class proration_log&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp; &amp;nbsp; public Guid Proration_Log_Key { get; set; }&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp; &amp;nbsp; public string Text { get; set; }&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp; &amp;nbsp; public DateTime? Create_Date { get; set; }&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/3506564063684965535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2018/01/get-c-class-declaration-from-sql-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/3506564063684965535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/3506564063684965535'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2018/01/get-c-class-declaration-from-sql-table.html' title='Get C# class Declaration from SQL Table structure'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-4399660410776053833</id><published>2018-01-11T01:53:00.002-08:00</published><updated>2018-01-11T01:53:45.001-08:00</updated><title type='text'>Load XML data in DataTable and use LINQ on it</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9.5pt; mso-themecolor: dark2;&quot;&gt;XML Document Structure - &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9.5pt; mso-themecolor: dark2;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;1.0&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;utf-8&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;standalone&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;yes&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Root&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;TypeName&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Functions&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Details&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;FunctionName&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;InActiveUsers_Mail&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;ClientList&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Etihad,Malasia&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; /&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Details&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;FunctionName&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;UnAssignedUsers_Mail&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;ClientList&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Etihad,Virgin&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; /&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;TypeName&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Mails&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Details&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;FunctionName&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;InActiveUsers_Mail&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;ClientList&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Etihad,Malasia&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; /&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Details&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;FunctionName&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;UnAssignedUsers_Mail&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;ClientList&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Malasia,Virgin&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; /&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Root&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9.5pt; mso-themecolor: dark2;&quot;&gt;Load XML Document in DataTable -&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; text-indent: 36pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; text-indent: 36pt;&quot;&gt;XmlDocument&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; text-indent: 36pt;&quot;&gt; xmlDoc = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; text-indent: 36pt;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; text-indent: 36pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; text-indent: 36pt;&quot;&gt;XmlDocument&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; text-indent: 36pt;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;xmlDoc.Load(&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Environment&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;.CurrentDirectory + &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;\\ClientWiseFunctionality.xml&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;XmlNodeList&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; elemList =
xmlDoc.GetElementsByTagName(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;Type&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;oXmlDataTable.Columns.AddRange(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;DataColumn&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;[2] {&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;DataColumn&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;FunctionName&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;)),&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;DataColumn&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;ClientList&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;)) });&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;XmlNode&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; node &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; elemList)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (node.Attributes[&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;TypeName&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;].Value == &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;Functions&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;XmlNode&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; childnode &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; node)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9.5pt; mso-themecolor: dark2;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;oXmlDataTable.Rows.Add(childnode.Attributes[&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;FunctionName&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;].Value,
childnode.Attributes[&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;ClientList&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;].Value);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9.5pt; mso-themecolor: dark2;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9.5pt; mso-themecolor: dark2;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;Load XML data in DataTable and use LINQ on
it&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; dttt = (&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; n &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; oXmlDataTable.AsEnumerable()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9.5pt; mso-themecolor: dark2;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; n.Field&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;FunctionName&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;) == &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;UnAssignedUasdsers_Mail&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-family: Consolas; font-size: 9.5pt; mso-themecolor: dark2;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;amp;&amp;amp; n.Field&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;ClientList&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;).Split(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&#39;,&#39;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;).Any(i =&amp;gt; i.Equals(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;Malasia&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; n).ToList();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;









&lt;span style=&quot;color: #1f497d; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-ansi-language: EN-IN; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-themecolor: dark2;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-ansi-language: EN-IN; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1f497d; mso-themecolor: dark2;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/4399660410776053833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2018/01/load-xml-data-in-datatable-and-use-linq.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/4399660410776053833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/4399660410776053833'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2018/01/load-xml-data-in-datatable-and-use-linq.html' title='Load XML data in DataTable and use LINQ on it'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-6807338868251144091</id><published>2018-01-11T01:10:00.001-08:00</published><updated>2018-01-11T01:10:06.000-08:00</updated><title type='text'>Visual Studio 2017 keyboard shortcuts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
http://visualstudioshortcuts.com/2017/&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/6807338868251144091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2018/01/visual-studio-2017-keyboard-shortcuts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/6807338868251144091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/6807338868251144091'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2018/01/visual-studio-2017-keyboard-shortcuts.html' title='Visual Studio 2017 keyboard shortcuts'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-3301965621347288274</id><published>2018-01-11T01:02:00.001-08:00</published><updated>2018-01-11T01:02:28.868-08:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When your keyboard does not display single quotes (&#39;) on single click but when it is clicked again displays 2 single quotes (&#39;&#39;) , do the following settings&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;border: 1pt none windowtext; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 9pt; padding: 0cm;&quot;&gt;Control Panel &amp;gt; Clock,
Language and Region &amp;gt; Region and Language &amp;gt; Keyboards and Language. Click
the “Change keyboards” button under “Keyboards and other input languages”. Now
the chances are you have chosen “US international”. This behaviour is default
on this keyboard setup. Click the “Add” button and add “US”. Change to this and
remove US international and your keyboard should start working as expected.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/3301965621347288274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2018/01/when-your-keyboard-does-not-display.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/3301965621347288274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/3301965621347288274'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2018/01/when-your-keyboard-does-not-display.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-7148948434036459726</id><published>2014-03-05T06:16:00.002-08:00</published><updated>2014-03-05T06:16:25.333-08:00</updated><title type='text'>Converts a byte array to a string</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;summary&gt;&lt;/summary&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;Converts a byte array to a string&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;param name=&quot;arrInput&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;Byte array to be converted&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;returns&gt;&lt;/returns&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: x-small;&quot;&gt;string representation of the byte array&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;byteArrayToString(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;[] arrInput)&lt;/span&gt;&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: x-small;&quot;&gt;StringBuilder&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;sb =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: x-small;&quot;&gt;StringBuilder&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;(arrInput.Length * 2);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;i = 0; i &amp;lt; arrInput.Length; i++)&lt;/span&gt;&lt;br /&gt;
sb.Append(arrInput[i].&lt;wbr&gt;&lt;/wbr&gt;ToString(&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: x-small;&quot;&gt;&quot;X2&quot;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;));&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;sb.ToString().ToUpper();&lt;/span&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;[] StringToByteArray(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;textString)&lt;/span&gt;&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: x-small;&quot;&gt;UTF8Encoding&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;encoding =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: x-small;&quot;&gt;UTF8Encoding&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;();&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: x-small;&quot;&gt;&amp;nbsp;encoding.GetBytes(textString);&lt;/span&gt;&lt;br /&gt;
}</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/7148948434036459726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/converts-byte-array-to-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7148948434036459726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7148948434036459726'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/converts-byte-array-to-string.html' title='Converts a byte array to a string'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-6560804287944917378</id><published>2014-03-05T06:15:00.002-08:00</published><updated>2014-03-05T06:15:33.452-08:00</updated><title type='text'>Serialization</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
Serialization is a process where an object is converted to a form , able to store and transport to different places.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
Used for:&lt;br /&gt;to store object to hard drive&lt;br /&gt;send object over the network [Without serialization the remoting will be impossible]&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
To serialize a class add [Serializable]&amp;nbsp; attribute in front of the class definition&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;br /&gt;if you dont want to serialize something in this &#39;serialized&#39; class use [NonSerialized]&amp;nbsp; before it&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
Note: properties are not serialized&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;br /&gt;To store the data of a class into a file in binary format&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store myStore = new Store(); // create object of a class to be serialized&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myStore.stockCount = 50; // pass value to the variable&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FileStream flStream = new FileStream(&quot;MyStore.dat&quot;, FileMode.OpenOrCreate, FileAccess.Write);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BinaryFormatter binFormatter = new BinaryFormatter(); //to store the data to a file in binary format.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; binFormatter.Serialize(&lt;wbr&gt;&lt;/wbr&gt;flStream, myStore);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Seralize method stores the data in streams&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; finally&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flStream.Close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;br /&gt;DeSeralize&lt;br /&gt;Store readStore = new Store();&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FileStream flStream = new FileStream(&quot;MyStore.dat&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileMode.Open, FileAccess.Read);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BinaryFormatter binFormatter = new BinaryFormatter();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; readStore = (Store)binFormatter.&lt;wbr&gt;&lt;/wbr&gt;Deserialize(flStream);&amp;nbsp;&amp;nbsp; //&#39;Deserialize&#39; method returns the deserialized object which we cast to our own class &#39;Store&#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; finally&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flStream.Close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;br /&gt;SOAP formatter&lt;br /&gt;seralizes object to XML file. It is a standardized format which all web services use&lt;br /&gt;- add using and reference to System.Runtime.Serialization.&lt;wbr&gt;&lt;/wbr&gt;Formatters.Soap&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
The SOAP format being an XML is readable by humans unlike the binary one. So I wrote a function to show the actual code which the object is converted to.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
Here is the code: Store myStore = new Store();&lt;br /&gt;Store myStore = new Store();&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
MemoryStream memStream = new MemoryStream();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myStore.stockCount = 50;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SoapFormatter soapFormatter = new SoapFormatter();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soapFormatter.Serialize(&lt;wbr&gt;&lt;/wbr&gt;memStream, myStore);&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; byte[] buff = memStream.GetBuffer();&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string soapOutput = &quot;&quot;;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach(byte b in buff)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soapOutput += (char)b;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tbOutput.Text += Environment.NewLine +&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;Object &#39;myStore&#39; serialized to SOAP!&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tbOutput.Text += soapOutput;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; finally&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memStream.Close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
Here I use a MemoryStream instead of the FileStream I used previously. This way we save ourselves the use of file.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
After we store the data to the stream we get its contents with GetBuffer(). I didn&#39;t close the memStream right after the write as I did with the FileStream. This is because we loose the stored data once we close it.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
The output we get by the SOAP formatter is this:&lt;br /&gt;&lt;soap-env:envelope chema-instance=&quot;&quot; http:=&quot;&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot; www.w3.org=&quot;&quot; xmlns:xsi=&quot;&amp;lt;a href=&quot;&gt;http://www.w3.org/&lt;wbr&gt;&lt;/wbr&gt;2001/XMLSchema-instance&lt;/soap-env:envelope&gt;&lt;/div&gt;
&lt;/div&gt;
&quot;&lt;br /&gt;&amp;nbsp;xmlns:xsd=&quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://www.w3.org/&lt;wbr&gt;&lt;/wbr&gt;2001/XMLSchema&lt;/a&gt;&quot;&lt;br /&gt;xmlns:SOAP-ENC=&quot;&lt;a href=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://&lt;wbr&gt;&lt;/wbr&gt;schemas.xmlsoap.org/soap/&lt;wbr&gt;&lt;/wbr&gt;encoding/&lt;/a&gt;&quot;&lt;br /&gt;xmlns:SOAP-ENV=&quot;&lt;a href=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://&lt;wbr&gt;&lt;/wbr&gt;schemas.xmlsoap.org/soap/&lt;wbr&gt;&lt;/wbr&gt;envelope/&lt;/a&gt;&quot;&lt;br /&gt;xmlns:clr=&quot;&lt;a href=&quot;http://schemas.microsoft.com/soap/encoding/clr/1.0&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://schemas.&lt;wbr&gt;&lt;/wbr&gt;microsoft.com/soap/encoding/&lt;wbr&gt;&lt;/wbr&gt;clr/1.0&lt;/a&gt;&quot;&lt;br /&gt;SOAP-ENV:encodingStyle=&quot;&lt;a href=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http:/&lt;wbr&gt;&lt;/wbr&gt;/schemas.xmlsoap.org/soap/&lt;wbr&gt;&lt;/wbr&gt;encoding/&lt;/a&gt;&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;soap-env:body&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a1:store clr=&quot;&quot; http:=&quot;&quot; id=&quot;ref-1&quot; nsassem=&quot;&quot; schemas.microsoft.com=&quot;&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot; xmlns:a1=&quot;&amp;lt;a href=&quot;&gt;http://schemas.&lt;wbr&gt;&lt;/wbr&gt;microsoft.com/clr/nsassem/&lt;/a1:store&gt;&lt;/soap-env:body&gt;&lt;br /&gt;SerializeTest/SerializeTest%&lt;wbr&gt;&lt;/wbr&gt;2C%20Version%3D1.0.938.186%2C&lt;br /&gt;%20Culture%3Dneutral%2C%&lt;wbr&gt;&lt;/wbr&gt;20PublicKeyToken%3Dnull&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;scount&gt;50&lt;/scount&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;storename id=&quot;ref-3&quot;&gt;My local store&lt;/storename&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
serialization - to save information to disk or the registry&lt;br /&gt;Mark your classes with the [Serializable] attribute and there you go. It�s a simple matter of creating a Formatter and a Stream and a couple of lines later it�s done. Alternatively, you could mark up your class with the necessary attributes and use XML Serialization.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
ISSUES with Serialization:&lt;br /&gt;-&amp;nbsp; It forces you to design your classes a certain way&lt;br /&gt;XML serialization only works on public methods and fields, and on classes with public constructors. That means your classes need to be accessible to the outside world. You cannot have private or internal classes, or serialize private data. In addition, it forces restrictions on how you implement collections.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
- It is not future-proof for small changes&lt;br /&gt;If you mark your classes as [Serializable], then all the private data not marked as [NonSerialized] will get dumped. You have no control over the format of this data. If you change the name of a private variable, then your code will break.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
You can get around this by implementing the ISerializable interface. This gives you much better control of how data is serialized and deserialized.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
-It is not future-proof for large changes&lt;br /&gt;Type information is stored as part of the serialization information. If you change your class names or strong-name your assemblies, you�re going to hit all sorts of problems.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
5. It is not secure&lt;br /&gt;Using XML serialization is inherently insecure. Your classes need to be public, and they need to have public properties or fields. In addition, XML serialization works by creating temporary files. If you think you�re creating temporary representations of your data (for example, to create a string that you�re going to post to a web service), then files on disk will pose a potential security risk. If, instead, you implement the ISerializable interface and are persisting sensitive internal data, then, even if you�re not exposing private data through your classes, anyone can serialize your data to any file and read it that way, since GetObjectData is a public method.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
6. It is inefficient&lt;br /&gt;XML is verbose. And, if you are using the ISerializable interface, type information gets stored along with data. This makes serialization very expensive in terms of disk space.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/6560804287944917378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/serialization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/6560804287944917378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/6560804287944917378'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/serialization.html' title='Serialization'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-5495848079059061678</id><published>2014-03-05T06:13:00.001-08:00</published><updated>2014-03-05T06:14:31.247-08:00</updated><title type='text'>Random Notes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
Infragistic controls / 3rd party controls are slow. bcos they have additional properties .. they need time to load which can slow a website. By replacing these conrols by user deigned .net controls&amp;nbsp; we made the websit faster frm 3.3 seconds to 2 sec.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&amp;nbsp;also redesign the pages to have better look and feel&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
SQL profiler is used to see the performance of a sql script. By % how much time taken by what&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
To return 2 values from a method... 1 can be returned by normal process, other by reference&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
SQL also has an Execution palnner -&amp;gt; (Query-&amp;gt;include execution planner ) Ctrl + M&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;to get the current user of the system -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;@System.Security.Principal.WindowsIdentity.GetCurrent().Name;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/5495848079059061678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/random-notes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/5495848079059061678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/5495848079059061678'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/random-notes.html' title='Random Notes'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-7294253341561618739</id><published>2014-03-05T06:12:00.001-08:00</published><updated>2014-03-05T06:12:36.700-08:00</updated><title type='text'>Create a Maintainance Plan on SQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
- There are two ways to create a maintenance plan: you can create a plan using the Maintenance Plan Wizard, or you can create a plan using the design surface. The Wizard is best for creating basic maintenance plans, while creating a plan using the design surface allows you to utilize enhanced workflow.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
To create or manage Maintenance Plans, you must be a member of the sysadmin fixed server role. Note that Object Explorer only displays maintenance plans if the user is a member of the sysadmin fixed server role.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
The Maintenance Plan Wizard helps you set up the core maintenance tasks to make sure that your database performs well, is regularly backed up, and is free of inconsistencies. The Maintenance Plan Wizard creates one or more SQL Server Agent jobs that perform these tasks on local servers or on target servers in a multiserver environment. Execution can be at scheduled intervals or on demand.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
Maintenance plans can be created to perform the following tasks:&lt;br /&gt;- Reorganize the data on the data and index pages by rebuilding indexes&lt;br /&gt;- Compress data files by removing empty database pages.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
To create a maintenance plan using the Maintenance Plan Wizard&lt;br /&gt;1.In Object Explorer, expand a server, and then expand Management.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
2.Right-click Maintenance Plans and select Maintenance Plan Wizard.&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
3.Follow the steps of the wizard to create a maintenance plan.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/7294253341561618739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/create-maintainance-plan-on-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7294253341561618739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7294253341561618739'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/create-maintainance-plan-on-sql.html' title='Create a Maintainance Plan on SQL'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-2250589064998479308</id><published>2014-03-05T06:11:00.003-08:00</published><updated>2014-03-05T06:11:43.749-08:00</updated><title type='text'>WebService - all about it</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;color: #222222; font-family: arial; line-height: 29.25px; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; font-weight: normal; line-height: 18px;&quot;&gt;This is from&amp;nbsp;&lt;a href=&quot;http://4guysfromrolla.com/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;4guysfromrolla.com&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #222222; font-family: arial; line-height: 29.25px; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; font-weight: normal; line-height: 18px;&quot;&gt;A Web Service is an external interface provided by a Web site that can be called from other Web sites. For example, a financial company may make up to the minute stock quotes available via a Web Service for those who do their trading with that company. This information could be read from a Web page and displayed, or read from a stand-alone application on a customer&#39;s desktop computer.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal; line-height: 20px;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;my Web Service should provide other Web sites the ability to:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px; margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;View a listing of all of the FAQ categories&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px; margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;View a listing of all of the FAQs for a particular category&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px; margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;View the &quot;Question&quot; (but not the Answer) for a particular FAQ&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Creating Web Services is quite simple. Start by creating a&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;.asmx&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;file.&amp;nbsp;&amp;nbsp;The Web Service is created as an ordinary class; the methods that have the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;&lt;webmethod&gt;&lt;/webmethod&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;macro before them indicate the method is accessible via the Web Service.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;For the ASPFAQs.com Web Service, we will create three Web Service-accessible methods:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;GetCategories&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;GetFAQsInCategory&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;, and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;GetFAQ&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;, which perform the tasks (1), (2), and (3) outlined above, respectively. A private helper function,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;GetDataSet&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;, is also included, which essentially populates a DataSet based on a passed in SQL query. The code for our Web Service class can be seen below:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;color: #222222; font-family: arial; font-size: small; width: 95%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; border: rgb(240, 240, 240); font-family: arial, sans-serif; margin: 0px; padding: 0.75pt; width: 562px;&quot; width=&quot;99%&quot;&gt;&lt;div style=&quot;background-color: #fbedbb; background-position: initial initial; background-repeat: initial initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;
&lt;pre&gt;&amp;lt;%@ WebService Language=&quot;VB&quot; &lt;b&gt;Class=&quot;ASPFAQs&quot;&lt;/b&gt; %&amp;gt;&lt;/pre&gt;
&lt;pre&gt;Imports System.Web.Services&lt;/pre&gt;
&lt;pre&gt;Imports System.Data&lt;/pre&gt;
&lt;pre&gt;Imports System.Data.SqlClient&lt;/pre&gt;
&lt;pre&gt;Imports System.Configuration&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;Public Class ASPFAQs&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; Private Function GetDataSet(strSQL as String) as DataSet&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;1. Create a connection&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myConnection as New SqlConnection(&lt;i&gt;ConnectionString&lt;/i&gt;&lt;wbr&gt;&lt;/wbr&gt;)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;2. Create the command object, passing in the SQL string&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim myCommand as New SqlCommand(strSQL, myConnection)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myConnection.Open()&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;3. Create the DataAdapter&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myDataAdapter as New SqlDataAdapter()&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myDataAdapter.SelectCommand = myCommand&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;4. Populate the DataSet and close the connection&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myDataSet as New DataSet()&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myDataAdapter.Fill(myDataSet)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myConnection.Close()&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;Return the DataSet&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return myDataSet&amp;nbsp; &lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;End Function&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; &lt;b&gt;&lt;webmethod&gt;&lt;/webmethod&gt;&lt;/b&gt; Public Function GetCategories() as DataSet&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return GetDataSet(&lt;i&gt;SQL Query for Retrieving the FAQ Categories&lt;/i&gt;)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; End Function&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; &lt;b&gt;&lt;webmethod&gt;&lt;/webmethod&gt;&lt;/b&gt; Public Function GetFAQsInCategory(catID as Integer) as DataSet&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return GetDataSet(&lt;i&gt;SQL Query for Retrieving the FAQs for Category catID&lt;/i&gt;)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; End Function&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; &lt;b&gt;&lt;webmethod&gt;&lt;/webmethod&gt;&lt;/b&gt; Public Function GetFAQ(FAQID as Integer) as DataSet&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return GetDataSet(&lt;i&gt;SQL Query for Retrieving the FAQ FAQID&lt;/i&gt;)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; End Function&lt;/pre&gt;
&lt;pre&gt;End Class&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Some things to note: the three Web Service-accessible methods are predicated with&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;&lt;webmethod&gt;&lt;/webmethod&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;; at the top of the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;.asmx&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;file is a&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;@WebService&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;directive that specifies the language and class in the file; the Web Service is named&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;ASPFAQs&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;, as shown by the class name. Once you have created this&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;.asmx&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;file and stored it on a Web-accessible directory, you can view the methods by visiting the page directly through your Web browser. For example, I named my Web Service file&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;ASPFAQs.asmx&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;and saved it in the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;/ws&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;directory; so, by visiting&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://aspnet.4guysfromrolla.com/ws/ASPFAQs.asmx&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;http://aspnet.4guysfromrolla.&lt;wbr&gt;&lt;/wbr&gt;com/ws/ASPFAQs.asmx&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;, you can see a listing of the Web Method&#39;s public methods. Furthermore, you can &quot;try out&quot; the Web Methods by providing input parameters and viewing the returned results.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;If you read last week&#39;s&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.4guysfromrolla.com/webtech/061902-1.shtml&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #004cd5; font-family: Verdana;&quot;&gt;Protecting Yourself from SQL Injection Attacks&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;article you may be concerned that in using Web Services that accept parameters that are used directly in a SQL statement you are opening yourself up to a SQL Injection attack. (The&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;GetFAQsInCategory&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;GetFAQ&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;are two such methods that may concern the alert reader.) However, SQL Injection attack is&amp;nbsp;&lt;b&gt;not&lt;/b&gt;&amp;nbsp;a problem here because the Web Service code automatically ensures that the input parameter is of the correct type, which is Integer here. Hence, if a malicious user attempts to pass to the Web Service an input parameter of, say,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;0 &#39;&lt;i&gt;malicious SQL statement&lt;/i&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;, an error message like&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;Cannot convert 0 &#39;&lt;i&gt;malicious SQL&lt;/i&gt;&amp;nbsp;to System.Int32. Parameter name: type --&amp;gt; Input string was not in a correct format&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;will be returned. If, however, the input string is of type String, you should be sure to sanitize the input string by replacing all single apostrophes with two successive single apostrophes.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;As the creator of the Web Service, our job is done - we&#39;ve created the Web Service and other Web sites can now use it through their Web site. You may be wondering, though, how a Web Service can be &quot;consumed&quot; by another Web site.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #222222; font-family: arial; line-height: 29.25px; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 20px;&quot;&gt;Consuming a Web Service&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;&lt;br /&gt;For a Web site to consume a Web Service, a rather complicated and terse communication must occur between the client Web site (henceforth referred to as the &quot;consumer&quot;) and the Web site that is providing the Web service (henceforth the &quot;producer&quot;). Essentially, the consumer must decide what producer&#39;s method it wishes to call. If there are input parameters, these parameters must be converted into XML to be passed along. An HTTP request is then made from the consumer to the producer, specifying the method it wishes to call and passing along the parameters in either a SOAP request, through the QueryString, or in the POST headers.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;The producer receives the incoming request, unpackages the input parameters, and calls the appropriate method of the specified class. This method, when complete, returns some value, which is packaged up and sent back to the consumer in an HTTP response. The consumer receives this response, unpackages the return value, completing the Web Service call.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Clearly we&#39;d like to not have to worry about the HTTP message passing semantics at all when using Web Services. In order to remove this as a concern, we use what is called a Proxy class. Proxy classes serve as an intermediate step between the program (or Web page) on the consumer and the actual Web service on the producer. For each method in the producer&#39;s Web Service, there is a method in the Proxy class. It is the responsibility of the Proxy class to do all of the complicated message-passing tasks; essentially this complexity is hidden in the class, our Web page can simply call the methods of this class and not concern itself with the underlying semantics involved in calling a Web Service.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #222222; font-family: arial; line-height: 29.25px; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 20px;&quot;&gt;What in the World did he just Say?&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;&lt;br /&gt;The fundamental thing to understand is that the HTTP communications that must occur between a consumer and producer when calling a Web Service can be complicated and require much code. We&#39;d prefer to have our Web pages that utilize Web Services be able to invoke the Web Service just as if it were a local component. In order to accomplish this, a Proxy class is used, whose public interface mirrors that of the Web Service.&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #222222; font-family: arial; line-height: 29.25px; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 20px;&quot;&gt;Creating the Proxy Class in Visual Studio .NET&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;&lt;br /&gt;Creating a Proxy class for a Web Service is a breeze in Visual Studio .NET. In your&amp;nbsp;&lt;a href=&quot;http://asp.net/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;ASP.NET&lt;/a&gt;&amp;nbsp;Web Project, simply right click on the References icon and choose to &quot;Add a Web Reference.&quot; A dialog box will appear asking you for a URL - simply enter the URL of the Web Service, such as:&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://aspnet.4guysfromrolla.com/ws/ASPFAQs.asmx&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://aspnet.4guysfromrolla.&lt;wbr&gt;&lt;/wbr&gt;com/ws/ASPFAQs.asmx&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 18px;&quot;&gt;. You will then see the description of the Web Service (just as if you had visited the URL directly through your Web browser). To complete this task, click the &quot;Add Reference&quot; button, which will automatically create the Proxy class for you and compile it.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;When added to your project the Proxy class&#39;s namespace will likely be the URL of your site, for example:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;com.4guysfromrolla.aspnet&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;. (You can rename this if you so choose.) To call the Web Service from a Web page you use the Proxy class like you would any other local component. Imagine that we wanted to display a list of the FAQs from the&amp;nbsp;&lt;a href=&quot;http://asp.net/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;ASP.NET&lt;/a&gt;&amp;nbsp;category (which has category ID 22). We could do this by making a call to the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;GetFAQsInCategory&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;method of the Web Service, passing in the parameter 22, and binding the resulting DataSet to a DataGrid, like so:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;color: #222222; font-family: arial; font-size: small; width: 95%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; border: rgb(240, 240, 240); font-family: arial, sans-serif; margin: 0px; padding: 0.75pt; width: 467px;&quot; width=&quot;100%&quot;&gt;&lt;div style=&quot;background-color: #fbedbb; background-position: initial initial; background-repeat: initial initial; border: 1pt solid rgb(251, 237, 187); padding: 5pt;&quot;&gt;
&lt;pre&gt;&#39;HTML content in .aspx page...&lt;/pre&gt;
&lt;pre&gt;&lt;asp:datagrid id=&quot;dgCategoryFAQs&quot; runat=&quot;server&quot;&gt;&lt;/asp:datagrid&gt;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&#39;*** ------------------------------&lt;wbr&gt;&lt;/wbr&gt;------------------ ***&#39;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&#39;code content in the code-behind page&lt;/pre&gt;
&lt;pre&gt;Private Sub Page_Load(sender as Object, e as EventArgs)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; &#39;Create an instance of the Proxy class&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; Dim consumeWebService as com._4guysfromrolla.aspnet.&lt;wbr&gt;&lt;/wbr&gt;ASPFAQs&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; Set consumeWebService = New com._4guysfromrolla.aspnet.&lt;wbr&gt;&lt;/wbr&gt;ASPFAQs&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; &lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&#39;Bind the results of GetFAQsInCategory to dgCategoryFAQs&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; dgCategoryFAQs.DataSource = consumeWebService.&lt;wbr&gt;&lt;/wbr&gt;GetFAQsInCategory(22)&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; dgCategoryFAQs.DataBind()&lt;/pre&gt;
&lt;pre&gt;End Sub&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small; line-height: 19.5px;&quot;&gt;
&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;From simply examining the code you could not determine that the call to the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;com._4guysfromrolla.aspnet.&lt;wbr&gt;&lt;/wbr&gt;ASPFAQs&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;Proxy class is, in actuality, a remote Web service call. When the Proxy class&#39;s&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; line-height: 22px;&quot;&gt;GetFAQsInCategory&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 9pt; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;method is called, the complex communications discussed previously occur (the remote HTTP request/response dialogue).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; width: 85%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;background-color: transparent; border: rgb(240, 240, 240); font-family: arial, sans-serif; margin: 0px; padding: 0.75pt;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;Creating a Proxy Class&amp;nbsp;&lt;i&gt;without&lt;/i&gt;&amp;nbsp;Visual Studio .NET&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt; line-height: 18.399999618530273px;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;background-color: transparent; border: rgb(240, 240, 240); font-family: arial, sans-serif; margin: 0px; padding: 0.75pt;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 13.800000190734863px;&quot;&gt;Creating a Proxy class through Visual Studio .NET is very easy; however, if you don&#39;t have Visual Studio .NET, you can still create Proxy classes, but you must do so through the command-line. For more information on this technique be sure to read the PowerPoint presentation:&amp;nbsp;&lt;a href=&quot;http://www.4guysfromrolla.com/code/ConsumeWS.ppt&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt;Calling a Web Service from an ASP.NET Web Page&lt;/span&gt;&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;h2 style=&quot;color: #222222; font-family: arial; line-height: 29.25px; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 20px;&quot;&gt;Conclusion&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #222222; font-family: arial; font-size: small; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 13.800000190734863px;&quot;&gt;&lt;br /&gt;In this article we examined how to create a Web Service and then how to consume it from an&amp;nbsp;&lt;a href=&quot;http://asp.net/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;ASP.NET&lt;/a&gt;&amp;nbsp;Web page using Visual Studio .NET. Microsoft has really simplified the process of producing and consuming Web Services with .NET. Creating a Web Service is as simple as creating a&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.asmx&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 13.800000190734863px;&quot;&gt;&amp;nbsp;file and writing the code for the Web Service methods - save for the&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;webmethod&gt;&lt;/webmethod&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 9pt; line-height: 13.800000190734863px;&quot;&gt;&amp;nbsp;macros, the code appears nearly identical to the code one would write for a local component. Consuming a Web Service is painfully simple too, thanks to the use of Proxy classes. On top of that, the creation of Proxy classes is utterly simple through tools such as Visual Studio .NET.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/2250589064998479308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/webservice-all-about-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/2250589064998479308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/2250589064998479308'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/webservice-all-about-it.html' title='WebService - all about it'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-8578193092845392364</id><published>2014-03-05T06:10:00.002-08:00</published><updated>2014-03-05T06:10:43.895-08:00</updated><title type='text'>Threading in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;C# supports parallel execution of code through multithreading&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
A thread is an independent execution path, able to run simultaneously with other thread&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;a href=&quot;http://www.albahari.com/threading/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://www.albahari.com/&lt;wbr&gt;&lt;/wbr&gt;threading/&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/8578193092845392364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/threading-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/8578193092845392364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/8578193092845392364'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/threading-in-c.html' title='Threading in C#'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-2331335093928377878</id><published>2014-03-05T06:09:00.002-08:00</published><updated>2014-03-05T06:09:44.183-08:00</updated><title type='text'>WCF Basic</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
WCF&lt;br /&gt;
- windows communication foundation (.net 3.0)&lt;br /&gt;
- communication framework&lt;br /&gt;
- enables us to expose CLR type services and consume exisitng services as CLR types&lt;br /&gt;
- Different communication technologies in the world - webservices (asmx), web services enhancements(wse), messaging (msmq), .net enterprise services (ES), .net remoting&lt;br /&gt;
- used for building service oriented applications&lt;br /&gt;
- eg: websevice for weather - consumes zip code and outputs forecast&lt;br /&gt;
- wcf service is based on contract ( implemented &amp;nbsp;as an interface decorated with the attribute [ServiceContractAttribute] )&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;[ServiceContract]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;public interface IWeatherForecastService&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [OperationContract]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public WeatherForecast GetForeCast(int zipCode);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;- Address : where the service will be found [ServiceContract]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;public interface IWeatherForecastService&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [OperationContract]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public WeatherForecast GetForeCast(int zipCode);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;ABC od WCF&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;- Address: where the service will be found scheme://domaon[:port]/path (e.g.:&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://localhost:8080/MyWCFService&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://localhost:8080/&lt;wbr&gt;&lt;/wbr&gt;MyWCFService&lt;/a&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;- Binding :Protocols used by specific endpoint(http, tcp, msmq)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;- Contract : Expresses what the service does (can have an app with multiple channels)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;- Endpoint : combination of ABC&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;- Consumer of sevice creates a proxy. This Proxy is what the consumer uses to communicate with the host and basically is an empty type that exposes all operations in a service contract, and hides serialization/sending over wire details. A single proxy, uses a single endpoint.&lt;/span&gt;&lt;br /&gt;
- WeatherForecast type is a class we wrote and it represents a business object that conveniently holds all data related to the forecast. When sending this object to a consumer it will be serialized.&lt;br /&gt;
Conclusion: We have a host and client who agree upon a contract.&amp;nbsp; Our host exposes one or more EndPoints which are a combination of Address, Binding and Contract. On the other side our client uses a Proxy (this proxy is tied to a specified EndPoint thus also tied to a particular Contract). The actual communication related details are abstracted in Channels and Behaviors.&lt;br /&gt;
Ask these to yourself&lt;br /&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; First, think of the contract (What am I trying to do?!)&lt;br /&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; Secondly, think of where you will host it, and what technology you will use to host it.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; Finally think of the other parts like authentication.&lt;br /&gt;
1. Create a &#39;WCF Service Application&#39;&lt;br /&gt;2. Add a new WCF Service file (.svc). [name.svc and Iname.cs will be created]&lt;br /&gt;3. Add this in .cs file&lt;br /&gt;namespace HelloWorldService&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ServiceContract]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public interface IHelloWorld&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [OperationContract]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string sayHello(string name);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;4. Add this in .svc file&lt;br /&gt;namespace HelloWorldService&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; public class HelloWorld : IHelloWorld&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string sayHello(string name)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &quot;Hello &quot; + name;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;5. We just can run the application and use the default bindings&lt;br /&gt;6. To test the method we can also run WCF Test Client (in C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE) and pass value to the method. We can see the output in 2 formats - XML, formated&lt;br /&gt;
&lt;br /&gt;
The request:&lt;br /&gt;
&lt;s:envelope envelope=&quot;&quot; http:=&quot;&quot; schemas.xmlsoap.org=&quot;&quot; soap=&quot;&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot; xmlns:s=&quot;&amp;lt;a href=&quot;&gt;http://schemas.&lt;wbr&gt;&lt;/wbr&gt;xmlsoap.org/soap/envelope/&lt;/s:envelope&gt;&lt;/div&gt;
&lt;/div&gt;
&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &lt;s:header&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;action nbsp=&quot;&quot; s:mustunderstand=&quot;1&quot; wbr=&quot;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns=&quot;&lt;a href=&quot;http://schemas.microsoft.com/ws/2005/05/addressing/none&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://schemas.&lt;wbr&gt;&lt;/wbr&gt;microsoft.com/ws/2005/05/&lt;wbr&gt;&lt;/wbr&gt;addressing/none&lt;/a&gt;&quot;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://tempuri.org/IHelloWorld/sayHello%3C/Action&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://tempuri.org/&lt;wbr&gt;&lt;/wbr&gt;IHelloWorld/sayHello&lt;/a&gt;&lt;/action&gt;&amp;gt;&lt;br /&gt;&amp;nbsp; &lt;/s:header&gt;&lt;br /&gt;&amp;nbsp; &lt;s:body&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;sayhello http:=&quot;&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot; tempuri.org=&quot;&quot; xmlns=&quot;&amp;lt;a href=&quot;&gt;http://tempuri.org/&lt;/sayhello&gt;&lt;/s:body&gt;&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;name&gt;Jeroen&lt;/name&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;The response:&lt;s:envelope envelope=&quot;&quot; http:=&quot;&quot; schemas.xmlsoap.org=&quot;&quot; soap=&quot;&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot; xmlns:s=&quot;&amp;lt;a href=&quot;&gt;http://schemas.&lt;wbr&gt;&lt;/wbr&gt;xmlsoap.org/soap/envelope/&lt;/s:envelope&gt;&lt;br /&gt;
&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &lt;s:header&gt;&lt;br /&gt;&amp;nbsp; &lt;s:body&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;sayhelloresponse http:=&quot;&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot; tempuri.org=&quot;&quot; xmlns=&quot;&amp;lt;a href=&quot;&gt;http://tempuri.org/&lt;/sayhelloresponse&gt;&lt;/s:body&gt;&lt;/s:header&gt;&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;sayhelloresult&gt;Hello Jeroen&lt;/sayhelloresult&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;WCF CLIENT - will consume this service&lt;br /&gt;client can be created&lt;br /&gt;- by using metadata exposed by the EndPoint to generate proxies on the fly&lt;br /&gt;- by pre-distribute the metadata as a definition of the interface, or a dll that contains the IHelloWorld interface.&lt;br /&gt;
1. Create a console app and add a refernce to our WCF service (add service refernce : address :&amp;nbsp;&lt;a href=&quot;http://localhost:5558/HelloWorld.svc&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://localhost:5558/&lt;wbr&gt;&lt;/wbr&gt;HelloWorld.svc&lt;/a&gt;&lt;br /&gt;2. write&lt;br /&gt;static void Main(string[] args)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Create a new HelloWorldClient object&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HelloWorldReference.&lt;wbr&gt;&lt;/wbr&gt;HelloWorldClient client = new HelloWorldReference.&lt;wbr&gt;&lt;/wbr&gt;HelloWorldClient();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Write the response from the sayHello method&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(client.&lt;wbr&gt;&lt;/wbr&gt;sayHello(&quot;Jeroen&quot;));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Close the WCF connection&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; client.Close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.Read();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Types of Contracts / Services:&lt;br /&gt;
1. Service Contract : all operations that client can perform&lt;br /&gt;
2. Data Contract : defines data types that are passed in and out of service. [DataContract] and [DataMember] attributes are used&lt;br /&gt;
3. Fault Contract : describes the error raised by the service . [FaultContract(&amp;lt;&lt;type ault=&quot;&quot; exception=&quot;&quot; of=&quot;&quot;&gt;&amp;gt;)] attribute is used&lt;/type&gt;&lt;br /&gt;
4. Message Contracts: direct control over SOAP message structure. This is useful in inter-operability cases and when there is an existing message format you have to comply with. [MessageContract], [MessageHeader], [MessageBodyMember] attributes are used&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example of Data Service:&lt;br /&gt;
- Microsoft implementation of OData, which is an open-format specification for accessing data&lt;br /&gt;
- Microsoft Visual Studio .NET facilitates creating a WCF data service by using an&amp;nbsp;&lt;a href=&quot;http://ado.net/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;ADO.NET&lt;/a&gt;&amp;nbsp;Entity Framework data model.&lt;br /&gt;
- WCF Data Services is designed to provide access to your data (xml, database,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A solution has a web application and a &#39;WCF Data Service&#39; &amp;nbsp;file (exposed URI you can call from the internet)</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/2331335093928377878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/wcf-basic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/2331335093928377878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/2331335093928377878'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/wcf-basic.html' title='WCF Basic'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-7590279081632670944</id><published>2014-03-05T05:29:00.002-08:00</published><updated>2014-03-05T05:29:53.391-08:00</updated><title type='text'>GetNoOfPagesPDF &amp; Merge</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre style=&quot;color: #222222; font-family: Consolas; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//public&amp;nbsp;static&amp;nbsp;int&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;GetNoOfPagesPDF(string&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;FileName)&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//{&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int&amp;nbsp;result&amp;nbsp;=&amp;nbsp;0;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FileStream&amp;nbsp;fs&amp;nbsp;=&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;new&amp;nbsp;FileStream(FileName,&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;FileMode.Open,&amp;nbsp;FileAccess.&lt;wbr&gt;&lt;/wbr&gt;Read);&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;StreamReader&amp;nbsp;r&amp;nbsp;=&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;new&amp;nbsp;StreamReader(fs);&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;string&amp;nbsp;pdfText&amp;nbsp;=&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;r.ReadToEnd();&lt;/span&gt;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Text.&lt;wbr&gt;&lt;/wbr&gt;RegularExpressions.Regex&amp;nbsp;regx&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;=&amp;nbsp;new&amp;nbsp;Regex(@&quot;/Type\s*/Page[^&lt;wbr&gt;&lt;/wbr&gt;s]&quot;);&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Text.&lt;wbr&gt;&lt;/wbr&gt;RegularExpressions.&lt;wbr&gt;&lt;/wbr&gt;MatchCollection&amp;nbsp;matches&amp;nbsp;=&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;regx.Matches(pdfText);&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result&amp;nbsp;=&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;matches.Count;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;result;&lt;/span&gt;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//}&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;color: #222222; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;color: #222222; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;merge(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;sFile1,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;sFile2)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;FileStream&lt;/span&gt;&amp;nbsp;fs1&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;n&lt;wbr&gt;&lt;/wbr&gt;ull&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;FileStream&lt;/span&gt;&amp;nbsp;fs2&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;n&lt;wbr&gt;&lt;/wbr&gt;ull&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;try&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fs1&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;File&lt;/span&gt;.&lt;wbr&gt;&lt;/wbr&gt;Open(sFile1,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;FileMode&lt;/span&gt;.Append);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fs2&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;File&lt;/span&gt;.&lt;wbr&gt;&lt;/wbr&gt;Open(sFile2,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;FileMode&lt;/span&gt;.Open);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;byte&lt;/span&gt;[]&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;fs2Content&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;byte&lt;/span&gt;[fs2.&lt;wbr&gt;&lt;/wbr&gt;Length];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fs2.Read(&lt;wbr&gt;&lt;/wbr&gt;fs2Content,&amp;nbsp;0,&amp;nbsp;(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;)fs2.&lt;wbr&gt;&lt;/wbr&gt;Length);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fs1.Write(&lt;wbr&gt;&lt;/wbr&gt;fs2Content,&amp;nbsp;0,&amp;nbsp;(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;)fs2.&lt;wbr&gt;&lt;/wbr&gt;Length);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;ex)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;MessageBox&lt;/span&gt;.&lt;wbr&gt;&lt;/wbr&gt;Show(ex.Message&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&amp;nbsp;:&amp;nbsp;&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;ex.&lt;wbr&gt;&lt;/wbr&gt;StackTrace);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;finally&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fs1.Close();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fs2.Close();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/7590279081632670944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/getnoofpagespdf-merge.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7590279081632670944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7590279081632670944'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/getnoofpagespdf-merge.html' title='GetNoOfPagesPDF &amp; Merge'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-3978568854141664757</id><published>2014-03-05T05:28:00.003-08:00</published><updated>2014-03-05T05:28:20.919-08:00</updated><title type='text'>Connecting to multiple databases in MVC web application</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;In your web.config file, you could define your two connection strings:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;connectionstrings&gt;&lt;/connectionstrings&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;add name&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;DevelopmentDB&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; providerName&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;System.Data.&lt;wbr&gt;&lt;/wbr&gt;SqlClient&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        connectionString&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;Data Source=&lt;a href=&quot;http://sql-dev.example.com/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;sql-dev.example.com&lt;/a&gt;;&lt;wbr&gt;&lt;/wbr&gt;Initial Catalog=MyDB;User Id=MyUser;Password=MyPassword&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;add name&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;ProductionDB&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; providerName&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;System.Data.&lt;wbr&gt;&lt;/wbr&gt;SqlClient&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        connectionString&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;Data Source=&lt;a href=&quot;http://sql-prod.example.com/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;sql-prod.example.com&lt;/a&gt;;&lt;wbr&gt;&lt;/wbr&gt;Initial Catalog=MyDB;User Id=MyUser;Password=MyPassword&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;connectionStrings&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; white-space: normal;&quot;&gt;Then, in your (base) controller, you could create a method that returns the appropriate connection string based upon the request, such as:&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;pre style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;internal&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ConnectionString&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    get
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; getConnectionStringByServerNam&lt;wbr&gt;&lt;/wbr&gt;e&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;HttpContext&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Ser&lt;wbr&gt;&lt;/wbr&gt;verVariables&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;SERVER_NAME&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;]);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;internal&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; getConnectionStringByServerNam&lt;wbr&gt;&lt;/wbr&gt;e&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; serverName&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;serverName&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Equals&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;localhost&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;wbr&gt;&lt;/wbr&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;WebConfigurationManager&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Connec&lt;wbr&gt;&lt;/wbr&gt;tionStrings&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;DevelopmentDB&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;C&lt;wbr&gt;&lt;/wbr&gt;onnectionString&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;WebConfigurationManager&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Connec&lt;wbr&gt;&lt;/wbr&gt;tionStrings&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;ProductionDB&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Co&lt;wbr&gt;&lt;/wbr&gt;nnectionString&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/3978568854141664757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/connecting-to-multiple-databases-in-mvc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/3978568854141664757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/3978568854141664757'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/connecting-to-multiple-databases-in-mvc.html' title='Connecting to multiple databases in MVC web application'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-2406893877136333028</id><published>2014-03-05T05:27:00.003-08:00</published><updated>2014-03-05T05:27:21.689-08:00</updated><title type='text'>IEnumerator and IEnumerable interfaces in the .NET framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;Enumerators can be an incredibly powerful way of iterating through data.&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;Iterators are also very useful in situations where the amount of data is not easily known at the start of the process.&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;- and for deserialisation of a file&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;The iterator reads the file, calls the necessary factory methods and passes back objects that it have been constructed based on data in the file.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;using a while loop accessing the IEnumerator based object directly, and second, using a foreach loop accessing the enumerator through the IEnumerable interface.&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;As enumerators are always initially pointed to just before the first element, this index is set to -1. The Reset() method also sets the current index back to -1.&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;=========================&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;IEnumerator interface&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;The IEnumerator interface provides iterative capability for a collection that is internal to a class. IEnumerator requires that you implement three methods:&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * The MoveNext method, which increments the collection index by 1 and returns a bool that indicates whether the end of the collection has been reached.&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * The Reset method, which resets the collection index to its initial value of -1. This invalidates the enumerator.&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * The Current method, which returns the current object at [position].&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;---------------------------&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;IEnumerable interface&lt;/span&gt;&lt;br style=&quot;color: #222222; font-family: arial; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial; font-size: x-small;&quot;&gt;The IEnumerable interface provides support for the foreach iteration. IEnumerable requires that you implement the GetEnumerator method.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/2406893877136333028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/ienumerator-and-ienumerable-interfaces.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/2406893877136333028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/2406893877136333028'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/ienumerator-and-ienumerable-interfaces.html' title='IEnumerator and IEnumerable interfaces in the .NET framework'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-7910477369288566424</id><published>2014-03-05T05:26:00.001-08:00</published><updated>2014-03-05T05:26:51.391-08:00</updated><title type='text'>Classes and Property Grid</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;The property grid is fairly easy to use.The hard part is making the class that you want to display in the grid &quot;Property Grid Friendly&quot;.&lt;br /&gt;&lt;br /&gt;1.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;Create public properties for fields you want to expose.&amp;nbsp; All properties should have&amp;nbsp;&lt;strong&gt;get&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;set&lt;/strong&gt;&amp;nbsp;methods.(If you don&#39;t have a get method, the property won&#39;t show up in the PropertyGrid).&lt;br /&gt;2.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;strong&gt;System.ComponentModel&lt;/strong&gt;&amp;nbsp;namespace have the following attribute&lt;br /&gt;&amp;nbsp;a.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;CategoryAttribute:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;This attribute places your property in the appropriate category in a node on the property grid.&lt;br /&gt;&amp;nbsp;b.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;DescriptionAttribute:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;This attribute places a description of your property at the bottom of the property grid&lt;br /&gt;&amp;nbsp;c.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;BrowsableAttribut:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;This is used to determine whether or not the property is shown or hidden in the property grid&lt;br /&gt;&amp;nbsp;d.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;ReadOnlyAttribute:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Use this attribute to make your property read only inside the property grid&lt;br /&gt;&amp;nbsp;e.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;DefaultValueAttribute:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Specifies the default value of the property shown in the property grid&lt;br /&gt;&amp;nbsp;f:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;DefaultPropertyAttribute:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;If placed above a property, this property gets the focus when the property grid is first launched. Unlike the other attributes, this attribute goes above the class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;eg: Customer Class:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;we simply create the customer class with private fields and public properties that access these fields. Attributes are placed above the properties to ready each property for the property grid.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;System.ComponentModel;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[DefaultPropertyAttribute(&quot;&lt;wbr&gt;&lt;/wbr&gt;Name&quot;)]&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;Customer&lt;br /&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_name;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_age;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;DateTime _dateOfBirth;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_SSN;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_address;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_email;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;bool&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_frequentBuyer;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;// Name property with category attribute and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;// description attribute added&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[CategoryAttribute(&quot;ID Settings&quot;), DescriptionAttribute(&quot;Name of the customer&quot;)]&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;br /&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;Name&lt;br /&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_name;&lt;br /&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;{&lt;br /&gt;_name =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;[CategoryAttribute(&quot;ID Settings&quot;),&lt;br /&gt;DescriptionAttribute(&quot;Social Security Number of the customer&quot;)]&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;SSN&lt;br /&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_SSN;&lt;br /&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;br /&gt;_SSN =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;[CategoryAttribute(&quot;ID Settings&quot;),&lt;br /&gt;DescriptionAttribute(&quot;Address of the customer&quot;)]&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;Address&lt;br /&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_address;&lt;br /&gt;}&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;br /&gt;_address =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;[CategoryAttribute(&quot;ID Settings&quot;),&lt;br /&gt;DescriptionAttribute(&quot;Date of Birth of the Customer (optional)&quot;)]&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;DateTime DateOfBirth&lt;br /&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_dateOfBirth;&lt;br /&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;br /&gt;_dateOfBirth =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;[CategoryAttribute(&quot;ID Settings&quot;), DescriptionAttribute(&quot;Age of the customer&quot;)]&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;br /&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;Age&lt;br /&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_age;&lt;br /&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;br /&gt;_age =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;[CategoryAttribute(&quot;Marketting Settings&quot;), DescriptionAttribute(&quot;If the customer as bought more than 10 times,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;is&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot;)]&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;bool&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;FrequentBuyer&lt;br /&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_frequentBuyer;&lt;br /&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;br /&gt;_frequentBuyer =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;[CategoryAttribute(&quot;Marketting Settings&quot;), DescriptionAttribute(&quot;Most current e-mail of the customer&quot;)]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;Email&lt;br /&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;_email;&lt;br /&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;br /&gt;_email =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;Customer()&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;strong&gt;Assigning the PropertyGrid an Object&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;All that is left to do to get the grid running is assign an instance of our customer class to the property grid.The property grid will automatically figure out all the fields of the customer through reflection and display the property name along with the property value on each line of the grid.&amp;nbsp; Another nice feature of the property grid is it will create special editing controls on each line that correspond to the value type on that line.For example, a Date of Birth property (of type DateTime) of the customer will allow you to edit the value of the the date with the calendar control.&amp;nbsp; Booleans can be edited with a combo box showing True or False (saves you from excess typing).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;created a new customer and populated it with values through its properties.We then use the SelectObject property of the PropertyGrid and assign our customer object to this property.Upon assigning the customer to the grid, the grid will display all of the public properties we defined in our Customer class.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #222222; font-family: arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;Form1_Load(&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;sender, System.EventArgs e)&lt;br /&gt;{&lt;/span&gt;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;// Create the customer object we want to display&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Customer bill =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;Customer();&lt;/span&gt;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;// Assign values to the properties&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;bill.Age = 50;&lt;br /&gt;bill.Address = &quot; 114 Maple Drive &quot;;&lt;br /&gt;bill.DateOfBirth = Convert.ToDateTime(&quot; 9/14/78&quot;);&lt;br /&gt;bill.SSN = &quot;123-345-3566&quot;;&lt;br /&gt;bill.Email =&amp;nbsp;&lt;a href=&quot;mailto:bill@aol.com&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;bill@aol.com&lt;/a&gt;;&lt;br /&gt;bill.Name = &quot;Bill Smith&quot;;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;// Sets the the grid with the customer instance to be&lt;/span&gt;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;// browsed&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;propertyGrid1.SelectedObject = bill;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/7910477369288566424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/classes-and-property-grid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7910477369288566424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7910477369288566424'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/classes-and-property-grid.html' title='Classes and Property Grid'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-8366402494393690095</id><published>2014-03-05T04:25:00.000-08:00</published><updated>2014-03-05T04:25:14.615-08:00</updated><title type='text'>Sp_updatestats</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;select&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;B&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;name &lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt; TableName&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;c&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;name IndexName&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;A&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;OBJECT_ID&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;avg_fragmentation_in_percent &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39; ALTER INDEX [&#39;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; c&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;name&amp;nbsp; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;] ON &#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; B&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;name &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;CASE&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;WHEN&lt;/span&gt;
avg_fragmentation_in_percent&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;=&lt;/span&gt; 40.0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;THEN&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39; REBUILD&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;WHEN&lt;/span&gt; avg_fragmentation_in_percent &lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;=&lt;/span&gt; 10.0 &lt;span style=&quot;color: grey;&quot;&gt;AND&lt;/span&gt;
avg_fragmentation_in_percent &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt; 40.0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;THEN&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39; REORGANIZE&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;ELSE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;
FixIndexCommand&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: green;&quot;&gt;--,A.*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;from&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: green;&quot;&gt;SYS&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;objects&lt;/span&gt; B&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;JOIN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: green;&quot;&gt;SYS&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;indexes&lt;/span&gt; C &lt;span style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt; B&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;C&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;object_id&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;JOIN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: green;&quot;&gt;SYS&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;dm_db_index_physical_stats&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;DB_ID&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(),NULL,NULL,NULL,NULL)&lt;/span&gt; A &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt; A&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;B&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;object_id&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;AND&lt;/span&gt; A&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;database_ID &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;DB_ID&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;()&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: grey;&quot;&gt;AND&lt;/span&gt; a&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;index_id &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; C&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;index_id&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;where&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; c&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;name &lt;span style=&quot;color: grey;&quot;&gt;is&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;not&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;null&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;--and&amp;nbsp; B.name like &#39;TableName&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;and&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; A&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;avg_fragmentation_in_percent
&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;=&lt;/span&gt; 10.0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;ORDER&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; B&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;Name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/8366402494393690095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/spupdatestats.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/8366402494393690095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/8366402494393690095'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/spupdatestats.html' title='Sp_updatestats'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-7755393485972541646</id><published>2014-03-05T04:10:00.003-08:00</published><updated>2014-03-05T04:10:58.353-08:00</updated><title type='text'>Time out issue</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: arial, sans-serif; font-size: 13px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
When your app runs into a timeout on a database operation the error message may lead you in a wrong direction to fix things. Which happened to me so this is my little index to the docs.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: arial, sans-serif; font-size: 13px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;A sqlConnection has a&amp;nbsp;&lt;i style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ConnectionTimeout&lt;/i&gt;&amp;nbsp;property.&lt;/b&gt;&amp;nbsp;It&amp;nbsp; is a property which determines the&amp;nbsp;&lt;b&gt;maximum number of seconds your code will wait for a connection to the database to open.&lt;/b&gt;&amp;nbsp;It is set in the connectionstring to the database&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: arial, sans-serif; font-size: 13px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: transparent; border: 0px; font-family: Courier New; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;data source=BROCHIS;initial catalog=Indato;integrated security=SSPI;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Connect Timeout=60&lt;/b&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: arial, sans-serif; font-size: 13px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;Opening the connection does not do anything in the database yet. That is handled by a SqlCommand,&lt;/b&gt;&amp;nbsp;which could be part of a SqlDataAdapter. The SqlCommand has&amp;nbsp;&lt;b&gt;a&lt;i style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CommandTimeOut&lt;/i&gt;&lt;/b&gt;. This is a settable&amp;nbsp;&lt;b&gt;property which determines the maximum number of seconds the command is given to execute the&amp;nbsp;&lt;span class=&quot;il&quot; style=&quot;background-color: #ffffcc;&quot;&gt;sql&lt;/span&gt;. By default this is 30 seconds.&amp;nbsp;&lt;/b&gt;When you perform something costly in the database this is the one whose value you’ll have to change.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: transparent;&quot;&gt;SqlCommand cmd;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(bigJob)&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; border: 0px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;nbsp; &amp;nbsp;cmd.CommandTimeout = 60;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #222222; font-family: arial, sans-serif; font-size: 13px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
For both properties a value of 0 indicates to wait forever. Both properties also apply to non sqlserver database operations.&lt;b&gt;&amp;nbsp;They are defined in IdbConnection and IdbCommand.&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/7755393485972541646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/time-out-issue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7755393485972541646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7755393485972541646'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/time-out-issue.html' title='Time out issue'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-8290568551888061244</id><published>2014-03-05T04:10:00.000-08:00</published><updated>2014-03-05T04:10:13.525-08:00</updated><title type='text'>TFS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 12pt; text-indent: -0.25in;&quot;&gt;Work items will NOT be duplicated
during branching or merging process&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 12pt; text-indent: -0.25in;&quot;&gt;The work item links will NOT be
updated or extend with links referencing the new branch/merged items&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: 12pt; text-indent: 0.5in;&quot;&gt;Work items exist at a logical level that is distinct
from that of the source control repository. That means the branching of the
source code or merging between two branches has no impact on work items.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;






&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/8290568551888061244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/tfs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/8290568551888061244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/8290568551888061244'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/tfs.html' title='TFS'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-6690387764046434369</id><published>2014-03-05T03:50:00.002-08:00</published><updated>2014-03-05T03:50:37.213-08:00</updated><title type='text'>Relativity </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Relativity – Imaging Documents&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;In relativity, you can convert group of doc to images using imaging
porofile and sets&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt; mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;·&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;Image output DPI &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt; mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;·&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;Color Image – yes/No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt; mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;·&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;Image Size : Converts a document to
an image that fits with the selected page dimension.This feature will resize
images when they are larger tgan the selected page size , using the aspect
ratio to maintain image proportion. When an image is of the same size or
smaller no change will be made to it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-list: l1 level2 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;o&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;Use page setting : uses current
document size for image conversion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-list: l1 level2 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;o&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;Letter (8.5 in X 11 in)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-list: l1 level2 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;o&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;A4 (8.27 in X 11.69 in)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-list: l1 level2 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;o&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;Legal (8.5 X 14 in)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-list: l1 level2 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;o&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;Custom Size&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt; mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;·&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;Maximum
Image Height (inches) / Maximum Image Width (inches) -&amp;nbsp; largest allowed size for geneartion of custom
image&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 115%; margin-bottom: 10.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Relativity is using web
services (&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;web service URL for the native imaging server in the
configuration table)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Word
Processor is the category for common word processing formats such as Word,
WordStar, Word-Perfect, and others. (Additional super types are Database,
Spreadsheet, Graphic, Multimedia,and Other.)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Maximum pages imaged per file &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt;is a native global setting for all document types that
sets the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;maximum number of document pages that are imaged. For
example, if you set this value to 50&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;and have a 100-page document, only the first 50 pages
of the document will be imaged. Use this&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;option to image only the number of pages
entered in this box.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Time Zone Field on Document &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt;determines what time zone will be used to display
dates/times&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;in a document image. If no selection is made here, the
time zone will default to Greenwich Mean Time&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;(GMT).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Node.js – javascript api to run programs on
server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;single-threaded approach to event-driven
programming is different from what I know today&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start=&quot;1&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;When a client browser initiates an HTTP request
     for a resource on the Web server, HTTP.sys intercepts the request.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;HTTP.sys contacts WAS to obtain information from
     the configuration store.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;WAS requests configuration information from the
     configuration store, applicationHost.config.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;The WWW Service receives configuration
     information, such as application pool and site configuration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;The WWW Service uses the configuration
     information to configure HTTP.sys.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;WAS starts a worker process for the application
     pool to which the request was made.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;The worker process processes the request and
     returns a response to HTTP.sys.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;The client receives a response.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 10.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;When WAS starts a worker process
(w3wp.exe) the worker process allocates a thread for loading and executing your
application. This is analogous to starting a program and inspecting the process
in Windows Task Manager. If you open 3 instances of the program, you will see 3
processes in task manager and each process will have a minimum of one thread.
If an unhandled exception occurs in the program, the entire process is torn
down, but it doesn’t affect other processes because they are isolated for each
other.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0in 0in 10.5pt; orphans: 2; text-align: -webkit-auto; widows: 2;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Processes, however, are not free. Starting and maintaining a process
requires CPU time and memory, both of which are finite, and more processes and
threads require more resources.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0in 0in 10.5pt; orphans: 2; text-align: -webkit-auto; widows: 2;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;.NET improves resource consumption and adds an additional degree of
isolation through Application Domains or AppDomains. AppDomains live within a
process and your application runs inside an AppDomain.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 10.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;You’ve created two ASP.NET applications on the same
server, and have not done any special configuration. What is happening?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0in 0in 10.5pt; orphans: 2; text-align: -webkit-auto; widows: 2;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;A single ASP.NET worker process will host both of the ASP.NET
applications. On Windows XP and Windows 2000 this process is named
aspnet_wp.exe, and the process runs under the security context of the local
ASPNET account. On Windows 2003 the worker process has the name w3wp.exe and
runs under the NETWORK SERVICE account by default.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0in 0in 10.5pt; orphans: 2; text-align: -webkit-auto; widows: 2;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;An object lives in one AppDomain. Each ASP.NET application will have
it’s own set of global variables: Cache, Application, and Session objects are
not shared. Even though the code for both of the applications resides inside
the same process, the unit of isolation is the .NET AppDomain. If there are
classes with shared or static members, and those classes exist in both
applications, each AppDomain will have it’s own copy of the static fields – the
data is not shared. The code and data for each application is safely isolated
and inside of a boundary provided by the AppDomain&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0in 0in 10.5pt; orphans: 2; text-align: -webkit-auto; widows: 2;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In order to communicate or pass objects between AppDomains, you’ll need
to look at techniques in .NET for communication across boundaries, such as .NET
remoting or web services.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 10.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;As outlined in steps 1 – 7 above, when a
request comes in, IIS uses an I/O thread to dispatch the request off to
ASP.NET. ASP.NET immediately sends the request to the CLR thread pool which
returns immediately with a pending status. This frees the IIS I/O thread to
handle the next request and so on. Now, if there is a thread available in the
thread pool, life is good, and the work item is executed, returning back to the
I/O thread in step 7. However, if all of the threads in the thread pool are
busy, the request will queue until a CLR thread pool thread is available to
process the work item, and if the queue length is too high, users will receive
a somewhat terse request to go away and come back later.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0in 0in 10.5pt; orphans: 2; text-align: -webkit-auto; widows: 2;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;This
is a bit of an extreme trivialization of what happens. There are a number of
knobs that can be set in IIS and ASP.NET that allow you to tune the number of
concurrent requests, threads and connections that affect both IIS and the CLR
thread pool. For example, the IIS thread pool has a maximum thread count of
256. ASP.NET initializes its thread pool to 100 threads per processor/core. You
can adjust things like the maximum number of concurrent requests per CPU (which
defaults to 5000) and maximum number of connections of 12 per CPU but this can
be increased. This stuff is not easy to grasp, and system administrators
dedicate entire careers to getting this right. In fact, it is so hard, that we
are slowly moving away from having to manage this ourselves and just paying
some really smart engineers to do it for us, at massive scale.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/6690387764046434369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/relativity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/6690387764046434369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/6690387764046434369'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/relativity.html' title='Relativity '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-9109531001857258175</id><published>2014-03-05T03:48:00.004-08:00</published><updated>2014-03-05T03:48:40.014-08:00</updated><title type='text'>Diff Input Types</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; margin-left: -0.9pt; text-align: center; width: 771px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: none; border: solid windowtext 1.0pt; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;i&gt;InputType&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: none; border-top: solid windowtext 1.0pt; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;i&gt;Description&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: none; border: solid windowtext 1.0pt; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;i&gt;Functionality&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 1;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Text&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Any text string up to 450 characters&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Multiple times&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 2;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Date&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Eight character date in YYYYMMDD
  format&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Multiple times&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 3;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Partial Date&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Eight character date in YYYYMMDD
  format which allows zeroes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Multiple times&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 4;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Numeric&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Any number value (2, 27, 999)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Multiple times&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 5;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
List - Single Select&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Drop down list, only allowing the
  list to appear once&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 6;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
List - Multi Select&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Drop down list, allowing the list to
  appear multiple times&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Multiple times&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 7;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
List - Optional Select&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Drop Down List with option to type in
  the value&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 8;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Memo&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Any length text string&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Multiple times&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 9;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Decimal&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Any number value requiring up to 5
  decimal places&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Multiple times&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 10;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Text (Single)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Any text string up to 450 characters&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 11;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Date (Single)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Eight character date in YYYYMMDD
  format&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 12;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Partial Date (Single)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Eight character date in YYYYMMDD
  format which allows zeroes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 13;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Numeric (Single)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Any number value (2, 27, 999)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-irow: 14;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-left: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Memo (Single)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Any length text string&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-right: solid windowtext 1.0pt; border: none; height: 15.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Single&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 15; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-bottom: solid windowtext 1.0pt; border-left: solid windowtext 1.0pt; border-right: none; border-top: none; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 102.4pt;&quot; valign=&quot;bottom&quot; width=&quot;137&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Decimal (Single)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-bottom: solid windowtext 1.0pt; border: none; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 300.4pt;&quot; valign=&quot;bottom&quot; width=&quot;401&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Any number value requiring up to 5
  decimal places&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td nowrap=&quot;&quot; style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 175.4pt;&quot; valign=&quot;bottom&quot; width=&quot;234&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot;&gt;
Single&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/9109531001857258175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/diff-input-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/9109531001857258175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/9109531001857258175'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/diff-input-types.html' title='Diff Input Types'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-5285040737009322074</id><published>2014-03-05T03:46:00.003-08:00</published><updated>2014-03-05T03:46:35.208-08:00</updated><title type='text'>Adding FileName in footer to PDF file</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Open Adobe Acrobat Pro&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Advanced – Document processing – Batch processing - New
Sequence&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Name the sequence *** and click OK&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Select the sequence - In Edit Sequence –Select command
-&amp;nbsp; select -&amp;gt;JavaSript – Execute
JavaScript – Add – JavaScript – click edit and paste the javascript there&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
var re = /.*\/|\.pdf$/ig;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
var FileNM =
this.path.replace(re,&quot;&quot;)+&quot;.pdf&quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
var Path = this.path;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
var Box2Width = 50&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
for (var p = 0; p &amp;lt; this.numPages; p++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var aRect =
this.getPageBox(&quot;Crop&quot;,p);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var TotWidth =
aRect[2] - aRect[0]&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var fd =
this.addField(&quot;xftDate&quot;, &quot;text&quot;, p, [30,15,
TotWidth-30-30,30]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fd.value =
FileNM ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fd.textSize=6;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fd.readonly =
true;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;
fd.alignment=&quot;left&quot; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var
bStart=(TotWidth/2)-(Box2Width/2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var
bEnd=((TotWidth/2)+(Box2Width/2))&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var bStart=(TotWidth-Box2Width-30); var
bEnd=(TotWidth-30);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var fp =
this.addField(String(&quot;xftPage&quot;+p+1), &quot;text&quot;, p,
[bStart,30,bEnd,15]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fp.value =
&quot;Page: &quot; + String(p+1)+ &quot;/&quot; + this.numPages;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fp.textSize=6;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fp.readonly =
true;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fp.alignment=&quot;center&quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
flattenPages();&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;o:p&gt;&lt;b&gt;&lt;u&gt;Logic:&lt;/u&gt;&lt;/b&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Get all files that are PDF&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Assign the name of the file and append .pdf to it to get
the full filename&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Get the path&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Assign width of 50 to the box&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Loop through all the pages&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Get the rectangle and width&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Add field field-name, field-type, page-number, location&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Set field value&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Set field text size&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Is it read-only&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Alignment in the rectangle&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Add another field and follow the same process&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/5285040737009322074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/03/adding-filename-in-footer-to-pdf-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/5285040737009322074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/5285040737009322074'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/03/adding-filename-in-footer-to-pdf-file.html' title='Adding FileName in footer to PDF file'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-7118791736027735975</id><published>2014-02-28T04:37:00.002-08:00</published><updated>2014-02-28T04:37:35.655-08:00</updated><title type='text'>SQL Server 2008 Microsoft Certified Master (MCM) Readiness Videos</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
http://technet.microsoft.com/en-us/sqlserver/ff977043.aspx&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/7118791736027735975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2014/02/sql-server-2008-microsoft-certified.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7118791736027735975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/7118791736027735975'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2014/02/sql-server-2008-microsoft-certified.html' title='SQL Server 2008 Microsoft Certified Master (MCM) Readiness Videos'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-2221581736400869768</id><published>2012-12-07T13:12:00.001-08:00</published><updated>2012-12-07T13:12:48.961-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="character"/><category scheme="http://www.blogger.com/atom/ns#" term="chinese"/><category scheme="http://www.blogger.com/atom/ns#" term="patindex"/><category scheme="http://www.blogger.com/atom/ns#" term="russian"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="unicode"/><title type='text'>Display Chinese Characters in SQL</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;-- TO REMOVE ALL UNWANTED TERMS FROM THE STRING AND DISPLAY CHINESE , RUSSIAN AND ENGLISH, DUTCH, GERMAN.... &amp;nbsp;CHARACTERS&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;CREATE &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;PROCEDURE&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;[dbo]&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;[XXX]&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;@UserName &lt;span style=&quot;color: blue;&quot;&gt;nvarchar&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;32&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;BEGIN&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;-- SET NOCOUNT ON
added to prevent extra result sets from&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;-- interfering with
SELECT statements.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SET&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;NOCOUNT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Declare&lt;/span&gt;
@strText &lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;nvarchar&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;500&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;select&lt;/span&gt;
@strText &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;Replace&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;SearchText&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#39;^&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;from&lt;/span&gt;
TABLENAME&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;where&lt;/span&gt;
UserName &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; @UserName&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;While&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;PatIndex&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#39;%[^a-z^A-Z^0-9^А-Я^а-я^&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: MingLiU; font-size: 10pt; mso-bidi-font-family: MingLiU; mso-no-proof: yes;&quot;&gt;诶&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: red; font-family: MingLiU; font-size: 10pt; mso-bidi-font-family: MingLiU; mso-no-proof: yes;&quot;&gt;贼德&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;MS Gothic&amp;quot;; font-size: 10pt; mso-bidi-font-family: &amp;quot;MS Gothic&amp;quot;; mso-no-proof: yes;&quot;&gt;一&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;MS Gothic&amp;quot;; font-size: 10pt; mso-bidi-font-family: &amp;quot;MS Gothic&amp;quot;; mso-no-proof: yes;&quot;&gt;龥&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; ]%&#39;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; @strText&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; 0&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Set&lt;/span&gt;
@strText &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;Stuff&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;@strText&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;PatIndex&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#39;%[^a-z^A-Z^0-9^А-Я^а-я^&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: MingLiU; font-size: 10pt; mso-bidi-font-family: MingLiU; mso-no-proof: yes;&quot;&gt;诶&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: red; font-family: MingLiU; font-size: 10pt; mso-bidi-font-family: MingLiU; mso-no-proof: yes;&quot;&gt;贼德&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;MS Gothic&amp;quot;; font-size: 10pt; mso-bidi-font-family: &amp;quot;MS Gothic&amp;quot;; mso-no-proof: yes;&quot;&gt;一&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;MS Gothic&amp;quot;; font-size: 10pt; mso-bidi-font-family: &amp;quot;MS Gothic&amp;quot;; mso-no-proof: yes;&quot;&gt;龥&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; ]%&#39;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; @strText&lt;span style=&quot;color: grey;&quot;&gt;),&lt;/span&gt; 1&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39; &#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;select&lt;/span&gt;
@strText &lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt; UserKeyword&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;END&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/2221581736400869768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2012/12/display-chinese-characters-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/2221581736400869768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/2221581736400869768'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2012/12/display-chinese-characters-in-sql.html' title='Display Chinese Characters in SQL'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6642631816849046364.post-2736132835753597057</id><published>2012-05-14T19:02:00.000-07:00</published><updated>2012-05-15T19:03:30.748-07:00</updated><title type='text'>Reasons Not to Mess with Children</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;im&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #500050; font-family: arial, sans-serif; text-align: -webkit-center;&quot;&gt;
&lt;span style=&quot;color: #0021bf; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;A&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #0021bf; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;little girl was talking to her teacher about whales.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0021bf; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&lt;br /&gt;The teacher said it was physically impossible for a whale to swallow&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0021bf; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;a human because even though it was a very large mammal its&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0021bf; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;throat was very small.&lt;br /&gt;&lt;br /&gt;The little girl stated that Jonah was swallowed by a whale.&lt;br /&gt;&lt;br /&gt;Irritated, the teacher reiterated that a whale could not swallow&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0021bf; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;a human; it was physically impossible.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0021bf; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&lt;br /&gt;The little girl said, &#39;When I get to heaven I will ask Jonah.&#39;&lt;br /&gt;&lt;br /&gt;The teacher asked, &#39;What if Jonah went to hell?&#39;&lt;br /&gt;&lt;br /&gt;The little girl replied, &#39;Then you ask him.&#39;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #500050; font-family: arial, sans-serif; text-align: -webkit-center;&quot;&gt;
&lt;span style=&quot;color: green; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;A&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;Kindergarten teacher was observing her classroom of children&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;while they were drawing. She would occasionally walk around&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;to see each child&#39;s work.&lt;br /&gt;&lt;br /&gt;As she got to one little girl who was working diligently,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;she asked what the drawing was.&lt;br /&gt;&lt;br /&gt;The girl replied, &#39;I&#39;m drawing God.&#39;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;The teacher paused and said,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&#39;But no one knows what God looks like.&#39;&lt;br /&gt;&lt;br /&gt;Without missing a beat, or looking up from her drawing,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;the girl replied, &#39;They will in a minute.&#39;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #500050; font-family: arial, sans-serif; text-align: -webkit-center;&quot;&gt;
&lt;span style=&quot;color: #ff0080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;A&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff0080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;Sunday school teacher was discussing the&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ff0080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;Ten Commandments with her five and six year olds.&lt;br /&gt;&lt;br /&gt;After explaining the commandment to &#39;honour&#39; thy Father and&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ff0080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;thy Mother, she asked, &#39;Is there a commandment that&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ff0080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;teaches us how to treat our brothers and sisters?&#39;&lt;br /&gt;&lt;br /&gt;Without missing a beat one little boy,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ff0080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;the oldest of a family, answered,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ff0080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&#39;Thou shall not kill.&#39;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #500050; font-family: arial, sans-serif; text-align: -webkit-center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #500050; font-family: arial, sans-serif; text-align: -webkit-center;&quot;&gt;
&lt;span style=&quot;color: maroon; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;O&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;ne day a little girl was sitting and watching her mother do&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: maroon; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;the dishes at the kitchen sink. She suddenly noticed that&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: maroon; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;her mother had several strands of white hair sticking out&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: maroon; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;in contrast on her brunette head.&lt;br /&gt;&lt;br /&gt;She looked at her mother and inquisitively asked,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: maroon; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&#39;Why are some of your hairs white, Mum?&#39;&lt;br /&gt;&lt;br /&gt;Her mother replied, &#39;Well, every time that you do something wrong&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: maroon; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;and make me cry or unhappy, one of my hairs turns white.&#39;&lt;br /&gt;&lt;br /&gt;The little girl thought about this revelation for a while and then said, &#39;Mummy, how come ALL of grandma&#39;s hairs are white?&#39;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #500050; font-family: arial, sans-serif; text-align: -webkit-center;&quot;&gt;
&lt;span style=&quot;color: #ff8100; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;T&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff8100; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;he children had all been photographed, and the teacher was&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ff8100; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;trying to persuade them each to buy a copy of the group picture.&lt;br /&gt;&lt;br /&gt;&#39;Just think how nice it will be to look at it when you are all&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ff8100; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;grown up and say, &#39;There&#39;s Jennifer, she&#39;s a lawyer,&#39; or&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ff8100; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&#39;That&#39;s Michael, he&#39;s a doctor.&#39;&lt;br /&gt;&lt;br /&gt;A small voice at the back of the room rang out, &#39;And there&#39;s the teacher, she&#39;s dead.&#39;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #500050; font-family: arial, sans-serif; text-align: -webkit-center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #500050; font-family: arial, sans-serif; text-align: -webkit-center;&quot;&gt;
&lt;span style=&quot;color: purple; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;A&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;teacher was giving a lesson on the circulation of the blood.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;Trying to make the matter clearer, she said, &#39;Now, class, if I&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;stood on my head, the blood, as you know, would run into it,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;and I would turn red in the face.&#39;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&#39;Yes,&#39; the class said.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;&#39;Then why is it that while I am standing upright in the ordinary position the blood doesn&#39;t run into my feet?&#39;&lt;br /&gt;&lt;br /&gt;A little fellow shouted,&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&lt;br /&gt;&#39;Cause your feet ain&#39;t empty.&#39;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #500050; text-align: -webkit-center;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #500050; font-family: arial, sans-serif; text-align: -webkit-center;&quot;&gt;
&lt;span style=&quot;color: #3f8080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;T&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f8080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;he children were lined up in the cafeteria of a Catholic&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3f8080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;elementary school for lunch. At the head of the table was a&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3f8080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;large pile of apples. The nun made a note,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3f8080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;and posted on the apple tray:&lt;br /&gt;&lt;br /&gt;&#39;Take only ONE. God is watching.&#39;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f8080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;Moving further along the lunch line, at the other end of&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3f8080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;the table was a large pile of chocolate chip cookies.&lt;br /&gt;&lt;br /&gt;A child had written a note,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3f8080; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&#39;Take all you want. God is watching the apples.&#39;&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingandme.blogspot.com/feeds/2736132835753597057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingandme.blogspot.com/2012/05/reasons-not-to-mess-with-children.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/2736132835753597057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6642631816849046364/posts/default/2736132835753597057'/><link rel='alternate' type='text/html' href='http://codingandme.blogspot.com/2012/05/reasons-not-to-mess-with-children.html' title='Reasons Not to Mess with Children'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>