<?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-9189316879927844791</id><updated>2024-11-01T00:38:39.803-07:00</updated><category term="#tables"/><category term="BACKUP DEVICE"/><category term="BE PASSOINATE"/><category term="CREATE LOGIN"/><category term="DATABASE SNAPSHOT"/><category term="DEBUGGING OF SQL STORED PROCEDURE"/><category term="INDEXES IN SQL 2K8"/><category term="Keys"/><category term="MAX SIZE OF A ROW"/><category term="Merger Statemnt"/><category term="Microsoft Certification"/><category term="SEARCH THE TEXT"/><category term="SQL SERVER 2005/2008"/><category term="TAKE FULL BKUP"/><category term="college frnd"/><category term="convert function"/><category term="create index"/><category term="delete indexes"/><category term="drop column"/><category term="fetch status"/><category term="file groups"/><category term="index fragmentation"/><category term="merge statement"/><category term="remake"/><category term="sa login"/><category term="search text in stored procedures"/><category term="sql edition"/><category term="stored procedure"/><category term="syntax to create trigger"/><category term="what is sql"/><category term="work from home"/><title type='text'>V I SIVA RAO</title><subtitle type='html'>ONLINE TRAINING ON SQL SERVER RDBMS</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>74</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-1626653516820576417</id><published>2014-02-19T08:52:00.000-08:00</published><updated>2014-02-19T08:52:18.789-08:00</updated><title type='text'>Basic CTE with a Join</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;USE&lt;/span&gt; AdventureWorks2008
GO
;WITH VendorCTE &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;
 &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; Vendor.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;AccountNumber&lt;/span&gt;, Vendor.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;BusinessEntityID&lt;/span&gt;, Vendor.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;Name&lt;/span&gt;
 &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; Purchasing.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;Vendor&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt; CreditRating &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;, 
 OrderCTE &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; 
 &lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt;  VendorID, &lt;span class=&quot;kw2&quot; style=&quot;color: magenta;&quot;&gt;SUM&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;TotalDue&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; SumTotalDue 
 &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; Purchasing.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;PurchaseOrderHeader&lt;/span&gt; POH
 &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;JOIN&lt;/span&gt; Purchasing.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;PurchaseOrderDetail&lt;/span&gt; POD
 &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt; POH.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;PurchaseOrderID&lt;/span&gt;  &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; POD.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;PurchaseOrderID&lt;/span&gt;
 &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt; UnitPrice &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;25.00&lt;/span&gt;
 &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;GROUP&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; VendorID&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQkKnJGYdIPqZBgK2A5DK63c7e36ODB0LC107r_ICz7x9LL8PmxJqW-3CMJ4iaveD7zBhlBSW5TQzB0ChrdgoVkJ_a0sht6FHYsnF5eg2m9h7WjjW_4uFxqTOhoP8HwDsL2iTEcHTMf_mw/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQkKnJGYdIPqZBgK2A5DK63c7e36ODB0LC107r_ICz7x9LL8PmxJqW-3CMJ4iaveD7zBhlBSW5TQzB0ChrdgoVkJ_a0sht6FHYsnF5eg2m9h7WjjW_4uFxqTOhoP8HwDsL2iTEcHTMf_mw/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/1626653516820576417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/02/basic-cte-with-join.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/1626653516820576417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/1626653516820576417'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/02/basic-cte-with-join.html' title='Basic CTE with a Join'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQkKnJGYdIPqZBgK2A5DK63c7e36ODB0LC107r_ICz7x9LL8PmxJqW-3CMJ4iaveD7zBhlBSW5TQzB0ChrdgoVkJ_a0sht6FHYsnF5eg2m9h7WjjW_4uFxqTOhoP8HwDsL2iTEcHTMf_mw/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-6588198768724343756</id><published>2014-02-17T22:27:00.000-08:00</published><updated>2014-02-17T22:27:00.559-08:00</updated><title type='text'>Convert Text Data to DATETIME using STUFF method</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;&lt;span class=&quot;co1&quot; style=&quot;color: teal;&quot;&gt;--create a table emulating a fixed-width text import&lt;/span&gt;
&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;DECLARE&lt;/span&gt; @Imports &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;
 DATEFIELD &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;char&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;19&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;NULL&lt;/span&gt;,
 DATAFIELD &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;char&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;INSERT&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt; @Imports &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt;
&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;2010:09:09 16:00:46&#39;&lt;/span&gt;,&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;$    10.88&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;,
&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;2010:09:16 13:56:41&#39;&lt;/span&gt;,&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;$    21.68&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;,
&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;2010:09:16 14:05:50&#39;&lt;/span&gt;,&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;$     5.57&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;,
&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;2010:09:19 16:43:31&#39;&lt;/span&gt;,&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;$    15.33&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;,
&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;2010:09:19 18:42:21&#39;&lt;/span&gt;,&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;$   259.23&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;,
&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;2010:09:25 13:50:29&#39;&lt;/span&gt;,&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;$    73.79&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;,
&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;2010:09:25 13:50:37&#39;&lt;/span&gt;,&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;$    46.92&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; DATEFIELD,
 &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;CONVERT&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;DATETIME&lt;/span&gt;, &lt;span class=&quot;kw2&quot; style=&quot;color: magenta;&quot;&gt;STUFF&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kw2&quot; style=&quot;color: magenta;&quot;&gt;STUFF&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;DATEFIELD, &lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;8&lt;/span&gt;,&lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;,&lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;5&lt;/span&gt;,&lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;[&lt;/span&gt;DATEFIELD Converted&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;]&lt;/span&gt;,
&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; @Imports&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiE3NV4FmyPVN5j-eL7_2h_iaIueCEKfdGbXFHNs68iTIAan20zjeWLDhnTDLbwL6HPQEmpHQUaVuuHU4loi_DBU_1bwg5snZascAch6Ytc_M2GVCAuFbRwzmFVdO0RCn3R5N50C9E4b_iT/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiE3NV4FmyPVN5j-eL7_2h_iaIueCEKfdGbXFHNs68iTIAan20zjeWLDhnTDLbwL6HPQEmpHQUaVuuHU4loi_DBU_1bwg5snZascAch6Ytc_M2GVCAuFbRwzmFVdO0RCn3R5N50C9E4b_iT/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/6588198768724343756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/02/convert-text-data-to-datetime-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/6588198768724343756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/6588198768724343756'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/02/convert-text-data-to-datetime-using.html' title='Convert Text Data to DATETIME using STUFF method'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiE3NV4FmyPVN5j-eL7_2h_iaIueCEKfdGbXFHNs68iTIAan20zjeWLDhnTDLbwL6HPQEmpHQUaVuuHU4loi_DBU_1bwg5snZascAch6Ytc_M2GVCAuFbRwzmFVdO0RCn3R5N50C9E4b_iT/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-3935077351160028275</id><published>2014-02-17T22:24:00.001-08:00</published><updated>2014-02-17T22:24:13.538-08:00</updated><title type='text'>Search SQL Server Agent Job Steps for Specific Keyword Text or Stored Procedure</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;USE&lt;/span&gt; &lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;[&lt;/span&gt;msdb&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;]&lt;/span&gt;
GO
&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; j.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;job_id&lt;/span&gt;,
 s.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;srvname&lt;/span&gt;,
 j.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;name&lt;/span&gt;,
 js.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;step_id&lt;/span&gt;,
 js.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;command&lt;/span&gt;,
 j.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;enabled&lt;/span&gt; 
&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; dbo.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;sysjobs&lt;/span&gt; j
&lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;JOIN&lt;/span&gt; dbo.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;sysjobsteps&lt;/span&gt; js
 &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt; js.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;job_id&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; j.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;job_id&lt;/span&gt; 
&lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;JOIN&lt;/span&gt; master.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;dbo&lt;/span&gt;.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;sysservers&lt;/span&gt; s
 &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt; s.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;srvid&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; j.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;originating_server_id&lt;/span&gt;
&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt; js.&lt;span class=&quot;me1&quot; style=&quot;color: #202020;&quot;&gt;command&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;LIKE&lt;/span&gt; N&lt;span class=&quot;st0&quot; style=&quot;color: red;&quot;&gt;&#39;%KEYWORD_SEARCH%&#39;&lt;/span&gt;
GO&lt;/pre&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi70bFybwsVhxsJVmk8ZnraDQlsOtBWrlflmBX_kshyphenhyphenB87lUi8ToeZUxjllOy5UkpciavZUFjNbRelLsmca46DO6A5-c_teFoGOglrNLBIvLSfSPb35UOtRDOkczPlnsnXW9SBv1Ijk2YMV/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi70bFybwsVhxsJVmk8ZnraDQlsOtBWrlflmBX_kshyphenhyphenB87lUi8ToeZUxjllOy5UkpciavZUFjNbRelLsmca46DO6A5-c_teFoGOglrNLBIvLSfSPb35UOtRDOkczPlnsnXW9SBv1Ijk2YMV/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/3935077351160028275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/02/search-sql-server-agent-job-steps-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/3935077351160028275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/3935077351160028275'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/02/search-sql-server-agent-job-steps-for.html' title='Search SQL Server Agent Job Steps for Specific Keyword Text or Stored Procedure'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi70bFybwsVhxsJVmk8ZnraDQlsOtBWrlflmBX_kshyphenhyphenB87lUi8ToeZUxjllOy5UkpciavZUFjNbRelLsmca46DO6A5-c_teFoGOglrNLBIvLSfSPb35UOtRDOkczPlnsnXW9SBv1Ijk2YMV/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-6544619448861562433</id><published>2014-02-15T01:09:00.002-08:00</published><updated>2014-02-15T01:09:51.626-08:00</updated><title type='text'>What is the best way to auto-generate INSERT statements for a SQL Server table</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
DECLARE @Fields VARCHAR(max); SET @Fields = &#39;[QueueName], [iSort]&#39; -- your fields, keep []&lt;/div&gt;
&lt;div&gt;
DECLARE @Table &amp;nbsp;VARCHAR(max); SET @Table &amp;nbsp;= &#39;Queues&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- your table&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
DECLARE @SQL &amp;nbsp; &amp;nbsp;VARCHAR(max)&lt;/div&gt;
&lt;div&gt;
SET @SQL = &#39;DECLARE @S VARCHAR(MAX)&lt;/div&gt;
&lt;div&gt;
SELECT @S = ISNULL(@S + &#39;&#39; UNION &#39;&#39;, &#39;&#39;INSERT INTO &#39; + @Table + &#39;(&#39; + @Fields + &#39;)&#39;&#39;) + CHAR(13) + CHAR(10) +&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&#39;&#39;SELECT &#39;&#39; + &#39; + REPLACE(REPLACE(REPLACE(@Fields, &#39;,&#39;, &#39; + &#39;&#39;, &#39;&#39; + &#39;), &#39;[&#39;, &#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39; + CAST(&#39;),&#39;]&#39;,&#39; AS VARCHAR(max)) + &#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;) +&#39; FROM &#39; + @Table + &#39;&lt;/div&gt;
&lt;div&gt;
PRINT @S&#39;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
EXEC (@SQL)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
RESULTS WILL BE LYK:-&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
INSERT INTO Queues([QueueName], [iSort])&lt;/div&gt;
&lt;div&gt;
SELECT &#39;WD: Auto Capture&#39;, &#39;10&#39; UNION&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
SELECT &#39;Car/Lar&#39;, &#39;11&#39; UNION&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
SELECT &#39;Scan Line&#39;, &#39;21&#39; UNION&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
SELECT &#39;OCR&#39;, &#39;22&#39; UNION&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
SELECT &#39;Dynamic Template&#39;, &#39;23&#39; UNION&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
SELECT &#39;Fix MICR&#39;, &#39;41&#39; UNION&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
SELECT &#39;Fix MICR (Supervisor)&#39;, &#39;42&#39; UNION&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
SELECT &#39;Foreign MICR&#39;, &#39;43&#39; UNION&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiaLGUzuDxwIyX_sp4_-X7hMYcdr1trAKJS8TUQv7ym8uCUUJxYc3suQ_CxyDwhlOouAWvufbN8HyMPJ3pTbfUA2zf5F1CmA_1UcVXlzECBgaN_DjU8CLTdafvGwS5JVFf00oO3EtexrEv/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiaLGUzuDxwIyX_sp4_-X7hMYcdr1trAKJS8TUQv7ym8uCUUJxYc3suQ_CxyDwhlOouAWvufbN8HyMPJ3pTbfUA2zf5F1CmA_1UcVXlzECBgaN_DjU8CLTdafvGwS5JVFf00oO3EtexrEv/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
...&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/6544619448861562433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/02/what-is-best-way-to-auto-generate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/6544619448861562433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/6544619448861562433'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/02/what-is-best-way-to-auto-generate.html' title='What is the best way to auto-generate INSERT statements for a SQL Server table'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiaLGUzuDxwIyX_sp4_-X7hMYcdr1trAKJS8TUQv7ym8uCUUJxYc3suQ_CxyDwhlOouAWvufbN8HyMPJ3pTbfUA2zf5F1CmA_1UcVXlzECBgaN_DjU8CLTdafvGwS5JVFf00oO3EtexrEv/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-4944523355614936932</id><published>2014-02-06T08:57:00.001-08:00</published><updated>2014-02-06T08:57:29.652-08:00</updated><title type='text'>Specify a Custom Application Name to Distinguish Excel Applications</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: #f2f2f2; color: #222222; font-family: Tahoma, sans-serif; font-size: 11px; line-height: 16.5px;&quot;&gt;If you create Excel worksheets or PivotTables with embedded connections to SQL Server, you may want to consider changing the name of the application so you can tell which spreadsheet template someone is using. That way in Management Studio or in any logging you setup, it will your custom name.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f2f2f2; color: #222222; font-family: Tahoma, sans-serif; font-size: 11px; line-height: 16.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f2f2f2; color: #222222; font-family: Tahoma, sans-serif; font-size: 11px; line-height: 16.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;Data&lt;/span&gt; Source&lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;SQL_SERVER_&lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;OR&lt;/span&gt;_IP;Initial &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;Catalog&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;DATABASE_NAME;Application Name&lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;EXCEL_TEMPLATE_MASTER_REP&lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;OR&lt;/span&gt;T;User ID&lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;kw2&quot; style=&quot;color: magenta;&quot;&gt;USER_NAME&lt;/span&gt;;Password&lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;PASSW&lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;OR&lt;/span&gt;D&lt;/pre&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;
&lt;/pre&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbO5duxbeJSObYu0ZjCLQl56acOGzC788FZ-ngUTJdzo86gKPtWkZHBzyiidwO6gX-VgKPaKlRrBLkSFPoDBO_wvSI9l-22-RDoJyhTLuVYOicyrNmYzQvfOXArU6dpWuI1BGgMXxovL2d/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbO5duxbeJSObYu0ZjCLQl56acOGzC788FZ-ngUTJdzo86gKPtWkZHBzyiidwO6gX-VgKPaKlRrBLkSFPoDBO_wvSI9l-22-RDoJyhTLuVYOicyrNmYzQvfOXArU6dpWuI1BGgMXxovL2d/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/4944523355614936932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/02/specify-custom-application-name-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/4944523355614936932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/4944523355614936932'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/02/specify-custom-application-name-to.html' title='Specify a Custom Application Name to Distinguish Excel Applications'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbO5duxbeJSObYu0ZjCLQl56acOGzC788FZ-ngUTJdzo86gKPtWkZHBzyiidwO6gX-VgKPaKlRrBLkSFPoDBO_wvSI9l-22-RDoJyhTLuVYOicyrNmYzQvfOXArU6dpWuI1BGgMXxovL2d/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-6903560683698859422</id><published>2014-02-06T08:55:00.002-08:00</published><updated>2014-02-06T08:55:30.283-08:00</updated><title type='text'>Table Variables How and Why to use them</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: #f2f2f2; color: #222222; font-family: Tahoma, sans-serif; font-size: 11px; line-height: 16.5px; margin-bottom: 1em; margin-top: 1em; padding: 0px;&quot;&gt;
So what are table variables and why should I use them? There’s plenty of information out there about the table variables particularly as compared to a temporary table so let me just summarize some of the differences and point out a few use cases that are ideal for developers.&lt;br /&gt;First the syntax is identical except that temporary tables are CREATED with a # while table variables are&lt;br /&gt;DECLARED with a @.&lt;/div&gt;
&lt;div style=&quot;background-color: #f2f2f2; color: #222222; font-family: Tahoma, sans-serif; font-size: 11px; line-height: 16.5px; margin-bottom: 1em; margin-top: 1em; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;geshifilter&quot; style=&quot;background-color: #f8f8f8; border: 1px solid rgb(204, 204, 204); color: #222222; font-family: Tahoma, sans-serif; font-size: 11px; line-height: 1.3; margin: 0.5em; overflow: auto; padding: 0.5em;&quot;&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;line-height: 1.3; padding: 0px;&quot;&gt;&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; #TestTable &lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;
      ID &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;IDENTITY&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;KEY&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;CLUSTERED&lt;/span&gt;,
      SomeValue &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;varchar&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;color: black;&quot;&gt;30&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;NULL&lt;/span&gt;
&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;DECLARE&lt;/span&gt; @TestTable &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbO5duxbeJSObYu0ZjCLQl56acOGzC788FZ-ngUTJdzo86gKPtWkZHBzyiidwO6gX-VgKPaKlRrBLkSFPoDBO_wvSI9l-22-RDoJyhTLuVYOicyrNmYzQvfOXArU6dpWuI1BGgMXxovL2d/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbO5duxbeJSObYu0ZjCLQl56acOGzC788FZ-ngUTJdzo86gKPtWkZHBzyiidwO6gX-VgKPaKlRrBLkSFPoDBO_wvSI9l-22-RDoJyhTLuVYOicyrNmYzQvfOXArU6dpWuI1BGgMXxovL2d/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;line-height: 1.3; padding: 0px;&quot;&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/6903560683698859422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/02/table-variables-how-and-why-to-use-them.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/6903560683698859422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/6903560683698859422'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/02/table-variables-how-and-why-to-use-them.html' title='Table Variables How and Why to use them'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbO5duxbeJSObYu0ZjCLQl56acOGzC788FZ-ngUTJdzo86gKPtWkZHBzyiidwO6gX-VgKPaKlRrBLkSFPoDBO_wvSI9l-22-RDoJyhTLuVYOicyrNmYzQvfOXArU6dpWuI1BGgMXxovL2d/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-1239192531800269824</id><published>2014-02-06T08:53:00.000-08:00</published><updated>2014-02-06T08:53:01.661-08:00</updated><title type='text'>TO FIND WHICH ARE ALL TABLES HAVING IDENTITY PROPERTY</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;kw2&quot; style=&quot;color: magenta;&quot;&gt;OBJECT_NAME&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;id&lt;span class=&quot;br0&quot; style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;as&lt;/span&gt; TableName, name &lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;as&lt;/span&gt; ColumnName
&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; syscolumns
&lt;span class=&quot;kw1&quot; style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt; status &lt;span class=&quot;sy0&quot; style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; 0x80&lt;/pre&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizeHRSdRNJMoXMh_Of7qwoLHnzEY1g9KDCeKzCti-g7xO9P88-qv8G5hyphenhyphenQO4meu54LknK2yuNfKYjOdBNkP5GQPkjX4IvK8jGhYHr9ysdzYzIzZToTxkqfDHiAeIifS8Xv-92RCNQ2Tp5r/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizeHRSdRNJMoXMh_Of7qwoLHnzEY1g9KDCeKzCti-g7xO9P88-qv8G5hyphenhyphenQO4meu54LknK2yuNfKYjOdBNkP5GQPkjX4IvK8jGhYHr9ysdzYzIzZToTxkqfDHiAeIifS8Xv-92RCNQ2Tp5r/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;tsql geshifilter-tsql&quot; style=&quot;color: #222222; font-size: 11px; line-height: 14.300000190734863px; padding: 0px;&quot;&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/1239192531800269824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/02/to-find-which-are-all-tables-having.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/1239192531800269824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/1239192531800269824'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/02/to-find-which-are-all-tables-having.html' title='TO FIND WHICH ARE ALL TABLES HAVING IDENTITY PROPERTY'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizeHRSdRNJMoXMh_Of7qwoLHnzEY1g9KDCeKzCti-g7xO9P88-qv8G5hyphenhyphenQO4meu54LknK2yuNfKYjOdBNkP5GQPkjX4IvK8jGhYHr9ysdzYzIzZToTxkqfDHiAeIifS8Xv-92RCNQ2Tp5r/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-415333630631224110</id><published>2014-02-02T08:59:00.001-08:00</published><updated>2014-02-02T08:59:32.468-08:00</updated><title type='text'>What is Normalization?? what is the use of normalization while designing Databse</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;firstpara&quot; style=&quot;background-color: #f9f9f9; box-sizing: border-box; color: #161616; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: 24px; padding: 10px 0px 5px; text-align: justify; vertical-align: top;&quot;&gt;
rmalization or data normalization is a process to organize the data into tabular format (database tables). A good database design includes the normalization, without normalization a database system may slow, inefficient and might not produce the expected result. Normalization reduces the data redundancy and inconsistent data dependency.&lt;/div&gt;
&lt;h2 style=&quot;background-color: #f9f9f9; box-sizing: border-box; color: #4466c5; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 24px; font-weight: normal; line-height: 32px; margin: 15px 0px 10px; padding-left: 0px; text-align: justify;&quot;&gt;
Normal Forms&lt;/h2&gt;
&lt;div style=&quot;background-color: #f9f9f9; box-sizing: border-box; color: #161616; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: 24px; padding: 7px 0px 0px; text-align: justify; vertical-align: top;&quot;&gt;
We organize the data into database tables by using normal forms rules or conditions. Normal forms help us to make a good database design. Generally we organize the data up to third normal form. We rarely use the fourth and fifth normal form.&lt;/div&gt;
&lt;div style=&quot;background-color: #f9f9f9; box-sizing: border-box; color: #161616; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: 24px; padding: 7px 0px 0px; text-align: justify; vertical-align: top;&quot;&gt;
To understand normal forms consider the folowing unnormalized database table. Now we will normalize the data of below table using normal forms.&lt;/div&gt;
&lt;img class=&quot;img&quot; src=&quot;http://www.dotnet-tricks.com/Content/images/sqlserver/unf.png&quot; style=&quot;-webkit-box-shadow: rgb(157, 157, 157) 0px 0px 10px; background-color: #f9f9f9; border: 0px; box-shadow: rgb(157, 157, 157) 0px 0px 10px; box-sizing: border-box; color: #161616; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; height: auto; line-height: 24px; margin-top: 10px; max-width: 100%; text-align: justify;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #161616; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: 24px; text-align: justify;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0EEweQYR89DDWQlpP7VO81fLddC7EZt4MsYedT7pcloQI9_i3c0v1a5qjfd4vo7zGck7iv93HbHZywDzctXyL6jqQFlJigqW1oIgCqdFtnqX4udbQtKXuPVN8NCjJugIBvQ0sF8kBNeJU/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0EEweQYR89DDWQlpP7VO81fLddC7EZt4MsYedT7pcloQI9_i3c0v1a5qjfd4vo7zGck7iv93HbHZywDzctXyL6jqQFlJigqW1oIgCqdFtnqX4udbQtKXuPVN8NCjJugIBvQ0sF8kBNeJU/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ol class=&quot;orderlist&quot; style=&quot;background-color: #f9f9f9; box-sizing: border-box; color: #161616; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 22px; line-height: 24px; list-style-type: decimal-leading-zero; margin-bottom: 10px; margin-left: 2px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;h2 style=&quot;background-position: 0px 50%; box-sizing: border-box; color: #363636; font-size: 22px; font-weight: normal; line-height: 32px; margin: 0px; padding: 5px 0px 10px;&quot;&gt;
First Normal Form (1NF)&lt;/h2&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
A database table is said to be in 1NF if it contains no repeating fields/columns. The process of converting the UNF table into 1NF is as follows:&lt;/div&gt;
&lt;ol class=&quot;childorderlist&quot; style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
Separate the repeating fields into new database tables along with the key from unnormalized database table.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
The primary key of new database tables may be a composite key&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
1NF of above UNF table is as follows:&lt;/div&gt;
&lt;img class=&quot;img&quot; src=&quot;http://www.dotnet-tricks.com/Content/images/sqlserver/1nf.png&quot; style=&quot;-webkit-box-shadow: rgb(157, 157, 157) 0px 0px 10px; border: 0px; box-shadow: rgb(157, 157, 157) 0px 0px 10px; box-sizing: border-box; height: auto; margin-top: 10px; max-width: 100%;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;h2 style=&quot;background-position: 0px 50%; box-sizing: border-box; color: #363636; font-size: 22px; font-weight: normal; line-height: 32px; margin: 0px; padding: 5px 0px 10px;&quot;&gt;
Second Normal Form (2NF)&lt;/h2&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
A database table is said to be in 2NF if it is in 1NF and contains only those fields/columns that are functionally dependent(means the value of field is determined by the value of another field(s)) on the primary key. In 2NF we remove the partial dependencies of any non-key field.&lt;/div&gt;
The process of converting the database table into 2NF is as follows:&lt;ol class=&quot;childorderlist&quot; style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
Remove the partial dependencies(A type of functional dependency where a field is only functionally dependent on the part of primary key) of any non-key field.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
If field B depends on field A and vice versa. Also for a given value of B, we have only one possible value of A and vice versa, Then we put the field B in to new database table where B will be primary key and also marked as foreign key in parent table.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
2NF of above 1NF tables is as follows:&lt;/div&gt;
&lt;img class=&quot;img&quot; src=&quot;http://www.dotnet-tricks.com/Content/images/sqlserver/2nf.png&quot; style=&quot;-webkit-box-shadow: rgb(157, 157, 157) 0px 0px 10px; border: 0px; box-shadow: rgb(157, 157, 157) 0px 0px 10px; box-sizing: border-box; height: auto; margin-top: 10px; max-width: 100%;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;h2 style=&quot;background-position: 0px 50%; box-sizing: border-box; color: #363636; font-size: 22px; font-weight: normal; line-height: 32px; margin: 0px; padding: 5px 0px 10px;&quot;&gt;
Third Normal Form (3NF)&lt;/h2&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
A database table is said to be in 3NF if it is in 2NF and all non keys fields should be dependent on primary key or We can also said a table to be in 3NF if it is in 2NF and no fields of the table is transitively functionally dependent on the primary key.The process of converting the table into 3NF is as follows:&lt;/div&gt;
&lt;ol class=&quot;childorderlist&quot; style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
Remove the transitive dependecies(A type of functional dependency where a field is functionally dependent on the Field that is not the primary key.Hence its value is determined, indirectly by the primary key )&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
Make separate table for transitive dependent Field.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
3NF of above 2NF tables is as follows:&lt;/div&gt;
&lt;img class=&quot;img&quot; src=&quot;http://www.dotnet-tricks.com/Content/images/sqlserver/3nf.png&quot; style=&quot;-webkit-box-shadow: rgb(157, 157, 157) 0px 0px 10px; border: 0px; box-shadow: rgb(157, 157, 157) 0px 0px 10px; box-sizing: border-box; height: auto; margin-top: 10px; max-width: 100%;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;h2 style=&quot;background-position: 0px 50%; box-sizing: border-box; color: #363636; font-size: 22px; font-weight: normal; line-height: 32px; margin: 0px; padding: 5px 0px 10px;&quot;&gt;
Boyce Code Normal Form (BCNF)&lt;/h2&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
A database table is said to be in BCNF if it is in 3NF and contains each and every determinant as a candidate key.The process of converting the table into BCNF is as follows:&lt;/div&gt;
&lt;ol class=&quot;childorderlist&quot; style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
Remove the non trival functional dependency.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
Make separate table for the determinants.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
BCNF of below table is as follows:&lt;/div&gt;
&lt;img class=&quot;img&quot; src=&quot;http://www.dotnet-tricks.com/Content/images/sqlserver/bcnf.png&quot; style=&quot;-webkit-box-shadow: rgb(157, 157, 157) 0px 0px 10px; border: 0px; box-shadow: rgb(157, 157, 157) 0px 0px 10px; box-sizing: border-box; height: auto; margin-top: 10px; max-width: 100%;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;h2 style=&quot;background-position: 0px 50%; box-sizing: border-box; color: #363636; font-size: 22px; font-weight: normal; line-height: 32px; margin: 0px; padding: 5px 0px 10px;&quot;&gt;
Fourth Normal Form (4NF)&lt;/h2&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
A database table is said to be in 4NF if it is in BCNF and primary key has one-to-one relationship to all non keys fields or We can also said a table to be in 4NF if it is in BCNF and contains no multi-valued dependencies.The process of converting the table into 4NF is as follows:&lt;/div&gt;
&lt;ol class=&quot;childorderlist&quot; style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
Remove the multivalued dependency.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
Make separate table for multivalued Fields.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
4NF of below table is as follows:&lt;/div&gt;
&lt;img class=&quot;img&quot; src=&quot;http://www.dotnet-tricks.com/Content/images/sqlserver/4nf.png&quot; style=&quot;-webkit-box-shadow: rgb(157, 157, 157) 0px 0px 10px; border: 0px; box-shadow: rgb(157, 157, 157) 0px 0px 10px; box-sizing: border-box; height: auto; margin-top: 10px; max-width: 100%;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;h2 style=&quot;background-position: 0px 50%; box-sizing: border-box; color: #363636; font-size: 22px; font-weight: normal; line-height: 32px; margin: 0px; padding: 5px 0px 10px;&quot;&gt;
Fifth Normal Form (5NF)&lt;/h2&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
A database table is said to be in 5NF if it is in 4NF and contains no redundant values or We can also said a table to be in 5NF if it is in 4NF and contains no join dependencies.The process of converting the table into 5NF is as follows:&lt;/div&gt;
&lt;ol class=&quot;childorderlist&quot; style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
Remove the join dependency.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
Break the database table into smaller and smaller tables to remove all data redundancy.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: border-box; font-size: 14px; padding: 0px; vertical-align: top;&quot;&gt;
5NF of below table is as follows:&lt;/div&gt;
&lt;img class=&quot;img&quot; src=&quot;http://www.dotnet-tricks.com/Content/images/sqlserver/5nf.png&quot; style=&quot;-webkit-box-shadow: rgb(157, 157, 157) 0px 0px 10px; border: 0px; box-shadow: rgb(157, 157, 157) 0px 0px 10px; box-sizing: border-box; height: auto; margin-top: 10px; max-width: 100%;&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; padding: 5px 0px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/415333630631224110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/02/what-is-normalization-what-is-use-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/415333630631224110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/415333630631224110'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/02/what-is-normalization-what-is-use-of.html' title='What is Normalization?? what is the use of normalization while designing Databse'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0EEweQYR89DDWQlpP7VO81fLddC7EZt4MsYedT7pcloQI9_i3c0v1a5qjfd4vo7zGck7iv93HbHZywDzctXyL6jqQFlJigqW1oIgCqdFtnqX4udbQtKXuPVN8NCjJugIBvQ0sF8kBNeJU/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-8943198921635820165</id><published>2014-01-27T08:30:00.001-08:00</published><updated>2014-01-27T08:30:38.233-08:00</updated><title type='text'>HOW TO FIND LOCKED TABLE IN SQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
QUERY TO FIND THE LOCKED TABLE:-&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;  
    object_name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;P&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;object_id&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;as&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; TableName&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; 
    resource_type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; resource_description
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    sys&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;dm_tran_locks L
    &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;join&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; sys&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;partitions P &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; L&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;resource_associated_entity_id &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; p&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;hobt_id&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEito_uGphk3nxi4umw9kAEM15iKwEYAPxwsv-PyliPXlpJKEi_e3WR8lTkZPK77ZnKKr3WM2RnxXLYE47ZYsAu2WQAteSpbBM518lyCnI10EMqoGrrFOBvobdtjFg7f1r43QPwQuEdbtYkK/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEito_uGphk3nxi4umw9kAEM15iKwEYAPxwsv-PyliPXlpJKEi_e3WR8lTkZPK77ZnKKr3WM2RnxXLYE47ZYsAu2WQAteSpbBM518lyCnI10EMqoGrrFOBvobdtjFg7f1r43QPwQuEdbtYkK/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;pln&quot; 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;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/8943198921635820165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-to-find-locked-table-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/8943198921635820165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/8943198921635820165'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-to-find-locked-table-in-sql.html' title='HOW TO FIND LOCKED TABLE IN SQL'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEito_uGphk3nxi4umw9kAEM15iKwEYAPxwsv-PyliPXlpJKEi_e3WR8lTkZPK77ZnKKr3WM2RnxXLYE47ZYsAu2WQAteSpbBM518lyCnI10EMqoGrrFOBvobdtjFg7f1r43QPwQuEdbtYkK/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-209695907385562796</id><published>2014-01-25T07:44:00.001-08:00</published><updated>2014-01-25T07:44:30.815-08:00</updated><title type='text'>VERY INTERESTING TOOL TO SEARCH SQL DATABASE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here is the download link:-&lt;br /&gt;
&lt;br /&gt;
http://www.2shared.com/file/EJwRuYvK/SQLSearch_11957.html&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs7cfAltTZa25SFDZPRVmEXpUHPzeyVi5JMd_zHlThFyrc-H6COMdWgdobR6AWob1s-PwofNtLck7Y_aK5sE8u-awjBV2yhB9zv-nvRZPhQIY1a2YJWRAsZgRFfUJp8YjQxcyFtHnNi8Za/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs7cfAltTZa25SFDZPRVmEXpUHPzeyVi5JMd_zHlThFyrc-H6COMdWgdobR6AWob1s-PwofNtLck7Y_aK5sE8u-awjBV2yhB9zv-nvRZPhQIY1a2YJWRAsZgRFfUJp8YjQxcyFtHnNi8Za/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/209695907385562796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/01/very-interesting-tool-to-search-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/209695907385562796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/209695907385562796'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/01/very-interesting-tool-to-search-sql.html' title='VERY INTERESTING TOOL TO SEARCH SQL DATABASE'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs7cfAltTZa25SFDZPRVmEXpUHPzeyVi5JMd_zHlThFyrc-H6COMdWgdobR6AWob1s-PwofNtLck7Y_aK5sE8u-awjBV2yhB9zv-nvRZPhQIY1a2YJWRAsZgRFfUJp8YjQxcyFtHnNi8Za/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-6524118296534315354</id><published>2014-01-25T07:37:00.000-08:00</published><updated>2014-01-25T07:37:25.148-08:00</updated><title type='text'>HOW TO WRITE A TRIGGER?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CREATE&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TRIGGER&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; T1OnUpdate
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ON&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; T1
AFTER &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UPDATE&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AS&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;b style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;INSERT&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;INTO&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; T2 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PK&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; OldValue&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; NewValue&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; i&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PK&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; i&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Value&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; d&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Value
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; INSERTED i &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;INNER&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;JOIN&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; DELETED d &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ON&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; i&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PK &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; d&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PK&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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;b style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmQOKXZsK8jBLBohtEd_K3OkMB95JqpVNduuR7Pf_TAEIJrBVqdQTiyCQf0e-eG3p6KQ2-0PNWoU54blAoQOIa1Xjl-auoqCGfiNyWmUwO1Cgyq7j2gHC71P8usCb_xDOmIfpYZ_z8Dg7x/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmQOKXZsK8jBLBohtEd_K3OkMB95JqpVNduuR7Pf_TAEIJrBVqdQTiyCQf0e-eG3p6KQ2-0PNWoU54blAoQOIa1Xjl-auoqCGfiNyWmUwO1Cgyq7j2gHC71P8usCb_xDOmIfpYZ_z8Dg7x/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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;b style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/6524118296534315354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-to-write-trigger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/6524118296534315354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/6524118296534315354'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-to-write-trigger.html' title='HOW TO WRITE A TRIGGER?'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmQOKXZsK8jBLBohtEd_K3OkMB95JqpVNduuR7Pf_TAEIJrBVqdQTiyCQf0e-eG3p6KQ2-0PNWoU54blAoQOIa1Xjl-auoqCGfiNyWmUwO1Cgyq7j2gHC71P8usCb_xDOmIfpYZ_z8Dg7x/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-5444536242673814711</id><published>2014-01-24T08:36:00.000-08:00</published><updated>2014-01-24T08:36:44.414-08:00</updated><title type='text'>HOW TO FIND LONGEST RUNNING QUERY IN SQL</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 style=&quot;text-align: justify;&quot;&gt;
&lt;code style=&quot;font-size: 12px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;DISTINCT&amp;nbsp;TOP &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;10&lt;br /&gt;
t.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;TEXT &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;QueryName&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;s.execution_count &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ExecutionCount&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;s.max_elapsed_time &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;MaxElapsedTime&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;ISNULL&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;s.total_elapsed_time &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;/ &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;s.execution_count&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;AvgElapsedTime&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;s.creation_time &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;LogCreatedOn&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;ISNULL&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;s.execution_count &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;/ &lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;DATEDIFF&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;s.creation_time&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;GETDATE&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;()), &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;FrequencyPerSec&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sys.dm_exec_query_stats&amp;nbsp;s&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;CROSS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;APPLY&amp;nbsp;sys.dm_exec_sql_text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;s.sql_handle &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER&amp;nbsp;BY&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;s.max_elapsed_time &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DESC&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;GO&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;code style=&quot;font-size: 12px;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4oBzxC081Xa3nC7Qf5WUYuZpryzcqM_mhscvvZD6h7ROJHK3CRM1sSIwL6_xN3JYH_2OCqOD69zj-x_VbQIm6n-w7kEyW7qURGGGiu3OMm8QLy5tOP47TQq5ZUeS7TnlmY2L77kFycFtg/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4oBzxC081Xa3nC7Qf5WUYuZpryzcqM_mhscvvZD6h7ROJHK3CRM1sSIwL6_xN3JYH_2OCqOD69zj-x_VbQIm6n-w7kEyW7qURGGGiu3OMm8QLy5tOP47TQq5ZUeS7TnlmY2L77kFycFtg/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/5444536242673814711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-to-find-longest-running-query-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/5444536242673814711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/5444536242673814711'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-to-find-longest-running-query-in-sql.html' title='HOW TO FIND LONGEST RUNNING QUERY IN SQL'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4oBzxC081Xa3nC7Qf5WUYuZpryzcqM_mhscvvZD6h7ROJHK3CRM1sSIwL6_xN3JYH_2OCqOD69zj-x_VbQIm6n-w7kEyW7qURGGGiu3OMm8QLy5tOP47TQq5ZUeS7TnlmY2L77kFycFtg/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-5100813067532912491</id><published>2014-01-23T00:11:00.002-08:00</published><updated>2014-01-23T00:12:42.681-08:00</updated><title type='text'>How do I find the columns that depend on a specified CLR user-defined type or alias type?</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;font-family: Consolas, Courier, monospace !important; font-size: 13px; line-height: 17.549999237060547px; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;USE &amp;lt;database_name&amp;gt;;
GO
SELECT OBJECT_NAME(object_id) AS object_name 
    ,c.name AS column_name 
    ,SCHEMA_NAME(t.schema_id) AS schema_name
    ,TYPE_NAME(c.user_type_id) AS user_type_name
    ,c.max_length
    ,c.precision
    ,c.scale
    ,c.is_nullable
    ,c.is_computed
FROM sys.columns AS c
INNER JOIN sys.types AS t ON c.user_type_id = t.user_type_id
WHERE c.user_type_id = TYPE_ID(&#39;&amp;lt;schema_name.data_type_name&amp;gt;&#39;); 
GO&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM85ser7cFQhdFDsbYT8Tt-_doJ95-lTXaGwTbbrQv_zwvDY4NZTEdU8nxfZ7qTqHgjvaYA5ZFVAFE5IucGOJ6N6ABjPltcRawKjyPB4wMQ4ppKl4XI29Supz2nwnXWumorGt0z5IvD7UU/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM85ser7cFQhdFDsbYT8Tt-_doJ95-lTXaGwTbbrQv_zwvDY4NZTEdU8nxfZ7qTqHgjvaYA5ZFVAFE5IucGOJ6N6ABjPltcRawKjyPB4wMQ4ppKl4XI29Supz2nwnXWumorGt0z5IvD7UU/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/5100813067532912491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-do-i-find-columns-that-depend-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/5100813067532912491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/5100813067532912491'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-do-i-find-columns-that-depend-on.html' title='How do I find the columns that depend on a specified CLR user-defined type or alias type?'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM85ser7cFQhdFDsbYT8Tt-_doJ95-lTXaGwTbbrQv_zwvDY4NZTEdU8nxfZ7qTqHgjvaYA5ZFVAFE5IucGOJ6N6ABjPltcRawKjyPB4wMQ4ppKl4XI29Supz2nwnXWumorGt0z5IvD7UU/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-8972259215373793397</id><published>2014-01-21T04:58:00.001-08:00</published><updated>2014-01-21T04:58:49.776-08:00</updated><title type='text'>WHAT IS THE USE OF MSDB DATABASE </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi ,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I was asked with a question about the use of taking backup of MSDB system database in SQL??&lt;br /&gt;
&lt;br /&gt;
I am explaining the same for viewers:-&lt;br /&gt;
&lt;br /&gt;
There are Four System databases in SQL server 2000 and later versions&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Master DB&lt;/b&gt;&lt;/span&gt; &amp;nbsp;: &amp;nbsp;The use of this DB is most important coz if this DB corrupts then whole user databases are get &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;into affect , atleast once in a month taking BU of Master DB is good practice&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;MSDB : &lt;/b&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;what ever the Jobs/Plans/Alerts running on the User DBs are related with the database.....Usually if we take the backup of database these jobs/plans not get back up..So it is very very important that if we need to restore the jobs then u have to take the backup MSDB&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlf_hPustDdMPlKF2gip50NPleAl6Gh2juoSDZjRJilx_YP53gUlFVDmhJNfhYG-vu0GVJ0uI2wj94NxCfD4xQXxTFQSsuJAYlw0QZbY1JtGtR3zOwnAUMheLI1YVLyT9-_Wyb9EOC-rc2/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlf_hPustDdMPlKF2gip50NPleAl6Gh2juoSDZjRJilx_YP53gUlFVDmhJNfhYG-vu0GVJ0uI2wj94NxCfD4xQXxTFQSsuJAYlw0QZbY1JtGtR3zOwnAUMheLI1YVLyT9-_Wyb9EOC-rc2/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/8972259215373793397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/01/what-is-use-of-msdb-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/8972259215373793397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/8972259215373793397'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/01/what-is-use-of-msdb-database.html' title='WHAT IS THE USE OF MSDB DATABASE '/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlf_hPustDdMPlKF2gip50NPleAl6Gh2juoSDZjRJilx_YP53gUlFVDmhJNfhYG-vu0GVJ0uI2wj94NxCfD4xQXxTFQSsuJAYlw0QZbY1JtGtR3zOwnAUMheLI1YVLyT9-_Wyb9EOC-rc2/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-3815482671825087445</id><published>2014-01-21T04:43:00.001-08:00</published><updated>2014-01-21T04:44:15.693-08:00</updated><title type='text'>Querying the resultset of a stored proc into a temp table</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;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOT3cWwJo-Gn7qjrewqlZTmRJ1sZKBPyTgynRdHWD4X86q4ekNwufAvMkyrwTCKFgmYagRnoBkd8Q5p2De52FiiHu72-ntTjsWFGYO0dBubjWf6ZXO9zqjbKtlJ59KVl-RsLWcWEvVa6No/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOT3cWwJo-Gn7qjrewqlZTmRJ1sZKBPyTgynRdHWD4X86q4ekNwufAvMkyrwTCKFgmYagRnoBkd8Q5p2De52FiiHu72-ntTjsWFGYO0dBubjWf6ZXO9zqjbKtlJ59KVl-RsLWcWEvVa6No/s1600/background.jpg&quot; height=&quot;150&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;declare&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;lines &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;table&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;id int &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;identity&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;primary&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; line varchar&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;8000&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;));&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;insert&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;into&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;lines&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;line&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;exec&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; sp_executesql N&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;sp_helptext &#39;&#39;information_schema.tables&#39;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;lines
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;order&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;by&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; id&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; 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 class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;pln&quot; 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 class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;pln&quot; 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 class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;pln&quot; 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 class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;www.varuntechnologies.in&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/3815482671825087445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/01/querying-resultset-of-stored-proc-into.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/3815482671825087445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/3815482671825087445'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/01/querying-resultset-of-stored-proc-into.html' title='Querying the resultset of a stored proc into a temp table'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOT3cWwJo-Gn7qjrewqlZTmRJ1sZKBPyTgynRdHWD4X86q4ekNwufAvMkyrwTCKFgmYagRnoBkd8Q5p2De52FiiHu72-ntTjsWFGYO0dBubjWf6ZXO9zqjbKtlJ59KVl-RsLWcWEvVa6No/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-3770385389191819340</id><published>2014-01-21T04:35:00.000-08:00</published><updated>2014-01-21T04:35:04.184-08:00</updated><title type='text'>How to SELECT * INTO [temp table] FROM [stored procedure]</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CREATE&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PROC&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; getBusinessLineHistory
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AS&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;BEGIN&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; sys&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;d&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfFd_RnKqOwOKA7NDaTOGqupTDkpNZjNFwZZvYtmQo8jcQdqeS_GJckflkowzM0UcPUZOEki_MHtsJSv3dzQwsfahRCWx94ekK-l3BtdNbbarvIZLr8ep0TENsM1qgm6YqZ2grQFaRRSkH/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfFd_RnKqOwOKA7NDaTOGqupTDkpNZjNFwZZvYtmQo8jcQdqeS_GJckflkowzM0UcPUZOEki_MHtsJSv3dzQwsfahRCWx94ekK-l3BtdNbbarvIZLr8ep0TENsM1qgm6YqZ2grQFaRRSkH/s1600/background.jpg&quot; height=&quot;150&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
atabases
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;END&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
GO

sp_configure &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;Show Advanced Options&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
GO
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;RECONFIGURE&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
GO
sp_configure &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;Ad Hoc Distributed Queries&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
GO
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;RECONFIGURE&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
GO

&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;INTO&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MyTempTable &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OPENROWSET&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;SQLNCLI&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;Server=(local)\SQL2008;Trusted_Connection=yes;&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
     &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;EXEC getBusinessLineHistory&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MyTempTable&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/3770385389191819340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-to-select-into-temp-table-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/3770385389191819340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/3770385389191819340'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-to-select-into-temp-table-from.html' title='How to SELECT * INTO [temp table] FROM [stored procedure]'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfFd_RnKqOwOKA7NDaTOGqupTDkpNZjNFwZZvYtmQo8jcQdqeS_GJckflkowzM0UcPUZOEki_MHtsJSv3dzQwsfahRCWx94ekK-l3BtdNbbarvIZLr8ep0TENsM1qgm6YqZ2grQFaRRSkH/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-181829053716812074</id><published>2014-01-21T04:32:00.001-08:00</published><updated>2014-01-21T04:32:19.785-08:00</updated><title type='text'>How to select rows with no matching entry in another table?</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;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAiQHeyy4qB6fulyI79jwqvmTb-0u24OAm-1nPcRlUvehFWra_0etEpPhuEHh7AqCgOxCjOvUCAyG_nTh0D3q94yF9e4lxoDNBNW43g3anMnsv-A7RjeQaieiNqLQnwKhOvRlwA0Ceucrh/s1600/background.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAiQHeyy4qB6fulyI79jwqvmTb-0u24OAm-1nPcRlUvehFWra_0etEpPhuEHh7AqCgOxCjOvUCAyG_nTh0D3q94yF9e4lxoDNBNW43g3anMnsv-A7RjeQaieiNqLQnwKhOvRlwA0Ceucrh/s1600/background.jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; t1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ID
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; Table1 t1
    &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LEFT&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;JOIN&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; Table2 t2 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ON&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; t1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ID &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; t2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ID
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;WHERE&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; t2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ID &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;IS&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NULL&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&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 class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; 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: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;www.varuntechnologies.in&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/181829053716812074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-to-select-rows-with-no-matching.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/181829053716812074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/181829053716812074'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2014/01/how-to-select-rows-with-no-matching.html' title='How to select rows with no matching entry in another table?'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAiQHeyy4qB6fulyI79jwqvmTb-0u24OAm-1nPcRlUvehFWra_0etEpPhuEHh7AqCgOxCjOvUCAyG_nTh0D3q94yF9e4lxoDNBNW43g3anMnsv-A7RjeQaieiNqLQnwKhOvRlwA0Ceucrh/s72-c/background.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-7085977363272344662</id><published>2013-07-05T23:58:00.001-07:00</published><updated>2013-07-05T23:58:01.875-07:00</updated><title type='text'>VARUN TECHNOLOGIES</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;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsD2mI9ZUL9TBloWCm4bsrE6yNKl0EzLTl-YeF88g5FQ0-VGfIMgvNTOopc8Ud-k0KQBh1wdOXIpBrkucB9FeOrbX_QXEtDkTgQnryKYDrOcA6-1CTgjcPNnDoLNCEntDHc0oh83B0vAwx/s1600/FINALLOGO.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;58&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsD2mI9ZUL9TBloWCm4bsrE6yNKl0EzLTl-YeF88g5FQ0-VGfIMgvNTOopc8Ud-k0KQBh1wdOXIpBrkucB9FeOrbX_QXEtDkTgQnryKYDrOcA6-1CTgjcPNnDoLNCEntDHc0oh83B0vAwx/s320/FINALLOGO.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
COMPLETE SQL SERVER TRAINING&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/7085977363272344662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2013/07/varun-technologies.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/7085977363272344662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/7085977363272344662'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2013/07/varun-technologies.html' title='VARUN TECHNOLOGIES'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsD2mI9ZUL9TBloWCm4bsrE6yNKl0EzLTl-YeF88g5FQ0-VGfIMgvNTOopc8Ud-k0KQBh1wdOXIpBrkucB9FeOrbX_QXEtDkTgQnryKYDrOcA6-1CTgjcPNnDoLNCEntDHc0oh83B0vAwx/s72-c/FINALLOGO.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-8818132172454023103</id><published>2013-05-18T00:31:00.004-07:00</published><updated>2013-05-18T00:31:52.211-07:00</updated><title type='text'>HOW TO AVOID USING CURSORS IN SQL PROGRAMMING</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: red;&quot;&gt;&lt;u&gt;&lt;b&gt;SYNTAX:-&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;declare&amp;nbsp;@count int,&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;@i int,&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;@productid int,&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;@productname varchar(500)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;declare @tab1 table (sno int identity(1,1),productid int)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;declare @tab2 table (produtname varchar(500),denom varchar(100))&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;insert into @tab1(productid) select distinct productid from products&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;set @count=select count(sno) from @tab1 while (@i&amp;lt;=@count)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;begin&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;select @productname=productname,@denom=deno from productdetails where productid=@productid&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;insert into @tab2 (productname,denom) values (@productname,@denom)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;select @i=@i+1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;end&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;select * from @tab2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Note:&lt;/span&gt; for any clarifications/assistance feel free to contact me at&amp;nbsp;&lt;a href=&quot;mailto:chinna7485@gmail.com&quot; target=&quot;_blank&quot;&gt;chinna7485@gmail.com&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/8818132172454023103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2013/05/how-to-avoid-using-cursors-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/8818132172454023103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/8818132172454023103'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2013/05/how-to-avoid-using-cursors-in-sql.html' title='HOW TO AVOID USING CURSORS IN SQL PROGRAMMING'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-6612146482496697619</id><published>2012-08-05T00:20:00.000-07:00</published><updated>2012-08-05T00:20:01.710-07:00</updated><title type='text'>GMi technologies</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;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjSmzDJeMxzSwJbIFlNJS6Holhz5lepM85alr80VUW8Ni-lF7bCX859TOqsmGlLG453fPH-bfk2kKV2QqM_GHKquN8Q1yABXPU7dRad92ZcFESwL8G3S_DQfQFglMXmjA2yiG7k-M5kZKv/s1600/P070712_20.10_%5B02%5D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjSmzDJeMxzSwJbIFlNJS6Holhz5lepM85alr80VUW8Ni-lF7bCX859TOqsmGlLG453fPH-bfk2kKV2QqM_GHKquN8Q1yABXPU7dRad92ZcFESwL8G3S_DQfQFglMXmjA2yiG7k-M5kZKv/s320/P070712_20.10_%5B02%5D.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvaIt3_cB_Nu-nyrvsDIrUh5GPvxos9MEu10neLNn9PMBOD6g8X6BS4Q49iHJWlNkx-iPXzMEEbLGDSwnTqhneznceRAJcNiblmwa84Js8KbzOqI_kaElktMCJwd4aXWD0rsbJpykctjMr/s1600/P070712_20.21_%5B05%5D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvaIt3_cB_Nu-nyrvsDIrUh5GPvxos9MEu10neLNn9PMBOD6g8X6BS4Q49iHJWlNkx-iPXzMEEbLGDSwnTqhneznceRAJcNiblmwa84Js8KbzOqI_kaElktMCJwd4aXWD0rsbJpykctjMr/s320/P070712_20.21_%5B05%5D.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/6612146482496697619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2012/08/gmi-technologies.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/6612146482496697619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/6612146482496697619'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2012/08/gmi-technologies.html' title='GMi technologies'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjSmzDJeMxzSwJbIFlNJS6Holhz5lepM85alr80VUW8Ni-lF7bCX859TOqsmGlLG453fPH-bfk2kKV2QqM_GHKquN8Q1yABXPU7dRad92ZcFESwL8G3S_DQfQFglMXmjA2yiG7k-M5kZKv/s72-c/P070712_20.10_%5B02%5D.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-2714013798668673654</id><published>2012-05-05T09:07:00.001-07:00</published><updated>2012-05-05T09:07:29.836-07:00</updated><title type='text'>Count repetition of rows</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
use this syntax:-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
create table mytable (mytableid int primary key, userid int,counterid int )&lt;br /&gt;
&lt;br /&gt;
insert into mytable values (&lt;br /&gt;&lt;br /&gt;1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4),&lt;br /&gt;(2&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7),&lt;br /&gt;(3&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3),&lt;br /&gt;(4,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9),&lt;br /&gt;(5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 11 ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3),&lt;br /&gt;(6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,4&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6),&lt;br /&gt;(9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,11&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select * from mytable&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;main syntax will be:-&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;WITH Ordering&lt;br /&gt;AS&lt;br /&gt;(&lt;br /&gt;&amp;nbsp; SELECT mytableid,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; userid,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; counterid,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; ROW_NUMBER() OVER (ORDER BY userid, counterid) RN&lt;br /&gt;&amp;nbsp; FROM mytable&lt;br /&gt;)&lt;br /&gt;SELECT &lt;br /&gt;&amp;nbsp; CurrentRow.mytableid, &lt;br /&gt;&amp;nbsp; CurrentRow.userid, &lt;br /&gt;&amp;nbsp; CurrentRow.counterid, &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; CurrentRow.RN - &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISNULL((SELECT TOP 1 RN FROM Ordering O3 WHERE RN &amp;lt; CurrentRow.RN AND (CurrentRow.mytableid &amp;lt;&amp;gt; O3.mytableid OR CurrentRow.counterid &amp;lt;&amp;gt; O3.counterid OR CurrentRow.userid &amp;lt;&amp;gt; O3.userid) ORDER BY RN DESC), 0) Repetitions&lt;br /&gt;FROM Ordering CurrentRow&lt;br /&gt;LEFT JOIN Ordering O2 ON CurrentRow.RN + 1 = O2.RN&lt;br /&gt;WHERE O2.RN IS NULL OR (CurrentRow.mytableid &amp;lt;&amp;gt; O2.mytableid OR CurrentRow.counterid &amp;lt;&amp;gt; O2.counterid OR CurrentRow.userid &amp;lt;&amp;gt; O2.userid ) &lt;br /&gt;ORDER BY CurrentRow.RN&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/2714013798668673654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2012/05/count-repetition-of-rows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/2714013798668673654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/2714013798668673654'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2012/05/count-repetition-of-rows.html' title='Count repetition of rows'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-4250078452953351303</id><published>2012-05-05T08:32:00.001-07:00</published><updated>2012-05-05T08:32:29.885-07:00</updated><title type='text'>using table twice in select stmt</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
i&#39;ve been asked a question like this:-&lt;br /&gt;
&lt;br /&gt;
table structure is:&lt;br /&gt;
&lt;br /&gt;
mytableid int pk&lt;br /&gt;
userid int&lt;br /&gt;
counterid int&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
in this table he has some data like this:&lt;br /&gt;
&lt;br /&gt;
MyTableID&amp;nbsp;&amp;nbsp; UserID&amp;nbsp;&amp;nbsp; Counter&lt;br /&gt;---------&amp;nbsp;&amp;nbsp; -------&amp;nbsp; --------&lt;br /&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;br /&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;br /&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;br /&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&lt;br /&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;br /&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;br /&gt;...&lt;br /&gt;9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now his query is, he wants use a select stmt which gives the result with max counterid and the userid should not repeat.......&lt;br /&gt;
&lt;br /&gt;
so many peoples are posted so many syntaxes.........but he is not satisfied with their syntaxes.....&lt;br /&gt;
&lt;br /&gt;
then...i gave the solution like this&lt;br /&gt;
&lt;br /&gt;
select distinct(a.userid),&lt;br /&gt;
MAX(a.counterid) as counterid&lt;br /&gt;
&amp;nbsp;from mytable a, mytable b&lt;br /&gt;
where a.mytableid=b.mytableid group by a.userid&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ff&lt;br /&gt;
f&lt;br /&gt;
finally it works............&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
these all are done in famous site WWW.STACKOVERFLOW.COM &lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/4250078452953351303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2012/05/using-table-twice-in-select-stmt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/4250078452953351303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/4250078452953351303'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2012/05/using-table-twice-in-select-stmt.html' title='using table twice in select stmt'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-3482461898275086566</id><published>2012-05-03T09:04:00.002-07:00</published><updated>2012-05-03T09:04:49.187-07:00</updated><title type='text'>shortkuts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
shortkut for opening sql server ....type SSMS on run command...it is only applicable in server 2008&lt;br /&gt;
&lt;br /&gt;
CTRL+U for changing of database option&lt;br /&gt;
&lt;br /&gt;
ALT+N&amp;nbsp; for switch over to new query window&lt;br /&gt;
&lt;br /&gt;
CTRL+R&amp;nbsp; for minimizing result window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
njoy sql programming.....i hope these shortkuts will be useful for many of u......&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/3482461898275086566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2012/05/shortkuts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/3482461898275086566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/3482461898275086566'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2012/05/shortkuts.html' title='shortkuts'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-8985661665178138606</id><published>2012-04-15T03:01:00.000-07:00</published><updated>2012-04-15T03:01:59.050-07:00</updated><title type='text'>my first achievement through microsoft</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;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkZMSKA8RzaqDOaWv7cgfVlErCnpHRuv0U26NM4JfgzOxbiL8Shr0NbFuwois3NisZP2mxRT7xZB7UU_2jRU1JoPChyphenhyphenMOGX5FVvloWmjv5_lsfl5OtX1vUE6EBFxc0siS_WAQl6V9Wopj6/s1600/microsft+certificate.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkZMSKA8RzaqDOaWv7cgfVlErCnpHRuv0U26NM4JfgzOxbiL8Shr0NbFuwois3NisZP2mxRT7xZB7UU_2jRU1JoPChyphenhyphenMOGX5FVvloWmjv5_lsfl5OtX1vUE6EBFxc0siS_WAQl6V9Wopj6/s320/microsft+certificate.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/8985661665178138606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2012/04/my-first-achievement-through-microsoft.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/8985661665178138606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/8985661665178138606'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2012/04/my-first-achievement-through-microsoft.html' title='my first achievement through microsoft'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkZMSKA8RzaqDOaWv7cgfVlErCnpHRuv0U26NM4JfgzOxbiL8Shr0NbFuwois3NisZP2mxRT7xZB7UU_2jRU1JoPChyphenhyphenMOGX5FVvloWmjv5_lsfl5OtX1vUE6EBFxc0siS_WAQl6V9Wopj6/s72-c/microsft+certificate.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9189316879927844791.post-1367811905441695942</id><published>2012-04-15T00:30:00.000-07:00</published><updated>2012-04-15T00:30:59.075-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Certification"/><title type='text'>Microsoft Certifications</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;hai.frnds........&lt;br /&gt;
&lt;h6 class=&quot;uiStreamMessage&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:1}&quot;&gt;&lt;span class=&quot;messageBody&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:3}&quot;&gt;i&#39;ve earned Microsoft Certification Yeaster day on my first attempt.......exam expereience was awesome....was very much tensed...to view my certification ..visit &lt;a href=&quot;https://mcp.microsoft.com/authenticate/validatemcp.aspx&quot; onmousedown=&quot;UntrustedLink.bootstrap($(this), &amp;quot;pAQFEEfoBAQHCA2nw__VtqIkmZNMsTAE2_cJS7mmRaWqJMw&amp;quot;, event, bagof(null));&quot; rel=&quot;nofollow nofollow&quot; target=&quot;_blank&quot;&gt;&lt;span&gt;https://mcp.microsoft.com/&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span class=&quot;word_break&quot;&gt;&lt;/span&gt;authenticate/validatemcp.aspx&lt;/a&gt;   .  Transcript code is 997943  AND access code is CHINNA7485&lt;/span&gt;&lt;/h6&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chinna7485.blogspot.com/feeds/1367811905441695942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chinna7485.blogspot.com/2012/04/microsoft-certifications.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/1367811905441695942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9189316879927844791/posts/default/1367811905441695942'/><link rel='alternate' type='text/html' href='http://chinna7485.blogspot.com/2012/04/microsoft-certifications.html' title='Microsoft Certifications'/><author><name>SHIVA RAO</name><uri>http://www.blogger.com/profile/03518429920146808518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4Dz2eK5dl-tOAEExYOeFPp41V93LORpvyGWDNRSSFBoXVbyyfBqm8Py8jjANf5Q7r9eM_mlwNQXJN_wV3-SZEXd0o0xCNxop0ikFJhlRsg62BLtlgaXDnbRnrYmrhg/s220/DSCN1377.JPG'/></author><thr:total>0</thr:total></entry></feed>