<?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-6636414616899633946</id><updated>2024-10-25T04:50:38.977-07:00</updated><category term=".NET"/><category term="C#"/><category term="CROSS APPLY"/><category term="Dynamic"/><category term="SQL"/><category term="Var"/><category term="XML"/><category term="XML.Nodes"/><title type='text'>Prakash Technical blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gnanap.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6636414616899633946/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gnanap.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gnana Prakash</name><uri>http://www.blogger.com/profile/01768169422588208130</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu-UPq9B8pBr920eY9IluwLALPoMRiQxz8vBj12VosydqZeWL9HS6N_PA9o53DjxSZ-gjBIrZYyp49iilULnEhmiOnjqUMo6gE1l1UTBKywMt6Y4SWougXeSY0fxnp_jg/s220/047.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6636414616899633946.post-4298750200392447916</id><published>2012-08-21T08:15:00.001-07:00</published><updated>2012-08-28T10:12:54.743-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Dynamic"/><category scheme="http://www.blogger.com/atom/ns#" term="Var"/><title type='text'>Var Vs Dynamic</title><content type='html'>&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/en_US/all.js#xfbml=1&amp;appId=520972924585794&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;


The main difference between Var and Dynamic in .NET world is Var is static and Dynamic is runtime.&lt;br /&gt;
&lt;br /&gt;
Var gets to set to the target type at the compile time and Dynamic gets set at the run time.
&lt;div class=&quot;fb-like&quot; data-href=&quot;http://gnanap.blogspot.com/2012/08/var-vs-dynamic.html&quot; data-send=&quot;false&quot; data-layout=&quot;button_count&quot; data-width=&quot;450&quot; data-show-faces=&quot;true&quot; data-font=&quot;arial&quot;&gt;&lt;/div&gt;
&lt;br&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://gnanap.blogspot.com/2012/08/var-vs-dynamic.html&quot; data-num-posts=&quot;1&quot; data-width=&quot;450&quot; title=&quot;gnana comments&quot; simple=&quot;true&quot; reverse=&quot;true&quot; publish_feed =&quot;false&quot;&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gnanap.blogspot.com/feeds/4298750200392447916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gnanap.blogspot.com/2012/08/var-vs-dynamic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6636414616899633946/posts/default/4298750200392447916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6636414616899633946/posts/default/4298750200392447916'/><link rel='alternate' type='text/html' href='http://gnanap.blogspot.com/2012/08/var-vs-dynamic.html' title='Var Vs Dynamic'/><author><name>Gnana Prakash</name><uri>http://www.blogger.com/profile/01768169422588208130</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu-UPq9B8pBr920eY9IluwLALPoMRiQxz8vBj12VosydqZeWL9HS6N_PA9o53DjxSZ-gjBIrZYyp49iilULnEhmiOnjqUMo6gE1l1UTBKywMt6Y4SWougXeSY0fxnp_jg/s220/047.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6636414616899633946.post-3918313666171010224</id><published>2012-04-27T07:53:00.000-07:00</published><updated>2012-08-27T07:01:09.870-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CROSS APPLY"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><category scheme="http://www.blogger.com/atom/ns#" term="XML.Nodes"/><title type='text'>Querying XML Columns in SQL (CROSS APPLY)</title><content type='html'>&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/en_US/all.js#xfbml=1&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Here is an example on how to query data from XML column&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Hope this is Self&amp;nbsp;Explanatory&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;create table TestTable (ID int, Name varchar(100), Configuration xml)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;insert into TestTable values (1001,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;Test 1&#39;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;&amp;lt;Root ID=&quot;RootID1&quot;&amp;gt;&amp;lt;Child ID=&quot;childID1&quot;&amp;gt;child name 1&amp;lt;/Child&amp;gt;&amp;lt;Child ID=&quot;childID2&quot;&amp;gt;child name 2&amp;lt;/Child&amp;gt;&amp;lt;/Root&amp;gt;&#39;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;select t.ID,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;t.Name,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CChild.child.value(&#39;./@ID&#39; , &#39;varchar(100)&#39;) ChildID,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CChild.child.value(&#39;.&#39; , &#39;varchar(100)&#39;) ChildName,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CRoot.root.value(&#39;./@ID&#39; , &#39;varchar(100)&#39;) RootID&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;from TestTable t&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cross apply t.Configuration.nodes(&#39;Root/Child&#39; ) as CChild(Child)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cross apply t.Configuration.nodes(&#39;Root&#39;) as CRoot(root)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;select t.ID,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;t.Name,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CRoot.root.value(&#39;./@ID&#39; , &#39;varchar(100)&#39;) RootID,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CRoot.root.value(&#39;./Child[1]&#39; , &#39;varchar(100)&#39;) ChildName,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CRoot.root.value(&#39;./Child[1]/@ID&#39; , &#39;varchar(100)&#39;) ChildID&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;from TestTable t&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cross apply t.Configuration.nodes(&#39;Root&#39;) as CRoot(root)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;

&lt;fb:comments-count href=http://gnanap.blogspot.com/2012/04/querying-xml-columns-in-sql-cross-apply.html/&gt;&lt;/fb:comments-count&gt; awesome comments 


&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://gnanap.blogspot.com/2012/04/querying-xml-columns-in-sql-cross-apply.html&quot; data-num-posts=&quot;2&quot; data-width=&quot;470&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gnanap.blogspot.com/feeds/3918313666171010224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gnanap.blogspot.com/2012/04/querying-xml-columns-in-sql-cross-apply.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6636414616899633946/posts/default/3918313666171010224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6636414616899633946/posts/default/3918313666171010224'/><link rel='alternate' type='text/html' href='http://gnanap.blogspot.com/2012/04/querying-xml-columns-in-sql-cross-apply.html' title='Querying XML Columns in SQL (CROSS APPLY)'/><author><name>Gnana Prakash</name><uri>http://www.blogger.com/profile/01768169422588208130</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu-UPq9B8pBr920eY9IluwLALPoMRiQxz8vBj12VosydqZeWL9HS6N_PA9o53DjxSZ-gjBIrZYyp49iilULnEhmiOnjqUMo6gE1l1UTBKywMt6Y4SWougXeSY0fxnp_jg/s220/047.JPG'/></author><thr:total>0</thr:total></entry></feed>