<?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-7670644707701401478</id><updated>2024-10-05T09:49:39.865+05:30</updated><title type='text'>Welcome to the World of SQLServer.........</title><subtitle type='html'>Eat SQL, Drink SQL, Sleep SQL</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>43</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-1707531964676262457</id><published>2013-01-04T11:15:00.002+05:30</published><updated>2013-01-04T11:15:33.649+05:30</updated><title type='text'>How to Troubleshoot Tempdb issues without restarting SQLServices</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;TEMPDB:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Whenever Tempdb gets full and there is no space on tempdb drive…… it may not allow new connections through SSMS try following steps to put the SQL back to normal state.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;1.&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Try in connecting through Query Analyzer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;2.&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Check any live transactions are going on : DBCC Opentran(‘tempdb’) and check what spid is doing (- DBCC inputbuffer(SPID)), if it is long running query and try to kill it – Kill SPID&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If there is no long running query found in step-2 then issue check point by running following query, this will flushes out the committed transactions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Use Tempdb&lt;br /&gt;Checkpoint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;4.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; After step-3 the SQL will begin to respond normally and now you need to shrink the log/data file accordingly&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;USE master&lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE tempdb &lt;br /&gt;MODIFY FILE&amp;nbsp;&amp;nbsp; (NAME = templog,&amp;nbsp;&amp;nbsp; SIZE = 1280MB)&lt;br /&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;5.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sometimes nothing will work in that case try below code&amp;nbsp; if this doesn’t work then the final option&amp;nbsp; is restarting SQL services &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;DBCC FREEPROCCACHE&lt;br /&gt;GO&lt;br /&gt;DBCC DROPCLEANBUFFERS&lt;br /&gt;GO&lt;br /&gt;DBCC FREESYSTEMCACHE (&#39;ALL&#39;)&lt;br /&gt;GO&lt;br /&gt;DBCC FREESESSIONCACHE&lt;br /&gt;GO&lt;br /&gt;DBCC SHRINKFILE (tempdev16,18250)&lt;br /&gt;Go&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Following are the scenarios where in Tempdb will be used in.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Any sorting that requires more memory than has been allocated to SQL Server will be forced to do its work in tempdb;&lt;br /&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;If the sorting requires more space than you have allocated to tempdb, one of the above errors will occur;&lt;br /&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;DBCC CheckDB(&#39;any database&#39;) will perform its work in tempdb -- on larger databases, this can consume quite a bit of space;&lt;br /&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;DBCC DBREINDEX or similar DBCC commands with &#39;Sort in tempdb&#39; option set will also potentially fill up tempdb;&lt;br /&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Large resultsets involving unions, order by / group by, cartesian joins, outer joins, cursors, temp tables, table variables, and hashing can often require help from tempdb;&lt;br /&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Any transactions left uncommitted and not rolled back can leave objects orphaned in tempdb;&lt;br /&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/1707531964676262457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2013/01/how-to-troubleshoot-tempdb-issues.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/1707531964676262457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/1707531964676262457'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2013/01/how-to-troubleshoot-tempdb-issues.html' title='How to Troubleshoot Tempdb issues without restarting SQLServices'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-2766987882938866377</id><published>2012-12-20T16:32:00.000+05:30</published><updated>2013-01-04T10:59:08.760+05:30</updated><title type='text'>SQL 2008/R2/2012 Cluster installation error:  Failover cluster instance name “ABCDEFGH” already exists as cluster resource?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;SQL 2008/R2/2012 Cluster installation error: &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;Failover cluster instance name “ABCDEFGH” already exists as cluster resource?&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin: 0in 0in 10pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3MNCUF1ph_9zYd7xuGmicPPy6k-LG15MmZbxqEggA-rDsg-6b6m7F7AgyFn1gaY2SQxohGBWX7X9jNk4s1IusK7fUATLU0_3U_uEZv4Zbkv8v1W2H_jTDhitOteFNwg1ByiQNdClj2hg/s1600/SQLNetworkNameerror.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; eea=&quot;true&quot; height=&quot;68&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3MNCUF1ph_9zYd7xuGmicPPy6k-LG15MmZbxqEggA-rDsg-6b6m7F7AgyFn1gaY2SQxohGBWX7X9jNk4s1IusK7fUATLU0_3U_uEZv4Zbkv8v1W2H_jTDhitOteFNwg1ByiQNdClj2hg/s320/SQLNetworkNameerror.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;br /&gt;
Cause: &lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;Usually this error pops up when you re-install SQL2008/R2/2012 on a cluster (which had SQL2008/R2/2012 instance in the past). Installer will actually checks whether input SQLNetworkName resource is already there in the Cluster, if it finds any orphan resource related then error will be displayed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; 
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;Resolution:&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;when you uninstall the existing SQLServer on Windows 2008/R2 clusters sometimes uninstaller will not completely remove SQL resources from cluster. If you open cluster administrator through GUI you can’t find it so you need to check through command prompt.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Start&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; Run&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; CMD – Run as Administrator&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;At command prompt: type &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;Cluster res&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;This command will list you all the resources including orphan resources.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;To delete the orphan resource: type &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; Cluster res &amp;lt;resource name&amp;gt; /delete&lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;lt; Resource Name – here you need to supply the exact resource name&amp;gt; in case of any dependencies it will prompt and &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;you need to first delete dependencies and then delete SQLNetworkName resource&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Once you delete SQLNetworkName resource then try re-running the setup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/2766987882938866377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/sql-2008r22012-cluster-installation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/2766987882938866377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/2766987882938866377'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/sql-2008r22012-cluster-installation.html' title='SQL 2008/R2/2012 Cluster installation error:  Failover cluster instance name “ABCDEFGH” already exists as cluster resource?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3MNCUF1ph_9zYd7xuGmicPPy6k-LG15MmZbxqEggA-rDsg-6b6m7F7AgyFn1gaY2SQxohGBWX7X9jNk4s1IusK7fUATLU0_3U_uEZv4Zbkv8v1W2H_jTDhitOteFNwg1ByiQNdClj2hg/s72-c/SQLNetworkNameerror.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-8300672231824431075</id><published>2012-12-14T15:36:00.000+05:30</published><updated>2012-12-14T15:36:36.781+05:30</updated><title type='text'>What is SQLSerrver2012 Contained Database Authentication and how it works?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;What is Contained Database Authentication?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;This is one of the new feature introduced in SQLServer 2012, before we actually get in to it first I would try to explain drawback of login/users especially when you move the database from one server to another server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;There are different methods one can use to copy/move a database, when you move/copy a database to other sql server, you need to sync the login and users, if the login is not there on destination server you have to create and you need to give right access &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;if login is there but user doesn’t have proper access…… so DBA is required to resolve those login/user access because prior to SQL2012 logins will be only created at Syslogins table in Master database and when you give access to particular databases those logins will be created as a Users in respective databases. When you move databases from one location to another - users will go along with databases but not logins. When it comes to accessing SQL server first it verifies with syslogins , if it is there then only it is allowed to connect.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;This has been greatly over come with new feature Contained Database Authentication, in this users logins are directly stored on user Databases (instead of syslogins in master database which is default in prior versions). It is very secure because users can only perform DML operations inside the user databases and not database instance level operations. It also reduces the need to login to the database instance and avoid orphaned or unused logins in the database instance. This feature is used in AlwaysOn to facilitate better portability of user databases among servers in the case of server failover without the need to configure logins for all database servers in the cluster.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Step1&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;: Enable Contained Database Authentication option on SQLServer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Connect to SQLServer through SSMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Right click on instance and go to Properties &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; Advanced Page&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Select True on &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;”Enable Contained Database”&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Step2: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Create a Database set option Containment type with &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;“Partial”.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Connect to SQLServer through SSMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Right click on databases and create a new database “&lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;Contained_DB&lt;/span&gt;” while creating go to Option&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Select “Partial” for Containment Type.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Step3:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; Create a user “&lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;Contained_User&lt;/span&gt;” in &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;Contained_DB&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Right click on “&lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;Contained_DB&lt;/span&gt;” click on Security – USER&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Right click on User and click on new user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Select “SQL user with Password” for user type and furnish User name &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;Contained_User&lt;/span&gt; and type password to complete the user creation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Step4 :&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; How to connect with this user.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Connect to SSMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;click on &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;Connection Property Tab&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&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/AVvXsEjJ0a8k-I6bcz9xQ8NAgQ0lbURO20cdGJKV7KinhjlBsoMSujV1RX-GRDcxARfiwne_nAZSwmU-nUxqXEHNX-vYBPRVqDpxc9e8zFBUZEAsX8b6O4kQPZNYnf5-Iz3n67YdechVfDXfDSE/s1600/Contained.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img bea=&quot;true&quot; border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ0a8k-I6bcz9xQ8NAgQ0lbURO20cdGJKV7KinhjlBsoMSujV1RX-GRDcxARfiwne_nAZSwmU-nUxqXEHNX-vYBPRVqDpxc9e8zFBUZEAsX8b6O4kQPZNYnf5-Iz3n67YdechVfDXfDSE/s320/Contained.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Type database name as &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;Contained_DB&lt;/span&gt; in connect to database box&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Click on login tab Type the SQLServername&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Select authentication to “SQL”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Type user name as &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;Contained_User&lt;/span&gt; and password&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Click on Connect&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/8300672231824431075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/what-is-sqlserrver2012-contained.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/8300672231824431075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/8300672231824431075'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/what-is-sqlserrver2012-contained.html' title='What is SQLSerrver2012 Contained Database Authentication and how it works?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ0a8k-I6bcz9xQ8NAgQ0lbURO20cdGJKV7KinhjlBsoMSujV1RX-GRDcxARfiwne_nAZSwmU-nUxqXEHNX-vYBPRVqDpxc9e8zFBUZEAsX8b6O4kQPZNYnf5-Iz3n67YdechVfDXfDSE/s72-c/Contained.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-942424758129609068</id><published>2012-12-11T15:51:00.000+05:30</published><updated>2014-04-08T11:56:05.512+05:30</updated><title type='text'>How do I enable xp_cmdshell?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How do I enable xp_cmdshell?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;Xp_cmdshell is extended stored procedure, with help of this one can execute any kind of Dos commands. Usage of this are: &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;directory listing, creating folders, copy files….&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;DBA should limit grating this access to users otherwise there is a chance of misutilization and thats why most of the companies disable it for security reasons.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;This is a server level option which comes up with Surface Area Configuration, by default xp_cmdshell is disabled on SQLServer. You can enable it by running following query.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: black; mso-fareast-font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;USE MASTER&lt;br /&gt;GO&lt;br /&gt;EXEC sp_configure &#39;show advanced options&#39;, 1&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;RECONFIGURE&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;EXEC sp_configure &#39;xp_cmdshell&#39;, 1&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;RECONFIGURE&lt;br /&gt;GO&lt;/span&gt;&lt;span style=&quot;color: black; mso-fareast-font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;You can&amp;nbsp;also&amp;nbsp;enable it through SSMS:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Connect to SQLServer through SSMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Right click on SQLServer and go to Properties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Click on Facets&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;On view Facets page select Surface Area Configuration from drop down list&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Got to XPCmdShellEnabled property and type “True” and click ok.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju71TFeBXN9P8neP68f_hzDvaNipGIVuEa1SeDBTHwDqVJkjVB8w2wf8JNrzUDDWUqn6fuLa5mJfVK09_-KPcxrsOiUhfhWK3-8Unx6kze_LPsocP93iRnI2iijwGYvgu_WRhoSHf8kRA/s1600/xpcmd.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img bea=&quot;true&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju71TFeBXN9P8neP68f_hzDvaNipGIVuEa1SeDBTHwDqVJkjVB8w2wf8JNrzUDDWUqn6fuLa5mJfVK09_-KPcxrsOiUhfhWK3-8Unx6kze_LPsocP93iRnI2iijwGYvgu_WRhoSHf8kRA/s320/xpcmd.JPG&quot; height=&quot;273&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/942424758129609068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-do-i-enable-xpcmdshell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/942424758129609068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/942424758129609068'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-do-i-enable-xpcmdshell.html' title='How do I enable xp_cmdshell?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju71TFeBXN9P8neP68f_hzDvaNipGIVuEa1SeDBTHwDqVJkjVB8w2wf8JNrzUDDWUqn6fuLa5mJfVK09_-KPcxrsOiUhfhWK3-8Unx6kze_LPsocP93iRnI2iijwGYvgu_WRhoSHf8kRA/s72-c/xpcmd.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-1525239215659591242</id><published>2012-12-11T15:22:00.003+05:30</published><updated>2012-12-11T15:22:24.524+05:30</updated><title type='text'>How to list traces and stop from SQL Server?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to list traces and stop from SQL Server?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;We often create custom traces to capture some information on sql server and most of the times we forgot to stop them. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Following query will list all the traces which are running on a SQLServer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;SELECT * FROM ::fn_trace_getinfo(default) WHERE property = 2;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Copy the Trace id which you want to stop trace and feed that in below query and execute it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;DECLARE @TraceID int&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SET @TraceID = &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;&amp;lt;input the Trace id value from above query&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;EXEC sp_trace_setstatus @TraceID, 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;EXEC sp_trace_setstatus @TraceID, 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/1525239215659591242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-list-traces-and-stop-from-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/1525239215659591242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/1525239215659591242'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-list-traces-and-stop-from-sql.html' title='How to list traces and stop from SQL Server?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-2587880726828314659</id><published>2012-12-09T16:28:00.000+05:30</published><updated>2012-12-09T16:28:08.468+05:30</updated><title type='text'>What are the different ways to move User Databases in SQLServer?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What are the different ways to move User Databases in SQLServer?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;There are different methods to move user databases from one location to another location&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l0 level1 lfo1; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Attach/Dettach Method&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l0 level1 lfo1; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Take Full backup and Restore &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l0 level1 lfo1; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Alter Database command within same instance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l0 level1 lfo1; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Transfer Database Task through SSIS &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Out of 4 methods first and fourth methods you can follow to move a user database within same instance or on other instance, whereas 2&lt;sup&gt;nd&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/sup&gt;is for moving to other instance and 3&lt;sup&gt;rd&lt;/sup&gt; method is only applicable within same instance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Attach/Dettach:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;This is the simple and easy method&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l2 level1 lfo2; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Connect to SQLInstance through SSMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l2 level1 lfo2; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Click on database which you want to move&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l2 level1 lfo2; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Right click and select Dettach&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l2 level1 lfo2; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Move&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;database files (.MDF an d.LDF) locations to new location&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l2 level1 lfo2; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Right click on Databases select Attach&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l2 level1 lfo2; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Here give new .MDF and .LDF location&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Take Full backup and Restore:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l3 level1 lfo3; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Connect to SQLInstance through SSMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l3 level1 lfo3; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Click on database which you want to move&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l3 level1 lfo3; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Right click –Tasks&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; Backup&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l3 level1 lfo3; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Take full backup&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l3 level1 lfo3; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Copy the backup to other sql server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l3 level1 lfo3; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Restore it&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Alter Database command:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-list: l1 level1 lfo4; mso-outline-level: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Run following command &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 45.8pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;USE master;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 45.8pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 45.8pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;ALTER DATABASE ABC &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 45.8pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;MODIFY FILE (NAME = ABC, FILENAME = &#39;E:\SQLData\ ABCdata.mdf&#39;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 45.8pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 45.8pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;ALTER DATABASE ABC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 45.8pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;MODIFY FILE (NAME = ABC, FILENAME = &#39;F:\SQLLog\ ABC log.ldf&#39;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 9pt 45.8pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 9pt 0.5in; mso-list: l1 level1 lfo4; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -0.25in; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-bidi-font-family: &#39;Century Gothic&#39;; mso-fareast-font-family: &#39;Century Gothic&#39;;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2.&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Copy the files to new location&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 9pt 0.5in; mso-list: l1 level1 lfo4; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; text-indent: -0.25in; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-bidi-font-family: &#39;Century Gothic&#39;; mso-fareast-font-family: &#39;Century Gothic&#39;;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;3.&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Restart SQL Services.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Transfer Database Task through SSIS: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;The Transfer Database Task is used to move a database to another SQL Server instance or create a copy on the same instance (with different database name).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/2587880726828314659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/what-are-different-ways-to-move-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/2587880726828314659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/2587880726828314659'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/what-are-different-ways-to-move-user.html' title='What are the different ways to move User Databases in SQLServer?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-787801832514792434</id><published>2012-12-09T15:53:00.001+05:30</published><updated>2012-12-09T15:53:29.228+05:30</updated><title type='text'>How to move Master/Model/MSDB/Tempdb System Database files in SQLServer?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to move Master/Model/MSDB/Tempdb System Database files in SQLServer?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;There are times when&amp;nbsp;you want &amp;nbsp;to move the system databases files from installed locations to new location..... This can be accomplished without any errors if you follow the moving order of the database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Microsoft recommends that SqlServer binaries (System database files and Installation files) should not be on System drive –“C”, the reason behind this is, if Operating System gets corrupted you will lose binaries otherwise if it is on nonsystem drive(other than C drive) you will not lose binaries.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Most of the companies use nonsystem drive for binaries… Let’s say one of the Junior DBA installed SqlServer but mistakenly used “C” drive for binaries and now you have to move them to nonsystem drive for example ”D” drive.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Following query tells you about the system database file locations.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;SELECT&amp;nbsp; physical_name&lt;br /&gt;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp; sys.master_files&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;First we need to move Master, msdb, model and tempdb:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;From the Start menu, point to All Programs, point to Microsoft SQL Server, point to Configuration Tools, and then click SQL Server Configuration Manager.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;In the SQL Server Services node, right-click the instance of SQL Server (for example, SQL Server (MSSQLSERVER)) and choose Properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;In the SQL Server (instance_name) Properties dialog box, click the Startup Parameters tab.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;In the Existing parameters box, select the –d parameter to move the master data file. Click Update to save the change.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;In the Specify a startup parameter box, change the parameter to the new path of the master database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;In the Existing parameters box, select the –l parameter to move the master log file. Click Update to save the change. In the Specify a startup parameter box, change the parameter to the new path of the master database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;The parameter value for the data file must follow the -d parameter and the value for the log file must follow the -l parameter. The following example shows the parameter values for the default location of the master data file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;-dC:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\master.mdf&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;-lC:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\mastlog.ldf&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;If the planned relocation for the master data file is E:\SQLData, the parameter values would be changed as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;-&lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;dE:\SQLData\master.mdf&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;-lE:\SQLData\mastlog.ldf&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;6&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Stop the instance of SQL Server by right-clicking the instance name and choosing Stop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Move the master.mdf and mastlog.ldf files to the new location.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Restart the instance of SQL Server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; text-indent: 0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Verify the file change for the master database by running the following query. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;SELECT name, physical_name AS CurrentLocation, state_desc&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;FROM sys.master_files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 9pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;WHERE database_id = DB_ID(&#39;master&#39;);&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; text-indent: 0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;For MSDB and Model database perform following steps&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; text-indent: 0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo2;&quot;&gt;&lt;span style=&quot;background: yellow; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;ALTER DATABASE MSDB/Model MODIFY FILE ( NAME = logical_name , FILENAME = &#39;new_path\os_file_name&#39; )&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo2;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Stop the instance of SQL Server or shut down the system to perform maintenance. For more information, see Stopping Services.&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo2;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Move the file or files to the new location.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo2;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Restart the instance of SQL Server or the server. For more information, see Starting and Restarting Services.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; text-indent: 0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; text-indent: 0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Now its turn to move Tempdb:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;USE master;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;ALTER DATABASE tempdb &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;MODIFY FILE (NAME = tempdev, FILENAME = &#39;E:\SQLData\tempdb.mdf&#39;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;ALTER DATABASE tempdb &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;MODIFY FILE (NAME = templog, FILENAME = &#39;F:\SQLLog\templog.ldf&#39;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 9pt 0.25in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;GO&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;After running above query, restart the SQL Services&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; text-indent: 0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;After moving system data files, verify them by running following query.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;SELECT&amp;nbsp; physical_name&lt;br /&gt;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp; sys.master_files&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/787801832514792434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-move-mastermodelmsdbtempdb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/787801832514792434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/787801832514792434'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-move-mastermodelmsdbtempdb.html' title='How to move Master/Model/MSDB/Tempdb System Database files in SQLServer?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-5772631035052202855</id><published>2012-12-08T19:22:00.001+05:30</published><updated>2012-12-08T19:22:09.885+05:30</updated><title type='text'>How to kill a SQL Connection/SPID through Activity Monitor?</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: blue; font-family: Century Gothic; font-size: x-small;&quot;&gt; 
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;How to kill a SQL Connection through Activity Monitor?&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Activity Monitor is Graphical tool which tells you about the currently running &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;processes, Resource Waits, Data file I/O and Expensive Queries&lt;/span&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;This information is compiled from various System Tables and Views and if you have right permission you could re-arrange columns, click to sort, and right-click to kill a process and another advantage is- it will guide you to other tools that will help you solve those problems.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;You need proper permissions(&lt;b&gt;“View Server State”)&lt;/b&gt; to view Activity Monitor and to kill a connection you need SA permissions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;The processor&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; time shown here is a percentage of the time that SQL Server is exercising the processor — not the entire CPU itself. What that means is that while SQL Server might not be using a lot of processor, the Windows Operating system might have other tasks that are. Also, if you tied out only one processor to SQL Server on a dual-processor box, you need to take that into account as well. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;Waiting tasks&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; are the SQL Server operations that are waiting on a resource to do their work. There is an entire school of thought about using wait information for Performance Tuning, and it has merit. Basically this school of thought says that if your system isn’t waiting on anything, it is working as fast as it can.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;The Database I/O&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; graph shows how often the system is hitting the storage subsystem. It’s not an exact or comprehensive measurement, but it can quickly show you that this is where a lot of activity is going on. You want to avoid hitting the drive as much as you can, since this physical component is one of the slowest in the system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;Batch Requests&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; show general SQL Server query activity, although it’s only one of the measurements in this area.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;How&amp;nbsp;do&amp;nbsp;I open Activity Monitor? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Connect to SQLServer through SSMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Right click on Server and click on Activity Monitor&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/o:p&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgNu7Y7reuFJ4WufQffaJyCDa-amfyS8ShjPaW0GMRx2KbWN7mhNFVlO27GXp6RaX4dEgjjLJioKidhmQS1M8EAEt05cC6UqCQynlrs8x4w-KBJFJCvNKSmEeboNzkcrnuTicLGv6ZHPg/s1600/ActivityMonitor.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; nea=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgNu7Y7reuFJ4WufQffaJyCDa-amfyS8ShjPaW0GMRx2KbWN7mhNFVlO27GXp6RaX4dEgjjLJioKidhmQS1M8EAEt05cC6UqCQynlrs8x4w-KBJFJCvNKSmEeboNzkcrnuTicLGv6ZHPg/s320/ActivityMonitor.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ol start=&quot;3&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Expand Process box&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Select the connection which you want to kill and right click and finally click on &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;“Kill Process”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/5772631035052202855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-kill-sql-connectionspid-through.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/5772631035052202855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/5772631035052202855'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-kill-sql-connectionspid-through.html' title='How to kill a SQL Connection/SPID through Activity Monitor?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgNu7Y7reuFJ4WufQffaJyCDa-amfyS8ShjPaW0GMRx2KbWN7mhNFVlO27GXp6RaX4dEgjjLJioKidhmQS1M8EAEt05cC6UqCQynlrs8x4w-KBJFJCvNKSmEeboNzkcrnuTicLGv6ZHPg/s72-c/ActivityMonitor.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-4186432422132830373</id><published>2012-12-08T18:32:00.003+05:30</published><updated>2012-12-08T18:51:12.803+05:30</updated><title type='text'>How to locate Surface Area Configuration in SQLServer2008/R2/2012?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to locate Surface Area Configuration Tool &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;in SQLServer2008/R2/2012?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Surface Area Configuration is a security tool in SQLServer to disable/enable certain Server level (xpcmdshell, Remote DAC,SQLMail...)components. In SQLServer2005 you can directly open it under Configuration Tools but starting from SQL2008 and higher versions it is embedded in Facets.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;What is Facet?&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Facets is the property of SQL Server which the policy will consider managing. There are several facets on which policies could be implemented. For example, we will use the “Database Option” facet to implement a policy which will ensure that the AutoShrink option should be TRUE for all hosted databases on the server. Similarly, we will be creating policies on the Stored Procedure facet&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Example: how to enable xpcmdshell through SAC in SQLserver2008?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Connect to SQLServer through SSMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Right click on SQLServer &lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Click on Facets&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;On view Facets page select Surface Area Configuration from drop down list&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Got to XPCmdShellEnabled property and type “True” and click ok.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;v:shapetype coordsize=&quot;21600,21600&quot; filled=&quot;f&quot; id=&quot;_x0000_t75&quot; o:preferrelative=&quot;t&quot; o:spt=&quot;75&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; stroked=&quot;f&quot;&gt;&lt;v:stroke joinstyle=&quot;miter&quot;&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @0 1 0&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum 0 0 @1&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @2 1 2&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @0 0 1&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @6 1 2&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @8 21600 0&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @10 21600 0&quot;&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot; o:extrusionok=&quot;f&quot;&gt;&lt;/v:path&gt;&lt;o:lock aspectratio=&quot;t&quot; v:ext=&quot;edit&quot;&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje7ETScq_h8JzfgJXjDJqqGBiou0AX5WjQb_ja9i560PqlesV5g3vRZbTEUFmp30rr3BKLTfD_xtZVIXuJ295Qi-ds5d2ZTyxhfoZBizjJO76jkxB6ZgWC4uVelItQ73jmw-xZMxcthRM/s1600/xpcmd.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;273&quot; nea=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje7ETScq_h8JzfgJXjDJqqGBiou0AX5WjQb_ja9i560PqlesV5g3vRZbTEUFmp30rr3BKLTfD_xtZVIXuJ295Qi-ds5d2ZTyxhfoZBizjJO76jkxB6ZgWC4uVelItQ73jmw-xZMxcthRM/s320/xpcmd.JPG&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://gemanjyothisqlserver.blogspot.com/feeds/4186432422132830373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-locate-surface-area.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/4186432422132830373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/4186432422132830373'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-locate-surface-area.html' title='How to locate Surface Area Configuration in SQLServer2008/R2/2012?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje7ETScq_h8JzfgJXjDJqqGBiou0AX5WjQb_ja9i560PqlesV5g3vRZbTEUFmp30rr3BKLTfD_xtZVIXuJ295Qi-ds5d2ZTyxhfoZBizjJO76jkxB6ZgWC4uVelItQ73jmw-xZMxcthRM/s72-c/xpcmd.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-8192146927938659535</id><published>2012-12-08T18:01:00.001+05:30</published><updated>2012-12-08T18:01:44.807+05:30</updated><title type='text'>How to repair Suspect Databse in SQLServer?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to repair Suspect Databse in SQLServer?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;If you are supporting SQL Server you may see a database in Suspect mode in Production/Non Production, in suspect mode users canot connect to db and they canot perform any transaction. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;In what circumstances a healthy databse goes in to suspect mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Data/Log file corruption triggers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;if SQL cannot complete a rollback or rollforward operation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Power failure at SQL Server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;If someone restarts sql services in middle of data loading process to tables through bulkinsert/SSIS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Now we will see how to bring back the database to normal state, first we need to put the database in “Emergency” mode and see any data pages/extents got corrupted by running dbcc checkdb command &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;if see any repair with data loss and bring back it to normal state.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Example: &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;“ABC”&lt;/span&gt; is our Database which is actually gone in to suspect mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Connect to SQL Server through SSMS and open Query Analyzer and execute following commands.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;EXEC sp_resetstatus &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;&#39;ABC&#39;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ALTER DATABASE &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;ABC&lt;/span&gt; SET EMERGENCY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;DBCC checkdb(&#39;&lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;ABC&lt;/span&gt;&#39;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ALTER DATABASE &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;ABC&lt;/span&gt; SET SINGLE_USER WITH ROLLBACK IMMEDIATE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;DBCC CheckDB (&#39;&lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;ABC&lt;/span&gt;&#39;, REPAIR_ALLOW_DATA_LOSS)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US;&quot;&gt;ALTER DATABASE &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;ABC&lt;/span&gt; SET MULTI_USER&lt;/span&gt; 
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/8192146927938659535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-repair-suspect-databse-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/8192146927938659535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/8192146927938659535'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-repair-suspect-databse-in.html' title='How to repair Suspect Databse in SQLServer?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-8780142431193771699</id><published>2012-12-07T17:47:00.001+05:30</published><updated>2012-12-07T17:47:15.423+05:30</updated><title type='text'>How to start SQLServer in single user mode?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to start SQLServer in single user mode?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;In some bad situations like whenever your master databse or other system databases got damaged you might need to start the SQL Server in single user mode in order to recover/restore. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
Starting SQL Server in single-user mode enables any member of the computer&#39;s local Administrators group to connect to the instance of SQL Server as a member of the sysadmin fixed server role&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;How will I do that?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Click on Start button &lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; Run&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Type services.msc and then enter (this opens service applet)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Goto the SQLService and double click on it and stop it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&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/AVvXsEi_gAUL9oo6G4MSW265RJarPsrqbcFEDRJC7TljZgwQoIEXc090hIVhM0sR9mUzbI67w0Iz_Nj5P0-y1G3FkMehfvAh4SF-SCKGfEAQIu_jCJy8n-6e1cfjdAqvitfbhl-L6XVdHXmgUgA/s1600/SingleUserMode.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; nea=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_gAUL9oo6G4MSW265RJarPsrqbcFEDRJC7TljZgwQoIEXc090hIVhM0sR9mUzbI67w0Iz_Nj5P0-y1G3FkMehfvAh4SF-SCKGfEAQIu_jCJy8n-6e1cfjdAqvitfbhl-L6XVdHXmgUgA/s320/SingleUserMode.bmp&quot; width=&quot;283&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Type &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;“-m” in Startup Parameters box&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;v:shapetype coordsize=&quot;21600,21600&quot; filled=&quot;f&quot; id=&quot;_x0000_t75&quot; o:preferrelative=&quot;t&quot; o:spt=&quot;75&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; stroked=&quot;f&quot;&gt;&lt;v:stroke joinstyle=&quot;miter&quot;&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @0 1 0&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum 0 0 @1&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @2 1 2&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @0 0 1&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @6 1 2&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @8 21600 0&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @10 21600 0&quot;&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot; o:extrusionok=&quot;f&quot;&gt;&lt;/v:path&gt;&lt;o:lock aspectratio=&quot;t&quot; v:ext=&quot;edit&quot;&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;5&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Now start the service &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Connect to the sql server through SSMS and restore/recover Master database or any system database, after recovering don’t forget to remove “-m” from Startup Parameter.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/8780142431193771699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-start-sqlserver-in-single-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/8780142431193771699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/8780142431193771699'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-start-sqlserver-in-single-user.html' title='How to start SQLServer in single user mode?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_gAUL9oo6G4MSW265RJarPsrqbcFEDRJC7TljZgwQoIEXc090hIVhM0sR9mUzbI67w0Iz_Nj5P0-y1G3FkMehfvAh4SF-SCKGfEAQIu_jCJy8n-6e1cfjdAqvitfbhl-L6XVdHXmgUgA/s72-c/SingleUserMode.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-6494317470066185088</id><published>2012-12-07T17:14:00.000+05:30</published><updated>2012-12-07T17:14:26.467+05:30</updated><title type='text'>How to apply Service Pack/Hotfix on SQL2008/R2 Cluster?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to apply Service Pack/Hotfix on SQL2008/R2 Cluster?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Applying ServicePack/Hotfix/Cummulatve on SQL2008/R2 cluster is even more simpler…… you should not directly install Service Packs on Production Environment first instead apply them on non Prod (DEV/SIT/UAT) and wait for few days and if you don’t find any errors then apply it on Prod.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Unlike with SQL2005 cluster, down time to apply patches is very minimal with SQL2008/R2 clusters because MS has introduced a new concept called &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;Rolling Upgrade&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;So what is this &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;Rolling Upgrade&lt;/span&gt;? During a rolling upgrade the changes are first applied to the passive node of a failover cluster.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Then the SQL Server instance is failed over to the updated node.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;The upgrade is then applied to the remaining nodes.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;The total outage time for the SQL Server instance is the amount of time that the SQL Server instance takes to fail over to the updated node and apply the metadata changes for the update&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Basic funda in applying patches on SQL2008 or higher is, connect to a Passive node and make sure that it is not hosting any SQL Instance at that moment and apply patch on it and reboot it after reboot move the SQL Instances to Passive node, once moved Passive become Active and Active become Passive, now connect to Passive(Earlier it was Active) and apply the patch and reboot it&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;that’s it….&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Anyone who has a very little knowledge on cluster can easily apply service packs if they follow below instructions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;Case-1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;We have one SQL instance running from Node-A which is actually a two node cluster, that means we call this cluster as Active –Passive cluster, in our example Node-A is active node and Node-B is Passive node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;First you need to take System Databases and User Databases backups and keep them at safer place.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Download appropriate Service Pack/Hotfix/Cummulative Update on each cluster node(A/B).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step3: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Connect to Passive node that means B node in our example and double click on service pack executable file, after successfully applying patch then reboot B node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step4:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;After rebooting B node move the Instance to B node and verify the SQL Version by running Select @@version &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; this should show the latest patch version&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step5:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Connect to A node now and double click on service pack executable file, after successfully &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;applying&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;reboot A node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step5:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;After rebooting A node, move SQL instance from B node to A node and then check the version by running Select @@version &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; this should show the latest patch version&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;Case-2&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;We have two SQL instances, SQLInstanace-1 is &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;running from Node-A and SQLInstanace-2 is running from B node, that means we call this cluster as Active –Active cluster, in our example Node-A is active node and Node-B is also Active node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;First you need to take System Databases and User Databases backups and keep them at safer place.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Download appropriate Service Pack/Hotfix/Cummulative Update on each cluster node(A/B).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step3: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Move SQLInstance-2 from B node to A node and connect to B node(now it is not hosting any sql)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;and double click on service pack executable file. After successfully applying patch reboot B node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step4:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;After rebooting B node move the SQLInstanace-1 and SQLInstance-2 from A node to B node, &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;verify the SQL Version by running Select @@version &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; this should show the latest patch version&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step5:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Now Connect to A node (now it is not hosting any sql) and double click on service pack executable file. After successfully applying patch reboot A node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step6:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;After rebooting A node, move SQLInstance-1 and move SQLInstance-2 &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;from B node to A node and then check the version by running Select @@version &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; this should show the latest patch version and finally move the SQLInstance-2 from A to B node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/6494317470066185088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-apply-service-packhotfix-on_7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/6494317470066185088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/6494317470066185088'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-apply-service-packhotfix-on_7.html' title='How to apply Service Pack/Hotfix on SQL2008/R2 Cluster?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-7306535571879055036</id><published>2012-12-05T19:47:00.001+05:30</published><updated>2012-12-05T19:47:53.755+05:30</updated><title type='text'>How to apply Service Pack/Hotfix on SQL2005 Cluster?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to apply Service Pack/Hotfix on SQL2005 Cluster?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Applying ServicePack/Hotfix/Cummulatve on SQL2005 cluster is simple…… You should not directly install Service Packs on Production Environment first instead apply them on non Prod (DEV/SIT/UAT) and wait for few days and if you don’t see any issues/errors then apply it on Prod.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Anyone who has a very little knowledge on cluster can easily apply service packs if they follow below instructions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;Case-1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;We have one SQL instance running from Node-A which is actually a two node cluster, that means we call this cluster as Active –Passive cluster, in our example Node-A is active node and Node-B is Passive node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;First you need to take System Databases and User Databases backups and keep them at safer place.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Download appropriate Service Pack/Hotfix/Cummulative Update on each cluster node(A/B).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step3: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Connect to Active node that means A node in our example and double click on service pack executable file, in this process installer first applies patch on Passive node (B node) after that it will apply patch on A node. After successfully applying patch, move SQL Instance from A node to B node and then reboot A node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step4:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;After rebooting A node move the Instance back to A node and verify the SQL Version by running Select @@version &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; this should show the latest patch version&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step5:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Connect to B node and double click on service pack executable file, this patch is cluster aware then it will not pickup SQL Instance/Tools in that case you can simply close that otherwise if it pickup like SQLTools/Integration Service then apply it and finally reboot B node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step5:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;After rebooting B node, move SQL instance from A node to B node and then check the version by running Select @@version &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; this should show the latest patch version&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;Case-2&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;We have two SQL instances, SQLInstanace-1 is &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;running from Node-A and SQLInstanace-2 is running from B node, that means we call this cluster as Active –Active cluster, in our example Node-A is active node and Node-B is also Active node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;First you need to take System Databases and User Databases backups and keep them at safer place.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Download appropriate Service Pack/Hotfix/Cummulative Update on each cluster node(A/B).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step3: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Connect to A node in our example and double click on service pack executable file, in this process installer first applies patch on Passive node (B node because for SQLInstance-1&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;B node is passive) after that it will apply patch on A node. After successfully applying patch, move SQL Instance-1 from A node to B node and then reboot A node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step4:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;After rebooting A node move the SQLInstanace-1 back to A node and verify the SQL Version by running Select @@version &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; this should show the latest patch version&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step5:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Connect to B node and double click on service pack executable file, in this process installer first applies patch on Passive node (A node because for SQLInstance-2&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;A node is passive) related to SQLInstance-2 after that it will apply patch on B node. After successfully applying patch, move SQL Instance-2 from B node to A node and then reboot B node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Step5:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;After rebooting B node, move SQLInstance-2 from A node to B node and then check the version by running Select @@version &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; this should show the latest patch version&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/7306535571879055036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-apply-service-packhotfix-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/7306535571879055036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/7306535571879055036'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/how-to-apply-service-packhotfix-on.html' title='How to apply Service Pack/Hotfix on SQL2005 Cluster?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-6876002064608395595</id><published>2012-12-03T17:20:00.004+05:30</published><updated>2012-12-03T17:20:59.246+05:30</updated><title type='text'>Basic SQL Commands for beginers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Basic SQL Commands for beginers:&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Following are useful basic sql syntaxes for freshers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL server is case insensitive, that means -&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;“Create” and “CREATE” have same meaning.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL SELECT Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT column1, column2....columnN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL DISTINCT Clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT DISTINCT column1, column2....columnN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL WHERE Clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT column1, column2....columnN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;CONDITION;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL AND/OR Clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT column1, column2....columnN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;CONDITION-1 {AND|OR} CONDITION-2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL IN Clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT column1, column2....columnN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;column_name IN (val-1, val-2,...val-N);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL BETWEEN Clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT column1, column2....columnN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;column_name BETWEEN val-1 AND val-2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL Like Clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT column1, column2....columnN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;column_name LIKE { PATTERN };&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL ORDER BY Clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT column1, column2....columnN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;CONDITION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ORDER BY column_name {ASC|DESC};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL GROUP BY Clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT SUM(column_name)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;CONDITION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;GROUP BY column_name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL COUNT Clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT COUNT(column_name)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;CONDITION;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL HAVING Clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SELECT SUM(column_name)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FROM&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;CONDITION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;GROUP BY column_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;HAVING (arithematic function condition);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL CREATE TABLE Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;CREATE TABLE table_name(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;column1 datatype,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;column2 datatype,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;column3 datatype,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;.....&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;columnN datatype,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;PRIMARY KEY( one or more columns )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL DROP TABLE Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;DROP TABLE table_name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL CREATE INDEX Statement :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;CREATE UNIQUE INDEX index_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ON table_name ( column1, column2,...columnN);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL DROP INDEX Statement :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ALTER TABLE table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;DROP INDEX index_name; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL DESC Statement :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;DESC table_name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL TRUNCATE TABLE Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;TRUNCATE TABLE table_name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL ALTER TABLE Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ALTER TABLE table_name {ADD|DROP|MODIFY} column_name {data_ype};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL ALTER TABLE Statement (Rename) :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ALTER TABLE table_name RENAME TO new_table_name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL INSERT INTO Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;INSERT INTO table_name( column1, column2....columnN)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;VALUES ( value1, value2....valueN);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL UPDATE Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;UPDATE table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SET column1 = value1, column2 = value2....columnN=valueN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;[ WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;CONDITION ];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL DELETE Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;DELETE FROM table_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;WHERE&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;{CONDITION};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL CREATE DATABASE Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;CREATE DATABASE database_name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL DROP DATABASE Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;DROP DATABASE database_name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL USE Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;USE DATABASE database_name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL COMMIT Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;COMMIT;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQL ROLLBACK Statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ROLLBACK;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/6876002064608395595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/basic-sql-commands-for-beginers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/6876002064608395595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/6876002064608395595'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/12/basic-sql-commands-for-beginers.html' title='Basic SQL Commands for beginers'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-1026222725992039674</id><published>2012-11-28T21:11:00.001+05:30</published><updated>2012-11-28T21:11:09.984+05:30</updated><title type='text'>SQL Server Editions 2008/R2/2012</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;SQL Server Editions 2008/R2/2012&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;Here are the different editions available for&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt; SQL2012:&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2; text-indent: -0.25in;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-bidi-font-family: &#39;Century Gothic&#39;; mso-fareast-font-family: &#39;Century Gothic&#39;;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1.&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2012 Standard Edition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2012 Standard Edition is limited to 16 cores and 64GB of RAM. It provides the core relational database engine and basic business intelligence (BI) capabilities. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;It doesn&#39;t include support for the advanced availability features or the more powerful BI features such as PowerPivot, Power View, and Master Data Services. The Standard Edition does include support for two-node AlwaysOn Failover Clusters, and it&#39;s licensed either per core or per server. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2; text-indent: -0.25in;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-bidi-font-family: &#39;Century Gothic&#39;; mso-fareast-font-family: &#39;Century Gothic&#39;;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2.&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2012 Business Edition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2012 Business Intelligence Edition is a new member of the SQL Server family. Like the Standard edition, the Business Intelligence edition is limited to 16 cores for the database engine and 64GB of RAM. However, it can use the maximum number of cores supported by the OS for Analysis Services and Reporting Services. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;The Business Intelligence edition includes all of the features in the Standard edition and support for advanced BI features such as Power View and PowerPivot, but it lacks support for the advanced availability features like AlwaysOn Availability Groups and other online operations. The Business Intelligence edition supports two-node AlwaysOn Failover Clusters, and it&#39;s licensed per server. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2; text-indent: -0.25in;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-bidi-font-family: &#39;Century Gothic&#39;; mso-fareast-font-family: &#39;Century Gothic&#39;;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;3.&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2012 Enterprise Edition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2012 Enterprise Edition is the high end of the SQL Server 2012 product lineup. It supports the maximum number of cores and RAM in the host OS and provides the complete SQL Server feature set, including support for all of the advanced availability and BI features. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;The Enterprise edition supports up to 16-node AlwaysOn Failover Clusters as well as AlwaysOn Availability Groups, online operations, PowerPivot, Power View, Master Data Services, advanced auditing, transparent data encryption, the ColumnStore index, and more. The Enterprise edition is licensed per core. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2; text-indent: -0.25in;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-bidi-font-family: &#39;Century Gothic&#39;; mso-fareast-font-family: &#39;Century Gothic&#39;;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;4.&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2012 Express Editions and LocalDB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2012 will continue to offer &lt;a href=&quot;http://www.sqlmag.com/article/sql-server/sql-server-express-2012-editions-143625&quot;&gt;&lt;span style=&quot;color: blue; text-decoration: none; text-underline: none;&quot;&gt;three versions of the free SQL Server Express Edition&lt;/span&gt;&lt;/a&gt;: Express (Database Only), Express with Tools, and Express with Advanced Services. Microsoft will also continue to offer a download of SQL Server Management Studio Express. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;The Express editions are limited to support for one CPU and 1GB of RAM. Databases are limited to 10GB per database. In addition, a new option called LocalDB will also be available. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;LocalDB isn&#39;t the old Compact Edition: It uses the same sqlservr.exe engine as the other editions of SQL Server and is designed for developers. It requires no configuration and runs as a user process, not as a service. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;For more information about LocalDB, check out the SQL Server Express Web Log at MSDN: &quot;&lt;a href=&quot;http://blogs.msdn.com/b/sqlexpress/archive/2011/07/12/introducing-localdb-a-better-sql-express.aspx&quot;&gt;&lt;span style=&quot;color: blue; text-decoration: none; text-underline: none;&quot;&gt;Introducing LocalDB, an improved SQL Express&lt;/span&gt;&lt;/a&gt;.&quot; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.25in; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2; text-indent: -0.25in;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-bidi-font-family: &#39;Century Gothic&#39;; mso-fareast-font-family: &#39;Century Gothic&#39;;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;5.&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2012 Web and Developer Editions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2012 Web Edition and SQL Server 2012 Developer Edition will continue to be part of the SQL Server 2012 family. The Developer edition provides the same feature set as the Enterprise edition. However, it&#39;s licensed per developer and can&#39;t be used for production work. The Web edition is licensed only to hosting companies with a Services Provider License Agreement (SLPA). &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;Here are the different editions available for&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt; SQL Server 2008.&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Enterprise Edition&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;Data management and business intelligence platform providing enterprise class scalability, high availability, and security for running business-critical applications&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Standard Edition&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;Data management and business intelligence platform providing ease of use and manageability for running departmental applications&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Workgroup Edition&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;Data management and reporting platform providing secure, remote synchronization, and management capabilities for running branch applications&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Developer Edition&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;May be installed and used by one user to design, develop, test, and demonstrate your programs on as many systems as needed&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Web Edition&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;A low-TCO, scalable, and manageable database option for web hosters and end customers looking to deploy publicly facing web applications and services&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Express Edition&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;A free edition of SQL Server ideal for learning and building desktop and small server applications and for redistribution by ISVs&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Compact Edition&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;A free, SQL Server embedded database ideal for building stand-alone and occasionally connected applications for mobile devices, desktops, and web clients&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: blue; line-height: normal; margin: 0in 0in 10pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Evaluation Edition&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;This edition may be installed for demonstration and evaluation purposes until an expiration period of 180 days.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt 0.5in; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-highlight: yellow;&quot;&gt;Here are the different editions available for &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;SQL2008 R2&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;1. SQL Server 2008 R2 Parallel Computing Edition &lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;One huge change is the Parallel Computing edition (formerly code-named Madison), essentially the SQL Server equivalent to Windows Server High Performance Computing (HPC) Edition. It will utilize a Massively Parallel Processing (MPP) scale-out architecture to support data warehousing ranging from 10TB to 1+ PB. The Parallel Computing Edition is priced at $57,489 per processor. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;2. SQL Server 2008 R2 Datacenter Edition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;The biggest change is undoubtedly the new SQL Server 2008 R2 Datacenter Edition. This edition parallels Windows Server Datacenter Edition, and with support from up to 256 logical processors, it&#39;s designed to address the highest levels of scalability. The Datacenter edition has no memory limitation and offers support for more than 25 instances. It also will be priced at $57,489 per processor. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;3. SQL Server 2008 R2 Enterprise Edition and Developer Edition &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;The Enterprise edition is the one that’s targeted toward most businesses. With the advent of the new Datacenter edition, the Enterprise edition will be limited to support for 64 logical processors and 25 instances, which really isn’t much of a change. It will be priced at $28,749 per processor or $13,969 per server with 25 CALs. The Developer edition shares the same feature set and is licensed at $50 per developer. &lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;4. SQL Server 2008 R2 Standard Edition&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; &lt;br /&gt;Designed for small and medium businesses, the Standard edition supports up to 4 CPUs and 2TB of RAM, with unlimited database size. It includes support for all BI subsystems including Analysis Services, Integration Services, and Reporting Services, but lacks many of the enterprise-oriented features from the Enterprise edition. It will be priced at $7,499 per processor or $1,849 per server with five CALs. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;5. SQL Server 2008 R2 Web Edition &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;This edition is designed to be run by web hosting providers. It provides support for up to 4 CPUs, 2TB of RAM, and unlimited database size. In addition to its relational database engine, SQL Server 2008 R2 Web Edition supports Reporting Services. It&#39;s priced at $15 per processor per month. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in; mso-list: l0 level1 lfo2; text-indent: -0.25in;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-bidi-font-family: &#39;Century Gothic&#39;; mso-fareast-font-family: &#39;Century Gothic&#39;;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;6.&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;SQL Server 2008 R2 Workgroup Edition &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Workgroup edition is designed to provide basic relational database services for departments and branch offices. It supports a maximum of 2 CPUs, 4GB of RAM, and unlimited database size. Its only BI feature is Reporting Services. It&#39;s priced at $3,899 or $739 per server including five CALs. &lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;7. SQL Server 2008 R2 Express Edition &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Targeted toward developers and ISVs, SQL Server Express Edition comes in three versions. SQL Server 2008 R2 Express provides relational database services; SQL Server 2008 R2 Express with Tools Edition adds SSMS; and SQL Server 2008 R2 Express with Advanced Services adds SSMS and a local instance of Reporting Services. All of the SQL Server 2008 R2 Express editions will continue to be free downloads&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/1026222725992039674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/sql-server-editions-2008r22012.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/1026222725992039674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/1026222725992039674'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/sql-server-editions-2008r22012.html' title='SQL Server Editions 2008/R2/2012'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-863435625426207986</id><published>2012-11-28T20:47:00.003+05:30</published><updated>2012-11-28T21:02:00.703+05:30</updated><title type='text'>A page which tells you all released ServicePack/CumulativeUpdate/Hotfix for all versions of SQLServer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;A page which tells you all released ServicePack/CumulativeUpdate/Hotfix for all versions of SQLServer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 6pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Following link is an one stop shop, which gives you up to date information about ServicePack/CumulativeUpdate/Hotfix all versions of SQLServer.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 6pt;&quot;&gt;
&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://sqlserverbuilds.blogspot.in/&quot;&gt;http://sqlserverbuilds.blogspot.in/&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 6pt;&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/863435625426207986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/a-page-which-list-all-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/863435625426207986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/863435625426207986'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/a-page-which-list-all-released.html' title='A page which tells you all released ServicePack/CumulativeUpdate/Hotfix for all versions of SQLServer'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-3880344521632642286</id><published>2012-11-28T18:58:00.004+05:30</published><updated>2012-11-28T18:58:50.009+05:30</updated><title type='text'>Free Download SQLServer 2012 Express edition (5 Flavors)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Free Download SQLServer 2012 Express edition &lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQLServer2012 Express, is a relational database management system and it is a freely downloadable and distributable version of Microsoft&#39;s SQL Server, it comprises a database specifically targeted for embedded and smaller-scale applications. &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;It includes 10GB of storage per database, easy backup and restore functionality&lt;/span&gt; and compatibility with all editions of SQL Server and Windows Azure SQL Database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQLServer2012 express is available in 5 different flavors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;The best flavor is Express with Advanced Services because it has got tools, reporting services&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;and Fulltext search.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;Express (Containing only the database engine)&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;The core Express database server. Use this if you need to accept remote connections or administer remotely.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;Express with Tools (with LocalDB, Includes the database engine and SQL Server Management Studio Express)&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;This package contains everything needed to install and configure SQL Server as a database server. Choose either LocalDB or Express.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;SQL Server Management Studio Express (Tools only)&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;This package does not contain the database, only the tools to manage SQL Server instances, including LocalDB, SQL Express, SQL Azure, etc. Use this if you already have the database and only need the management tools.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;background: yellow; color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-highlight: yellow;&quot;&gt;Express with Advanced Services (contains the database engine, Express Tools, Reporting Services, and Full Text Search)&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;This package contains all the components of SQL Server Express. This is a larger download than “Express with Tools,” as it also includes both Full Text Search and Reporting Services.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;a href=&quot;https://www.microsoft.com/betaexperience/pd/SQLEXPAS/enus/&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;https://www.microsoft.com/betaexperience/pd/SQLEXPAS/enus/&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Here is the link to download all flavors of SQLServer2012 Express&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;a href=&quot;http://www.microsoft.com/sqlserver/en/us/editions/2012-editions/express.aspx&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;http://www.microsoft.com/sqlserver/en/us/editions/2012-editions/express.aspx&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/3880344521632642286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/free-download-sqlserver-2012-express.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/3880344521632642286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/3880344521632642286'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/free-download-sqlserver-2012-express.html' title='Free Download SQLServer 2012 Express edition (5 Flavors)'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-5888952568364307508</id><published>2012-11-28T17:45:00.003+05:30</published><updated>2012-11-28T17:45:52.631+05:30</updated><title type='text'>How to change default backup location after installing SQLServer 2008/R2/2012?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to change default backup location after installing SQLServer 2008/R2/2012?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Changing default locations of Data and Log file is simple, connect to SQL instance through SSMS and go to properties of the instance&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; Database Settings &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;under Database Default Locations&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; type the desired locations.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;But if you want to change the default backup location after installation you need to connect to SQL instance through SSMS and go to properties of the instance&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Facets &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; Select Server Facets from the drop down list and click on &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;BackupDirectory&lt;/b&gt; -&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt; type the desired location.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;&lt;v:shapetype coordsize=&quot;21600,21600&quot; filled=&quot;f&quot; id=&quot;_x0000_t75&quot; o:preferrelative=&quot;t&quot; o:spt=&quot;75&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; stroked=&quot;f&quot;&gt;&lt;v:stroke joinstyle=&quot;miter&quot;&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @0 1 0&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum 0 0 @1&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @2 1 2&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @0 0 1&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @6 1 2&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @8 21600 0&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;&gt;&lt;/v:f&gt;&lt;v:f eqn=&quot;sum @10 21600 0&quot;&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot; o:extrusionok=&quot;f&quot;&gt;&lt;/v:path&gt;&lt;o:lock aspectratio=&quot;t&quot; v:ext=&quot;edit&quot;&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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/AVvXsEg7ro3lP8RphdgmxkzaO5biIy-UY9iESKU3bvCBELKq9VIPjnx6N4eXNNQbVH8HflsW6nZs-P2bJn5X1qc3ccCep1s7HD5tGcNH-1GnRbld_ukfcvJa0j5A55Vh45V1t2GbrF1YhNGsXn0/s1600/backupdirectorychange.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7ro3lP8RphdgmxkzaO5biIy-UY9iESKU3bvCBELKq9VIPjnx6N4eXNNQbVH8HflsW6nZs-P2bJn5X1qc3ccCep1s7HD5tGcNH-1GnRbld_ukfcvJa0j5A55Vh45V1t2GbrF1YhNGsXn0/s400/backupdirectorychange.bmp&quot; tea=&quot;true&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;You can also change the data &amp;amp; log file locations through facets&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/5888952568364307508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-to-change-default-backup-location.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/5888952568364307508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/5888952568364307508'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-to-change-default-backup-location.html' title='How to change default backup location after installing SQLServer 2008/R2/2012?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7ro3lP8RphdgmxkzaO5biIy-UY9iESKU3bvCBELKq9VIPjnx6N4eXNNQbVH8HflsW6nZs-P2bJn5X1qc3ccCep1s7HD5tGcNH-1GnRbld_ukfcvJa0j5A55Vh45V1t2GbrF1YhNGsXn0/s72-c/backupdirectorychange.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-264229329654150871</id><published>2012-11-28T17:05:00.003+05:30</published><updated>2012-11-28T17:05:39.145+05:30</updated><title type='text'>Service Pack -1 for SQLServer 20012 is available</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Service Pack -1 for SQLServer 20012 :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-fareast-font-family: Calibri;&quot;&gt;Microsoft has released Service Pack -1 for SQLServer 2012 on 12th November 2012, as a best practice, deploy any new SPs first on lower (non-prod) environments and do some basic smoke test and later deploy it on Production servers if no issues found.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-fareast-font-family: Calibri;&quot;&gt;SQL Server 2012 SP1 contains fixes to issues that have been reported through our customer feedback platforms and Hotfix solutions provided in SQL Server 2012 Cumulative Update 1 and Cumulative Update 2. Service Pack 1 also includes supportability enhancements and issues that have been reported through the Windows Error Reporting system.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-fareast-font-family: Calibri;&quot;&gt;This upgrade is free and doesn’t require an additional service contract. Both, the Service Pack and Feature Pack updates are available for download on the Microsoft Download Center. This includes new Slipstream installation packages that can be utilized with existing licenses to install (or upgrade to) new instances with SP1 pre-installed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-fareast-font-family: Calibri;&quot;&gt;You can download SP1 from here: &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; mso-fareast-font-family: Calibri;&quot;&gt;&lt;a href=&quot;http://www.microsoft.com/en-us/download/details.aspx?id=35575&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;http://www.microsoft.com/en-us/download/details.aspx?id=35575&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/264229329654150871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/service-pack-1-for-sqlserver-20012-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/264229329654150871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/264229329654150871'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/service-pack-1-for-sqlserver-20012-is.html' title='Service Pack -1 for SQLServer 20012 is available'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-7368593933680580541</id><published>2012-11-24T12:27:00.001+05:30</published><updated>2012-11-24T12:27:15.119+05:30</updated><title type='text'>How to add exceptions in Windows Firewall related to SQLServer through command prompt?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to add exceptions in Windows Firewall related to SQLServer through command prompt?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is WindowsFirewall:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Windows Firewall is a software component of Microsoft Windows that provides firewalling and packet filtering functions. It was first included in Windows XP and Windows Server 2003. Prior to the release of Windows XP Service Pack 2 in 2004, it was known as Internet Connection Firewall.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Basically we have to open 3 exceptions in windows firewall pertain to SQL Server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQLServerEngine&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;-&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;default port/ custom port, Port Type - TCP/IP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQLServerSSIS – 135, Port Type - TCP/IP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;SQLServerBrowser – 1434, Port Type – UDP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Following command will create exceptions in firewall pertain to SQL Server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;netsh advfirewall firewall add rule name = SQLServerEngine dir = in protocol = tcp action = allow localport = 22001 remoteip = ANY profile = ANY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;netsh advfirewall firewall add rule name = SQLServerSSIS dir = in protocol = tcp action = allow localport = 135 remoteip = ANY profile = ANY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;netsh advfirewall firewall add rule name = SQLServerBrowser dir = in protocol = UDP action = allow localport = 1434 remoteip = ANY profile = ANY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/7368593933680580541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-to-add-exceptions-in-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/7368593933680580541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/7368593933680580541'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-to-add-exceptions-in-windows.html' title='How to add exceptions in Windows Firewall related to SQLServer through command prompt?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-2446284057565105396</id><published>2012-11-24T12:12:00.001+05:30</published><updated>2012-11-24T12:12:43.855+05:30</updated><title type='text'>How to change SQLPort number through a VBScript/SQLServerConfigurationManager ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;How to change SQLPort number through a VBScript/SQLServerConfigurationManager ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;After successful installation of SQL server every organization follows some set of security standard to secure Sql server. One of those standard is changing the sql default port to some other port(1433 is the default port. )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;How would I do that: it is very simple you can do it either through script or GUI -SQLServerConfigurationManager.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;You have to restart sql services then only the SQL server starts listening new port.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Following script has two sections, one is to change the port to 22001and the other section is to restart sql services (Engine and Agent). Copy the following script in to notepad and save as PortChangeScript.VBS and open commandprompt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;C:\ PortChangeScript.VBS &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Enter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;-------------------------------------------------------------------------------------------------------------------------------------------.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;set wmiComputer = GetObject( _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&quot;winmgmts:&quot; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;amp; &quot;\\.\root\Microsoft\SqlServer\ComputerManagement10&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;set tcpProperties = wmiComputer.ExecQuery( _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&quot;select * from ServerNetworkProtocolProperty &quot; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;amp; &quot;where InstanceName=&#39;MSSQLSERVER&#39; and &quot; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;amp; &quot;ProtocolName=&#39;Tcp&#39; and IPAddressName=&#39;IPAll&#39;&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;for each tcpProperty in tcpProperties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;dim setValueResult, requestedValue&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;if tcpProperty.PropertyName = &quot;TcpPort&quot; then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;requestedValue = &quot;22001&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;elseif tcpProperty.PropertyName =&quot;TcpDynamicPorts&quot; then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;requestedValue = &quot;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;end if&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;setValueResult = tcpProperty.SetStringValue(requestedValue)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;strComputer = &quot;.&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Set objWMIService = GetObject(&quot;winmgmts:&quot; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;amp; &quot;{impersonationLevel=impersonate}!\\&quot; &amp;amp; strComputer &amp;amp; &quot;\root\cimv2&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Set colServiceList = objWMIService.ExecQuery(&quot;Associators of &quot; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;amp; &quot;{Win32_Service.Name=&#39;MSSQLSERVER&#39;} Where &quot; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;amp; &quot;AssocClass=Win32_DependentService &quot; &amp;amp; &quot;Role=Antecedent&quot; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;For each objService in colServiceList&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;objService.StopService()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Wscript.Sleep 20000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Set colServiceList = objWMIService.ExecQuery _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;(&quot;Select * from Win32_Service where Name=&#39;MSSQLSERVER&#39;&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;For each objService in colServiceList&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;errReturn = objService.StopService()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Wscript.Sleep 20000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;strComputer = &quot;.&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Set objWMIService = GetObject(&quot;winmgmts:&quot; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;amp; &quot;{impersonationLevel=impersonate}!\\&quot; &amp;amp; strComputer &amp;amp; &quot;\root\cimv2&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Set colServiceList = objWMIService.ExecQuery(&quot;Associators of &quot; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;amp; &quot;{Win32_Service.Name=&#39;MSSQLSERVER&#39;} Where &quot; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;amp; &quot;AssocClass=Win32_DependentService &quot; &amp;amp; &quot;Role=Antecedent&quot; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;For each objService in colServiceList&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;objService.StartService()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Wscript.Sleep 20000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Set colServiceList = objWMIService.ExecQuery _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;(&quot;Select * from Win32_Service where Name=&#39;MSSQLSERVER&#39;&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;For each objService in colServiceList&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;errReturn = objService.StartService()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;-------------------------------------------------------------------------------------------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Other way: GUI- SQLServerConfigurationManager&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Open&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; SQLServerConfigurationManager&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; SQL Server Network Configuration &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; select the instance &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; double click on TCP/IP &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; click on IP Address Tab&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; Scroll down and in section IP ALL&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; Type TCP Port =22001 and delete if you see anything in TCPDynamic Port and then click on apply then click on OK. Finally you have to restart SQL Services.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/2446284057565105396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-to-change-sqlport-number-through.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/2446284057565105396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/2446284057565105396'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-to-change-sqlport-number-through.html' title='How to change SQLPort number through a VBScript/SQLServerConfigurationManager ?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-8167388263263365749</id><published>2012-11-23T13:38:00.003+05:30</published><updated>2012-11-23T13:38:37.056+05:30</updated><title type='text'>How to run a batch file or executable file through a Windows Service?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to run a batch file or executable file through a Windows Service?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Some times we would like to run a batch file or exe file from windows service, this is very simple.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;For example you have a batch file – ABC.bat and you want to run it from windows service, following is the command to do that.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Open command prompt.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;C:\ABC.bat /R &amp;lt;Password to run the service as log on&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/8167388263263365749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-to-run-batch-file-or-executable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/8167388263263365749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/8167388263263365749'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-to-run-batch-file-or-executable.html' title='How to run a batch file or executable file through a Windows Service?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-6950138386352691098</id><published>2012-11-23T13:33:00.003+05:30</published><updated>2012-11-23T13:33:12.306+05:30</updated><title type='text'>What is a Robocopy?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; line-height: 115%; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is a Robocopy?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Robocopy, or &quot;Robust File Copy&quot;, is a command-line directory replication command. It has been available as part of the Windows Resource Kit starting with Windows NT 4.0, and was introduced as a standard feature of Windows Vista, Windows 7 and Windows Server 2008. The command is robocopy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Sytanx to copy from one location to another location&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;set source&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;=\\ABCServer\MyFolder&lt;br /&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;set target&lt;/b&gt;=E:\MyFolder&lt;br /&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;set logfile&lt;/b&gt;=D:\Logs\MyfolderCopy.log&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ROBOCOPY &quot;%source%&quot; &quot;%target%&quot; /COPYALL /S /ZB /V /E /R:1 /W:3 /TEE /NP /XO /LOG:&quot;%logfile%&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Or &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ROBOCOPY &amp;lt;Source Path&amp;gt; &amp;lt;Destination Path &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;/COPYALL /S /ZB /V /E /R:1 /W:3 /TEE /NP /XO /LOG: &amp;lt;Log Path&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/6950138386352691098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/what-is-robocopy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/6950138386352691098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/6950138386352691098'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/what-is-robocopy.html' title='What is a Robocopy?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-6577581921596207225</id><published>2012-11-18T10:24:00.002+05:30</published><updated>2012-11-18T10:24:55.042+05:30</updated><title type='text'>How do I list all the windows groups pertain to domain account/user?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;How do I list all the windows groups pertain to domain account/user?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Some time we would like to know about all windows groups pertain to a Domain user.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Following command will list you all the windows groups pertain to xyz user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;net user &amp;lt;Domain username&amp;gt; /Domain&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US;&quot;&gt;net user xyz /Domain&lt;/span&gt; 
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/6577581921596207225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-do-i-list-all-windows-groups.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/6577581921596207225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/6577581921596207225'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-do-i-list-all-windows-groups.html' title='How do I list all the windows groups pertain to domain account/user?'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7670644707701401478.post-5568427137137519757</id><published>2012-11-18T10:14:00.001+05:30</published><updated>2012-11-18T10:14:22.290+05:30</updated><title type='text'>How to kill a windows session – unable to logon windows……</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;How to kill a windows session – unable to logon windows……&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #c00000; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 12pt; mso-bidi-font-family: &#39;Courier New&#39;; mso-no-proof: yes;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;We often face “Sessions has reached maximum limit” while connecting to a windows server to troubleshoot SQLServer/other applications, actually when you RDP to a window box, it will create a session with ID and windows allows only 2 remote connections, the next connection whoever tries to connect will get rejected. So as soon as we are done with our work on any windows box you have to log off the box otherwise that session will remain for some time based on the Administrator time setup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;So what do we do in case of sessions are already reached maximum limit.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;First you have to list what are the connections are connected to server. Below command will list you that information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Syntax: Qwinsta /server:&amp;lt;Servername&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt;&quot;&gt;Qwinsta /server:ABWZP4154&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none; mso-outline-level: 1;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;It displays two connection connected to ABWZP4154.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Connections are two types- Active and Disconnected&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;If you see disconnected connection, note down the session –ID and kill it by executing below command, after killing you are able to RDP to the server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Rwinsta /server:&amp;lt;servername&amp;gt; &amp;lt;Session ID&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Rwinsta /server: ABWZP4154 2 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;Incase if you see both the connection are active then &amp;nbsp;you have to choose which to kill. It is up to you &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Wingdings; font-size: 10pt; line-height: 115%; mso-ascii-font-family: &#39;Century Gothic&#39;; mso-char-type: symbol; mso-hansi-font-family: &#39;Century Gothic&#39;; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Century Gothic&#39;,&#39;sans-serif&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gemanjyothisqlserver.blogspot.com/feeds/5568427137137519757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-to-kill-windows-session-unable-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/5568427137137519757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7670644707701401478/posts/default/5568427137137519757'/><link rel='alternate' type='text/html' href='http://gemanjyothisqlserver.blogspot.com/2012/11/how-to-kill-windows-session-unable-to.html' title='How to kill a windows session – unable to logon windows……'/><author><name>Vijay Kumar Gemanjyothi</name><uri>http://www.blogger.com/profile/17020796618082226475</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>