<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="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" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-6020247666251034345</atom:id><lastBuildDate>Mon, 09 Sep 2024 04:03:20 +0000</lastBuildDate><category>MSSQL Corruption</category><title>MSSQLCorruptionTackle</title><description>A blog to deal with SQL Corruptions and related problems</description><link>https://mssqlcorruptiontackle.blogspot.com/</link><managingEditor>noreply@blogger.com (tuitionaffordable)</managingEditor><generator>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-5128514430111945645</guid><pubDate>Tue, 18 Jul 2017 02:03:00 +0000</pubDate><atom:updated>2017-07-17T19:08:19.718-07:00</atom:updated><title>How to Serialize Using C sharp</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Serialize &lt;/u&gt;&lt;/b&gt;means changing the object in JSON key value pair. Following is a method to serialize the objects in C sharp.&lt;br /&gt;
&lt;br /&gt;
class Program&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void Main(string[] args)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Boy objBoy = new Boy();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; objBoy.FirstName = &quot;FirstName&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; objBoy.LastName = &quot;Lastname&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; objBoy.SchoolName = &quot;School&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; objBoy.Number = 100;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; objBoy.CycleColor = &quot;Color&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Uncomment below line to test serialization&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(JsonSerializeMethod(objBoy));&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Uncomment below line to test deserialization&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Person objPerson1 = new Person();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //string str = JsonSerializeMethod(objBoy);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //var result = JsonDeserializeMethod(str);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //var results = JsonConvert.DeserializeObject&amp;lt;dynamic&amp;gt;(str);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Console.WriteLine(objPerson1.FirstNameOfPerson);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.ReadLine();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
//Here is the link on&amp;nbsp;&lt;a href=&quot;https://mssqlcorruptiontackle.blogspot.com/2017/06/http-404-resource-you-are-looking-for.html&quot; target=&quot;_blank&quot;&gt;How to fix 404 Issue&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static string JsonSerializeMethod(object o)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var str = JsonConvert.SerializeObject(o);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return str;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static object JsonDeserializeMethod(string str)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var results = JsonConvert.DeserializeObject&amp;lt;dynamic&amp;gt;(str);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return results;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public class Boy&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string FirstName { get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string LastName { get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string SchoolName { get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public int Number { get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string CycleColor { get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public class Person&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string FirstNameOfPerson &amp;nbsp; &amp;nbsp; { get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string LastNameOfPerson &amp;nbsp; &amp;nbsp; &amp;nbsp;{ get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string SchoolNameOfPerson &amp;nbsp; &amp;nbsp;{ get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string PhoneNumberOfPerson &amp;nbsp; { get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string CycleColorOfPerson &amp;nbsp; &amp;nbsp;{ get; set; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static explicit operator JObject(Person v)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throw new NotImplementedException();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
//A great post on &lt;a href=&quot;https://mssqlcorruptiontackle.blogspot.com/2017/07/ready-for-next-layoff.html&quot; target=&quot;_blank&quot;&gt;Job Flip Guidance&lt;/a&gt;&amp;nbsp;and &lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/07/how-to-improve-relation-with-your-boss.html&quot; target=&quot;_blank&quot;&gt;Improving Relations With Boss&lt;/a&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2017/07/how-to-serialize-using-c-sharp.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-5886018586453763421</guid><pubDate>Mon, 03 Jul 2017 18:01:00 +0000</pubDate><atom:updated>2017-07-11T18:24:24.457-07:00</atom:updated><title>SQL Server DBA Interview Questions</title><description>&lt;h1 style=&quot;margin-bottom: 9.6pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&amp;nbsp;&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/AVvXsEgi87m-s8YFTXEXUvl2iAn_q8bIVfNWzOBfrD7q-NSBixL6_HxxO1uYTBHrKHEZWxZXAGhXCJh-FYyFkJs9Vba8g_EyQLJV36RojNqKmLNBV9n8EIShywVhgZtf8mZr6ogHGbwjZB3_doDa/s1600/pexels-photo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1067&quot; data-original-width=&quot;1600&quot; height=&quot;426&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi87m-s8YFTXEXUvl2iAn_q8bIVfNWzOBfrD7q-NSBixL6_HxxO1uYTBHrKHEZWxZXAGhXCJh-FYyFkJs9Vba8g_EyQLJV36RojNqKmLNBV9n8EIShywVhgZtf8mZr6ogHGbwjZB3_doDa/s640/pexels-photo.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/h1&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Following are some sql server
2016 dba interview questions to help you in prep and revise interviews in fifteen minutes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13pt;&quot;&gt;I have got many requests to
publish first set of MSSQL DBA Interview&amp;nbsp;questions. I observed that many
interviewers are interested in finding out whether you worked on DB corruption
or not. Here is the &lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2010/12/ms-sql-corruption.html&quot; target=&quot;_blank&quot;&gt;link&lt;/a&gt; to help you&lt;/span&gt;&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13pt;&quot;&gt;. Go ahead with ten most important
Microsoft&amp;nbsp;SQL Server DBA Interview Questions.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Interviewers are testing at
least basic knowledge of clustering. Read following wires to be ready for this
surprise:&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://buildingcareerforu.blogspot.com/2011/01/mssql-interview-question-clustering.html&quot; style=&quot;box-sizing: inherit;&quot; target=&quot;_blank&quot; title=&quot;MSSQL Interview Question Clustering- Part1&quot;&gt;&lt;span style=&quot;color: #dd5533;&quot;&gt;MSSQL Interview
Question Clustering- Part1&lt;/span&gt;&lt;/a&gt;,&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://buildingcareerforu.blogspot.com/2011/01/mssql-interview-question-clustering_27.html&quot; style=&quot;box-sizing: inherit;&quot; target=&quot;_blank&quot; title=&quot;Part2&quot;&gt;&lt;span style=&quot;color: #dd5533;&quot;&gt;Part2&lt;/span&gt;&lt;/a&gt;,&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://buildingcareerforu.blogspot.com/2011/01/mssql-interview-question-clustering_2865.html&quot; style=&quot;box-sizing: inherit;&quot; target=&quot;_blank&quot; title=&quot;Part3&quot;&gt;&lt;span style=&quot;color: #dd5533;&quot;&gt;Part3&lt;/span&gt;&lt;/a&gt;&amp;nbsp;and&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://buildingcareerforu.blogspot.com/2011/01/mssql-interview-question-clustering_2337.html&quot; style=&quot;box-sizing: inherit;&quot; target=&quot;_blank&quot; title=&quot;Part4&quot;&gt;&lt;span style=&quot;color: #dd5533;&quot;&gt;Part4&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;How the data is stored physically in Columnstore Index?&lt;/li&gt;
&lt;li&gt;What is the difference
between lock, block and deadlock?&lt;/li&gt;
&lt;li&gt;What is the meaning of lock escalation and why/how to stop this?&lt;/li&gt;
&lt;li&gt;How to truncate the log in sql server 2008?&lt;/li&gt;
&lt;li&gt;How to Start Service Using Powershell Commands?&lt;/li&gt;
&lt;li&gt;What changes in the front end code is needed if mirroring is implemented for
the high availability?&lt;/li&gt;
&lt;li&gt;Where does the copy job runs in the logshipping… Primary or secondary?&lt;/li&gt;
&lt;li&gt;What are the ways to find what code is running for any spid?&lt;/li&gt;
&lt;li&gt;When you get following error? Error 3154: The backup set holds a backup of a
database other than the existing database.&lt;/li&gt;
&lt;li&gt;Does DBCC CHECKDB requires DB to be in SINGLE_USER mode?&lt;/li&gt;
&lt;li&gt;How to view the error log for any specific instance?&lt;/li&gt;
&lt;li&gt;Why are you resigning from current position?&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;———————————————-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 17.3333px;&quot;&gt;Answer 1:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 17.3333px;&quot;&gt;The data is logically represented as a table but physically stored in column-wise data format. A clustered columnstore index is the physical storage of whole table. Some interviewers also ask what is Deltastore so the candidate should be ready with the answer. The deltastore is used by SQL engine to improve the performance of columnstore. Deltastore is actually a clustered index where some data is temporarily stored.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Answer 2:&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
Lock: DB engine locks the rows/page/table to access the data which is worked
upon according to the query.&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
Block: When one process blocks the resources of another process then blocking
happens. Blocking can be identified by using&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
SELECT * FROM sys.dm_exec_requests where blocked &amp;lt;&amp;gt; 0&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
SELECT * FROM master..sysprocesses where blocked &amp;lt;&amp;gt; 0&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
Deadlock: When something happens as follows: Error 1205 is reported by SQL
Server for deadlock.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;a href=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;color: #dd5533; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype
 id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot; o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot;
 path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
 &lt;v:stroke joinstyle=&quot;miter&quot;/&gt;
 &lt;v:formulas&gt;
  &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 1 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum 0 0 @1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @2 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 0 1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @6 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;sum @8 21600 0&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @10 21600 0&quot;/&gt;
 &lt;/v:formulas&gt;
 &lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot;/&gt;
 &lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot;/&gt;
&lt;/v:shapetype&gt;&lt;v:shape id=&quot;Picture_x0020_2&quot; o:spid=&quot;_x0000_i1026&quot; type=&quot;#_x0000_t75&quot;
 alt=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png?w=300&amp;amp;h=243&quot;
 href=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png&quot;
 style=&#39;width:225pt;height:182.25pt;visibility:visible;mso-wrap-style:square&#39;
 o:button=&quot;t&quot;&gt;
 &lt;v:imagedata src=&quot;file:///C:/Users/ajohri/AppData/Local/Temp/msohtmlclip1/02/clip_image001.png&quot;
  o:title=&quot;deadlock1&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Answer 3: When the DB engine
would try to lock page first and then it escalates locks to page and then
table. If we&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13pt;&quot;&gt;understand that whole table
would be locked for the processing thenn this is better to use TABLOCK hint and
get complete table blocked. This is a nice way to avoid the wastage of sql
server DB engine processing for lock escalation. Somewhere you may also need to
use TABLOCKX when you want an exclusive lock on the table in the query.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Answer 4: BACKUP LOG TestDB WITH
TRUNCATE_ONLY is gone. SQL server doesn’t allow you to truncate the log now
otherwise whole purpose of a DB is defeated. Read article&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;tahoma&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 17.3333px;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2010/12/mssql-server-dbcc-loginfo-status-2-log.html&quot; target=&quot;_blank&quot;&gt;MSSQL Server - DBCC LOGINFO&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: #dd5533;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13pt;&quot;&gt;to surprise interviewer with your
answer. You have to make sure whether you need log or not. If you don’t need
log then have the recovery model simple instead of full. If you don’t want the
log to be accumulated in some particular bulk logging then change the recovery
model BULK LOGGED for that duration and take one tlog backup just before and
after this change. I shall discuss this later in my later blog. BACKUP LOG
command backs up the t-log and frees the space in the log file.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Answer 5:&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/starting-service-using-powershell.html&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;color: #dd5533;&quot;&gt;How to Start Service
Using Powershell Commands&lt;/span&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Answer 6: You need to add only
FAILOVER PARTNER information in your front end code. “Data
Source=ServerA;Failover Partner=ServerB;Initial
Catalog=AdventureWorks;Integrated Security=True;”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Answer 7: Secondary server. This
question is basically asked to find out whether you have a handson work on
logshipping or not. I came through many cases when candidates have mentioned
logshipping experience in many projects and they can’t answer this question. I
never selected any candidate if he/she don’t answer these kind of small
questions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Answer 8: Well there are many
ways to do this.&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
1. find the spid which you want to analyze. An spid is assigned as soon as a
client connection is established with the SQL server. To find the spid you can
run any of the following command:&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
a) SP_WHO2 ‘ACTIVE’ — This will give you only active spids.&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
b) SELECT * FROM sys.dm_exec_requests&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;2. Get the spid from above two
queries and use any of the following query to get what is happening behind that
spid.&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
a) dbcc inputbuffer(&amp;lt;spid&amp;gt;)&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
b) sql2005 and sql2008 – SELECT * FROM sys.dm_exec_sql_text(&amp;lt;sqlhandle of
that spid&amp;gt;)&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
c) sql2005 and sql2008 – SELECT * FROM fn_get_sql(&amp;lt;sqlhandle of that
spid&amp;gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Answer 9: The error comes when
you are trying to restore the DB which already exists. Use WITH REPLACE option
to restore the DB with a different name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Answer 10: Yes and No. This is
tricky question. If you are using repair option with CHECKDB then you have to
have the DB in single user mode. Following is the method to have your DB in a
single user mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Use master&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
go&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
sp_dboption dbname, single, true&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Following is the error which you
get when you run the DBCC CHECKDB with repair option w\o having the DB in
single user mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;The same is true for DBCC
CHECKDB also.&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
&lt;/span&gt;&lt;a href=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;color: #dd5533; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13pt;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_1&quot; o:spid=&quot;_x0000_i1025&quot; type=&quot;#_x0000_t75&quot; alt=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png?w=300&amp;amp;h=55&quot;
 href=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png&quot;
 style=&#39;width:225pt;height:41.25pt;visibility:visible;mso-wrap-style:square&#39;
 o:button=&quot;t&quot;&gt;
 &lt;v:imagedata src=&quot;file:///C:/Users/ajohri/AppData/Local/Temp/msohtmlclip1/02/clip_image002.png&quot;
  o:title=&quot;checkdb&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;Answer 11: There are many ways
but I prefer following method. Take a scenario when you want to find the error
log when the DB was put in a single user mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;CREATE TABLE #Errorlog (Logdate
Datetime, Processinfo VARCHAR(20),Text VARCHAR(2000))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 13.0pt;&quot;&gt;INSERT INTO #Errorlog&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
EXEC xp_readerrorlog&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
SELECT * FROM #Errorlog&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;
WHERE Text Like ‘%SINGLE%USER%’&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif;&quot;&gt;Answer 12: This is pretty important question. Even though you are able to answer technical questions but if you don&#39;t answer this question appropriately then your changes of getting hired could vanish. You should be able to explain how the learning from your current role will help in the new role. You should be able to answer how you will be valuable to the new role for which you are interviewing. If you are interviewing because you want to change your company for better prospects, i would insist you read&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://mssqlcorruptiontackle.blogspot.com/2017/07/ready-for-next-layoff.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Are you Ready for Layoff&lt;/span&gt;&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/07/how-to-improve-relation-with-your-boss.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;Boss Compatibility Matrix&lt;/span&gt;&lt;/a&gt;&amp;nbsp;articles which can give you right focus on changing the job. If you are changing your employer due to sexual harassment reasons then please read&amp;nbsp;&lt;a href=&quot;https://mssqlcorruptiontackle.blogspot.com/2017/06/how-to-handle-sexual-harassment-at.html&quot; style=&quot;box-sizing: inherit;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;background-color: red; color: yellow;&quot;&gt;How to Handle Sexual Harassment at Workplace&lt;/span&gt;&lt;/a&gt;&amp;nbsp;and spread the words for public awareness.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;span style=&quot;color: #303030; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 17.3333px;&quot;&gt;Most of the readers of this blog also read following interview questions so linking them here:&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/powershell-interview-questions-and.html&quot; style=&quot;box-sizing: inherit; font-family: tahoma, sans-serif; font-size: 17.3333px;&quot;&gt;&lt;span style=&quot;color: #3366ff;&quot;&gt;&lt;span style=&quot;box-sizing: inherit;&quot;&gt;Powershell Interview Questions and Answers&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/sql-azure-interview-questions-and.html&quot; style=&quot;box-sizing: inherit; font-family: tahoma, sans-serif; font-size: 17.3333px;&quot;&gt;&lt;span style=&quot;color: #3366ff;&quot;&gt;&lt;span style=&quot;box-sizing: inherit;&quot;&gt;SQL Azure Interview Questions and Answers Part – 1&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;box-sizing: inherit; color: #3366ff; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 17.3333px;&quot;&gt;&lt;span style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/sql-azure-interview-questions-and_04.html&quot; style=&quot;box-sizing: inherit; font-family: tahoma, sans-serif; font-size: 17.3333px;&quot;&gt;SQL Azure Interview Questions and Answers Part – 2&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;box-sizing: inherit; color: #3366ff; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 17.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Disclaimer: This is a personal blog. Any views or opinions
represented in this blog are personal and belong solely to the blog owner and
do not represent those of people, institutions or organizations that the owner
may or may not be associated with in professional or personal capacity, unless
explicitly stated. Any views or opinions are not intended to malign any
religion, ethnic group, club, organization, company, or individual.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; margin-bottom: .25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0in; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>https://mssqlcorruptiontackle.blogspot.com/2017/07/sql-server-dba-interview-questions.html</link><author>noreply@blogger.com (tuitionaffordable)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi87m-s8YFTXEXUvl2iAn_q8bIVfNWzOBfrD7q-NSBixL6_HxxO1uYTBHrKHEZWxZXAGhXCJh-FYyFkJs9Vba8g_EyQLJV36RojNqKmLNBV9n8EIShywVhgZtf8mZr6ogHGbwjZB3_doDa/s72-c/pexels-photo.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-8275080788697101250</guid><pubDate>Sun, 02 Jul 2017 20:57:00 +0000</pubDate><atom:updated>2017-07-02T20:52:57.245-07:00</atom:updated><title>Ready for the next layoff</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/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/AVvXsEi3lMSOiiGgwuUjqeSr6tz8FRZKb3eIZ1Ffsm2ZxqchHLjvcAFA2LPGK8Dt0jZ-Fm_1K9Q82Ur15f3LAROSO7YX22UNxztj3nqkgqpKKY_ayhfCmhdsxq3U8qiwY1qnZZ2Ulk2NocQg5FDE/s1600/businessman-2108029_1920.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1067&quot; data-original-width=&quot;1600&quot; height=&quot;426&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3lMSOiiGgwuUjqeSr6tz8FRZKb3eIZ1Ffsm2ZxqchHLjvcAFA2LPGK8Dt0jZ-Fm_1K9Q82Ur15f3LAROSO7YX22UNxztj3nqkgqpKKY_ayhfCmhdsxq3U8qiwY1qnZZ2Ulk2NocQg5FDE/s640/businessman-2108029_1920.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Layoff has become a norm. We observe that many companies fire bulk of employees. Automation, Robotics and Cloud business are important factors which are causing huge layoffs.&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is a new paradigm shift which all of us will be observing for a couple of years. How to perp yourself to make sure you are not laid off. To make sure that you are not the soft target you should know your &lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/07/how-to-improve-relation-with-your-boss.html&quot;&gt;Boss Compatibility Matrix&lt;/a&gt;. If your boss compatibility matrix is negative then you could be a soft target for the next layoff and hence work on the below guidance.&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Job-Flip Preparedness&amp;nbsp;Guidance&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;ol&gt;
&lt;li&gt;Are you relevant in the current market, if not then focus on your technical and domain skills?&lt;/li&gt;
&lt;li&gt;Are you prepared for the interview? Working and interview preparation are different so focus on your interview preparation. Good article on &lt;a href=&quot;https://mssqlcorruptiontackle.blogspot.com/2017/06/sql-server-dba-interview-questions-and.html&quot;&gt;&lt;span style=&quot;background: white; font-size: xx-small; font-weight: bold;&quot;&gt;INTERVIEW QUESTIONS AND ANSWERS&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;can give you a glimpse how interview could be different from office work.&lt;/li&gt;
&lt;li&gt;Are you expecting your bonus in next two or three months? If yes then are you aware how much bonus are you expecting? If it is not huge amount then better to flip the job now because after bonus cycle there will be more competition.&lt;/li&gt;
&lt;li&gt;Did you submit your resume to all the important job seeking sites? There are couple of sites which have better functionality than others eg some seekers like dice,&amp;nbsp;some like&amp;nbsp;careerbuilder while other like naukari.com. Great link to know about &lt;a href=&quot;http://theundercoverrecruiter.com/job-boards-useful-jobseekers/&quot; target=&quot;_blank&quot;&gt;which site is better&lt;/a&gt;. &lt;/li&gt;
&lt;li&gt;Are you ready to relocate? If not then you are limiting your options. If you are on rent then my suggestion is to remain open for the relocation if you don&#39;t have other huge dependencies.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Personal Guidance&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Do you have enough liquidity to survive if you are laid off? If you don&#39;t then you should figure out what expenditures could you stop, what are other options of saving, how could you avoid late fees on any credit card or utility bills.&lt;/li&gt;
&lt;li&gt;Do you have your own house or live on rent? If you live on rent then it will really bite your pocket right after lay off. Make sure that you provision enough money for at least next couple of months.&lt;/li&gt;
&lt;li&gt;Do you have a huge credit card bill to be paid? Make sure you transfer your bill to another card to buy time or pay at least minimum so that it doesn&#39;t attract the late fees.&lt;/li&gt;
&lt;li&gt;Are you married and have family? If yes then there could be other liabilities as well which you should focus on eg school fees, school session,&amp;nbsp;entertain wife and kids, visit close relatives etc.&lt;/li&gt;
&lt;li&gt;Are you healthy? If not then make sure you start healthy practices ie Yoga, multivitamin tablets etc which will help you manage stress.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br/&gt;
Disclaimer: This is a personal blog. Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated. Any views or opinions are not intended to malign any religion, ethnic group, club, organization, race, gender company, or individual.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #3d596d; font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;
Along with technical learning I would like to share some great articles for anyone interested in the betterment of his/her family life&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #3d596d; font-family: &amp;quot;Noto Serif&amp;quot;, Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 16px;&quot; /&gt;
&lt;ul style=&quot;background-color: white; color: #3d596d; direction: ltr; font-family: &amp;quot;Noto Serif&amp;quot;, Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 16px; line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0in 0px 0in 0.375in; padding: 0px 2.5em; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;
&lt;li style=&quot;border: none; color: #333333; margin: 0px; padding: 0.25em 0px; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/parental-guidance-how-to-control-your.html&quot; style=&quot;color: #015782; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11pt;&quot;&gt;Parental guidance how to control your kid in elementary school not obeying teacher&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; color: #333333; margin: 0px; padding: 0.25em 0px; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/parental-guidance-for-child-development_8.html&quot; style=&quot;color: #015782; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11pt;&quot;&gt;Parental guidance for child development post terrible twos&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; color: #333333; margin: 0px; padding: 0.25em 0px; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/parental-guidance-on-how-to-handle.html&quot; style=&quot;color: #015782; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11pt;&quot;&gt;Parental guidance on how to handle child when they show their first infatuation at elementary school&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; color: #333333; margin: 0px; padding: 0.25em 0px; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/how-to-handle-fit-of-temper-by-fixing.html&quot; style=&quot;color: #015782; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11pt;&quot;&gt;How to Handle fit of temper by fixing baby screen time&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; color: #333333; margin: 0px; padding: 0.25em 0px; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/are-words-important.html&quot; style=&quot;color: #015782; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11pt;&quot;&gt;Are Words Important&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br/&gt;
&lt;/div&gt;
</description><link>https://mssqlcorruptiontackle.blogspot.com/2017/07/ready-for-next-layoff.html</link><author>noreply@blogger.com (tuitionaffordable)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3lMSOiiGgwuUjqeSr6tz8FRZKb3eIZ1Ffsm2ZxqchHLjvcAFA2LPGK8Dt0jZ-Fm_1K9Q82Ur15f3LAROSO7YX22UNxztj3nqkgqpKKY_ayhfCmhdsxq3U8qiwY1qnZZ2Ulk2NocQg5FDE/s72-c/businessman-2108029_1920.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-3808681942151915189</guid><pubDate>Wed, 28 Jun 2017 19:37:00 +0000</pubDate><atom:updated>2017-06-28T12:38:25.598-07:00</atom:updated><title>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed</title><description>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. &amp;nbsp;Please review the following URL and make sure that it is spelled correctly.&lt;br /&gt;
&lt;br /&gt;
Just observed that the view name was Employees instead of Employee&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;This is how i fixed it @MVC project&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;@Html.ActionLink(&quot;Employees&quot;, &quot;Index&quot;, &quot;Employees&quot;)&amp;lt;/li&amp;gt;

&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2017/06/http-404-resource-you-are-looking-for.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-7502137945855736209</guid><pubDate>Wed, 28 Jun 2017 18:22:00 +0000</pubDate><atom:updated>2017-06-28T12:26:27.137-07:00</atom:updated><title>MVC Project - Enable background work to udpate the records</title><description>Below two commands are important in building MVC project on ASP .Net platform to make sure that with the first command you are able to change the schema of the objects and with the second command you are able to update the database.
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
Below Are these two commands&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;enable-migrations -EnableAutomaticMigrations&amp;nbsp;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Update-Database&amp;nbsp;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Actually enable-migrations -EnableAutomaticMigrations -&amp;gt; This allows visual studio to keep track of the changes made to the db</description><link>https://mssqlcorruptiontackle.blogspot.com/2017/06/mvc-project-enable-background-work-to.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-192421064402882435</guid><pubDate>Tue, 27 Jun 2017 23:45:00 +0000</pubDate><atom:updated>2017-06-27T16:49:35.420-07:00</atom:updated><title>Unspecified error Exception 0x80004005 (E_FAIL)</title><description>There could be many reasons why we get below error&lt;br /&gt;
&lt;br /&gt;
Unspecified error Exception 0x80004005 (E_FAIL)&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
One of them i observed was that when i try to create a ASP .NET project at the onedrive directly. &amp;nbsp;When i try this i get below error HRESULT: 0x80004005.&lt;br /&gt;
&lt;br /&gt;
To avoid this i created my project on local folder and it worked. Now after you create on local, transfer this to the onedrive and work on your ASP .NET project.
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2017/06/unspecified-error-exception-0x80004005.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-6296247584842578164</guid><pubDate>Tue, 27 Jun 2017 23:11:00 +0000</pubDate><atom:updated>2017-06-27T16:14:46.556-07:00</atom:updated><title>CS0234 The type or namespace name does not exist in the namespace (are you missing an assembly reference?)</title><description>The description of the message informs you which is the missing assembly reference. In my case it was System.Data&lt;br /&gt;
&lt;br /&gt;
This is how you fix the assembly reference-&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
Look at the error -&amp;gt; my error was &quot;The type or namespace name &#39;Entity&#39; doesn&#39;t exist in the namespace System.Data.&lt;br /&gt;
It means it is asking me to add System.Data.Entity library explicitly&lt;br /&gt;
Go to your project&lt;br /&gt;
Right click on References&lt;br /&gt;
Add Reference -&amp;gt; in my case it was System.Data.Entity
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2017/06/cs0234-type-or-namespace-name-does-not.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-7828064249812045771</guid><pubDate>Mon, 05 Jun 2017 01:41:00 +0000</pubDate><atom:updated>2017-07-03T11:09:56.778-07:00</atom:updated><title>SQL SERVER DBA “INTERVIEW QUESTIONS AND ANSWERS”</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;4174118532&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;

&lt;br /&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Following are some “sql server dba interview questions” to help you in interviews.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
&lt;a href=&quot;https://mssqlcorruptiontackle.blogspot.com/2017/06/how-to-handle-sexual-harassment-at.html&quot; rel=&quot;noopener noreferrer&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot; target=&quot;_blank&quot;&gt;How to Handle Sexual Harassment at Workplace&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
I have got many requests to publish first set of MSSQL DBA Interview&amp;nbsp;questions. I observed that many interviewers are interested in finding out whether you worked on DB corruption or not. Here you go&amp;nbsp;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2010/12/ms-sql-corruption.html&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;http://mssqlcorruptiontackle.blogspot.com/2010/12/ms-sql-corruption.html&amp;nbsp;&lt;/a&gt;. Go ahead with ten most important Microsoft&amp;nbsp;SQL Server DBA Interview Questions.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Interviewers are testing at least basic knowledge of clustering. Read following wires to be ready for this surprise:&amp;nbsp;&lt;a href=&quot;http://buildingcareerforu.blogspot.com/2011/01/mssql-interview-question-clustering.html&quot; rel=&quot;noopener noreferrer&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot; target=&quot;_blank&quot; title=&quot;MSSQL Interview Question Clustering- Part1&quot;&gt;MSSQL Interview Question Clustering- Part1&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;http://buildingcareerforu.blogspot.com/2011/01/mssql-interview-question-clustering_27.html&quot; rel=&quot;noopener noreferrer&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot; target=&quot;_blank&quot; title=&quot;Part2&quot;&gt;Part2&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;http://buildingcareerforu.blogspot.com/2011/01/mssql-interview-question-clustering_2865.html&quot; rel=&quot;noopener noreferrer&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot; target=&quot;_blank&quot; title=&quot;Part3&quot;&gt;Part3&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href=&quot;http://buildingcareerforu.blogspot.com/2011/01/mssql-interview-question-clustering_2337.html&quot; rel=&quot;noopener noreferrer&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot; target=&quot;_blank&quot; title=&quot;Part4&quot;&gt;Part4&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; color: #333333; font-family: karla, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;What is the difference between lock, block and deadlock?&lt;/li&gt;
&lt;li&gt;What is the meaning of lock escalation and why/how to stop this?&lt;/li&gt;
&lt;li&gt;How to truncate the log in sql server 2008?&lt;/li&gt;
&lt;li&gt;How to Start Service Using Powershell Commands?&lt;/li&gt;
&lt;li&gt;What changes in the front end code is needed if mirroring is implemented for the high availability?&lt;/li&gt;
&lt;li&gt;Where does the copy job runs in the logshipping… Primary or secondary?&lt;/li&gt;
&lt;li&gt;What are the ways to find what code is running for any spid?&lt;/li&gt;
&lt;li&gt;When you get following error? Error 3154: The backup set holds a backup of a database other than the existing database.&lt;/li&gt;
&lt;li&gt;Does DBCC CHECKDB requires DB to be in SINGLE_USER mode?&lt;/li&gt;
&lt;li&gt;How to view the error log for any specific instance?&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Want to prepare in ten minutes - read article &lt;/span&gt;&lt;b&gt;&lt;a href=&quot;https://mssqlcorruptiontackle.blogspot.com/2017/07/sql-server-dba-interview-questions.html&quot; target=&quot;_blank&quot;&gt;Interview and Beyond in 10 Min&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
———————————————-&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Answer 1:&lt;br /&gt;
Lock: DB engine locks the rows/page/table to access the data which is worked upon according to the query.&lt;br /&gt;
Block: When one process blocks the resources of another process then blocking happens. Blocking can be identified by using&lt;br /&gt;
SELECT * FROM sys.dm_exec_requests where blocked &amp;lt;&amp;gt; 0&lt;br /&gt;
SELECT * FROM master..sysprocesses where blocked &amp;lt;&amp;gt; 0&lt;br /&gt;
Deadlock: When something happens as follows: Error 1205 is reported by SQL Server for deadlock.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
&lt;a href=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;aligncenter size-medium wp-image-42&quot; data-attachment-id=&quot;42&quot; data-comments-opened=&quot;1&quot; data-image-description=&quot;&quot; data-image-meta=&quot;{&amp;quot;aperture&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;credit&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;camera&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;caption&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;created_timestamp&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;copyright&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;focal_length&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;iso&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;shutter_speed&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;title&amp;quot;:&amp;quot;&amp;quot;}&quot; data-image-title=&quot;Deadlock&quot; data-large-file=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png?w=488&quot; data-medium-file=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png?w=300&amp;amp;h=243&quot; data-orig-file=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png&quot; data-orig-size=&quot;488,396&quot; data-permalink=&quot;https://tuitionaffordable.com/sql-server-dba-interview-questions/deadlock-2/&quot; height=&quot;243&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; src=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png?w=300&amp;amp;h=243&quot; srcset=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png?w=300&amp;amp;h=243 300w, https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png?w=150&amp;amp;h=122 150w, https://tuitionaffordable.files.wordpress.com/2010/09/deadlock1.png 488w&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; box-shadow: rgb(255, 255, 255) 0px 0px 0px 6px; box-sizing: inherit; clear: both; display: block; height: auto; margin-left: auto; margin-right: auto; max-width: 100%;&quot; title=&quot;Deadlock&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Answer 2: When the DB engine would try to lock page first and then it escalates locks to page and then table. If we&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
understand that whole table would be locked for the processing thenn this is better to use TABLOCK hint and get complete table blocked. This is a nice way to avoid the wastage of sql server DB engine processing for lock escalation. Somewhere you may also need to use TABLOCKX when you want an exclusive lock on the table in the query.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Answer 3: BACKUP LOG TestDB WITH TRUNCATE_ONLY is gone. SQL server doesn’t allow you to truncate the log now otherwise whole purpose of a DB is defeated. Read article&amp;nbsp;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2010/12/mssql-server-dbcc-loginfo-status-2-log.html&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;http://mssqlcorruptiontackle.blogspot.com/2010/12/mssql-server-dbcc-loginfo-status-2-log.html&amp;nbsp;&lt;/a&gt;to surprise interviewer with your answer. You have to make sure whether you need log or not. If you don’t need log then have the recovery model simple instead of full. If you don’t want the log to be accumulated in some particular bulk logging then change the recovery model BULK LOGGED for that duration and take one tlog backup just before and after this change. I shall discuss this later in my later blog. BACKUP LOG command backs up the t-log and frees the space in the log file.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Answer 4:&amp;nbsp;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/starting-service-using-powershell.html&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;How to Start Service Using Powershell Commands&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Answer 5: You need to add only FAILOVER PARTNER information in your front end code. “Data Source=ServerA;Failover Partner=ServerB;Initial Catalog=AdventureWorks;Integrated Security=True;”.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Answer 6: Secondary server. This question is basically asked to find out whether you have a handson work on logshipping or not. I came through many cases when candidates have mentioned logshipping experience in many projects and they can’t answer this question. I never selected any candidate if he/she don’t answer these kind of small questions.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Answer 7: Well there are many ways to do this.&lt;br /&gt;
1. find the spid which you want to analyze. An spid is assigned as soon as a client connection is established with the SQL server. To find the spid you can run any of the following command:&lt;br /&gt;
a) SP_WHO2 ‘ACTIVE’ — This will give you only active spids.&lt;br /&gt;
b) SELECT * FROM sys.dm_exec_requests&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
2. Get the spid from above two queries and use any of the following query to get what is happening behind that spid.&lt;br /&gt;
a) dbcc inputbuffer(&amp;lt;spid&amp;gt;)&lt;br /&gt;
b) sql2005 and sql2008 – SELECT * FROM sys.dm_exec_sql_text(&amp;lt;sqlhandle of that spid&amp;gt;)&lt;br /&gt;
c) sql2005 and sql2008 – SELECT * FROM fn_get_sql(&amp;lt;sqlhandle of that spid&amp;gt;)&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Answer 8: The error comes when you are trying to restore the DB which already exists. Use WITH REPLACE option to restore the DB with a different name.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Answer 9: Yes and No. This is tricky question. If you are using repair option with CHECKDB then you have to have the DB in single user mode. Following is the method to have your DB in a single user mode.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Use master&lt;br /&gt;
go&lt;br /&gt;
sp_dboption dbname, single, true&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Following is the error which you get when you run the DBCC CHECKDB with repair option w\o having the DB in single user mode.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
The same is true for DBCC CHECKDB also.&lt;br /&gt;
&lt;a href=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;aligncenter size-medium wp-image-44&quot; data-attachment-id=&quot;44&quot; data-comments-opened=&quot;1&quot; data-image-description=&quot;&quot; data-image-meta=&quot;{&amp;quot;aperture&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;credit&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;camera&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;caption&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;created_timestamp&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;copyright&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;focal_length&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;iso&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;shutter_speed&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;title&amp;quot;:&amp;quot;&amp;quot;}&quot; data-image-title=&quot;checkdb&quot; data-large-file=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png?w=531&quot; data-medium-file=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png?w=300&amp;amp;h=55&quot; data-orig-file=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png&quot; data-orig-size=&quot;531,98&quot; data-permalink=&quot;https://tuitionaffordable.com/sql-server-dba-interview-questions/checkdb/&quot; height=&quot;55&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; src=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png?w=300&amp;amp;h=55&quot; srcset=&quot;https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png?w=300&amp;amp;h=55 300w, https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png?w=150&amp;amp;h=28 150w, https://tuitionaffordable.files.wordpress.com/2010/09/checkdb.png 531w&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; box-shadow: rgb(255, 255, 255) 0px 0px 0px 6px; box-sizing: inherit; clear: both; display: block; height: auto; margin-left: auto; margin-right: auto; max-width: 100%;&quot; title=&quot;checkdb&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
Answer 10: There are many ways but I prefer following method. Take a scenario when you want to find the error log when the DB was put in a single user mode.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
CREATE TABLE #Errorlog (Logdate Datetime, Processinfo VARCHAR(20),Text VARCHAR(2000))&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
INSERT INTO #Errorlog&lt;br /&gt;
EXEC xp_readerrorlog&lt;br /&gt;
SELECT * FROM #Errorlog&lt;br /&gt;
WHERE Text Like ‘%SINGLE%USER%’&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Most of the readers of this blog also read following interview questions so linking them here:&lt;br /&gt;
&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/powershell-interview-questions-and.html&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; color: #3366ff;&quot;&gt;Powershell Interview Questions and Answers&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/sql-azure-interview-questions-and.html&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; color: #3366ff;&quot;&gt;SQL Azure Interview Questions and Answers Part – 1&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/sql-azure-interview-questions-and_04.html&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; color: #3366ff;&quot;&gt;SQL Azure Interview Questions and Answers Part – 2&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; margin-bottom: 1.5em; padding: 0px;&quot;&gt;
Read following blogs to surprise your interviewer and create chances to get into IT sector:&lt;/div&gt;
&lt;ol style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1.5em 3em; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;https://tuitionaffordable.wordpress.com/sql-server-dba-interview-questions&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;https://tuitionaffordable.wordpress.com/sql-server-dba-interview-questions/&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2010/12/ms-sql-corruption.html&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;http://mssqlcorruptiontackle.blogspot.com/2010/12/ms-sql-corruption.html&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2010/12/sql-server-2008-r2-foreign-key-delete.html&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;http://mssqlcorruptiontackle.blogspot.com/2010/12/sql-server-2008-r2-foreign-key-delete.html&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2010/12/mssql-server-dbcc-loginfo-status-2-log.html&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;http://mssqlcorruptiontackle.blogspot.com/2010/12/mssql-server-dbcc-loginfo-status-2-log.html&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2010/12/ssrs-report-adding-header-and-footer.html&quot; style=&quot;background-color: transparent; border-bottom: 2px solid transparent; box-sizing: inherit; color: #999999; text-decoration-line: none; transition: border-bottom-color 0.2s;&quot;&gt;http://mssqlcorruptiontackle.blogspot.com/2010/12/ssrs-report-adding-header-and-footer.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Along with technical
learning I would like to share some great articles for anyone interested in the
betterment of his/her family life&lt;/div&gt;
&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: .375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;
&lt;li style=&quot;margin-bottom: 0; margin-top: 0; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/parental-guidance-how-to-control-your.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0pt;&quot;&gt;Parental guidance how to
     control your kid in elementary school not obeying teacher&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0; margin-top: 0; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/parental-guidance-for-child-development_8.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0pt;&quot;&gt;Parental guidance for child
     development post terrible twos&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0; margin-top: 0; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/parental-guidance-on-how-to-handle.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0pt;&quot;&gt;Parental guidance on how to
     handle child when they show their first infatuation at elementary school&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0; margin-top: 0; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/how-to-handle-fit-of-temper-by-fixing.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0pt;&quot;&gt;How to Handle fit of temper
     by fixing baby screen time&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0; margin-top: 0; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/are-words-important.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0pt;&quot;&gt;Are Words Important&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;ol style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: Karla, &amp;quot;Helvetica Neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1.5em 3em; padding: 0px;&quot;&gt;
&lt;/ol&gt;
&lt;/div&gt;
</description><link>https://mssqlcorruptiontackle.blogspot.com/2017/06/sql-server-dba-interview-questions-and.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-3966109970863118890</guid><pubDate>Sun, 04 Jun 2017 18:32:00 +0000</pubDate><atom:updated>2017-07-02T20:46:53.211-07:00</atom:updated><title>How to Handle Sexual Harassment at workplace</title><description>Sexual harassment at work place is prevalent. It can be termed as bullying, unwelcome sexual advances and asking sexual favors at workplace. Harassment can happen to anyone and probability of recurrence increases if not tackled professionally. This is often observed that we don&#39;t talk enough on this topic. Some EEOC stats as per &lt;a href=&quot;https://en.wikipedia.org/wiki/Sexual_harassment&quot; target=&quot;_blank&quot;&gt;link&lt;/a&gt;&lt;br /&gt;
&lt;ul style=&quot;color: #3d596d; font-family: &amp;quot;Noto Serif&amp;quot;, Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;79% of victims are women, 21% are men.&lt;/li&gt;
&lt;li&gt;51% are harassed by a supervisor.&lt;/li&gt;
&lt;li&gt;Business, trade, banking, and finance are the biggest industries where sexual harassment occurs.&lt;/li&gt;
&lt;li&gt;12% received threats of termination if they did not comply with their requests.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;color: #3d596d; font-family: &amp;quot;Noto Serif&amp;quot;, Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 16px; line-height: inherit; margin-bottom: 24px;&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How to handle the sexual harassment-&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d596d; font-family: &amp;quot;Noto Serif&amp;quot;, Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 16px; line-height: inherit; margin-bottom: 24px;&quot;&gt;
&lt;ol&gt;
&lt;li&gt;This needs to be documented. Victim should send out a mail to the offender informing that she/he is shocked with his/her actions on date at particular venue. I discussed this situaltion with my relatives and they asked me to inform you about my feelings. The victim has to be very professional.&lt;/li&gt;
&lt;li&gt;Victim needs to make sure that he seek for the read receipt of the mail, if possible. This will help procure proof against the offender in case he/she doesn&#39;t respond the mail.&lt;/li&gt;
&lt;li&gt;After you have proof and you shared your reluctance/objection towards offender&#39;s actions, feel free to send out mail to HR/skip if it repeats.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #3d596d; font-family: &amp;quot;Noto Serif&amp;quot;, Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 16px; line-height: inherit; margin-bottom: 24px;&quot;&gt;
There are some weird advices from colleagues to tackle this situation. It makes the situation worse than before. Not to do:&lt;/div&gt;
&lt;div style=&quot;color: #3d596d; font-family: &amp;quot;Noto Serif&amp;quot;, Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 16px; line-height: inherit; margin-bottom: 24px;&quot;&gt;
1. Call police especially when you don&#39;t have proof.&lt;br /&gt;
2. Send out mail to skip or HR without any hard proof.&lt;br /&gt;
3. Find out her/his spouse and set-up a sync up.&lt;/div&gt;
&lt;div style=&quot;color: #3d596d; font-family: &amp;quot;Noto Serif&amp;quot;, Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 16px; line-height: inherit;&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
Disclaimer: This is a personal blog. Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated. Any views or opinions are not intended to malign any religion, ethnic group, club, organization, company, or individual.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Calibri; font-size: 11.0pt; margin: 0in;&quot;&gt;
Along with technical
learning I would like to share some great articles for anyone interested in the
betterment of his/her family life&lt;/div&gt;
&lt;br /&gt;
&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: .375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;
&lt;li style=&quot;margin-bottom: 0; margin-top: 0; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/parental-guidance-how-to-control-your.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0pt;&quot;&gt;Parental guidance how to
     control your kid in elementary school not obeying teacher&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0; margin-top: 0; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/parental-guidance-for-child-development_8.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0pt;&quot;&gt;Parental guidance for child
     development post terrible twos&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0; margin-top: 0; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/parental-guidance-on-how-to-handle.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0pt;&quot;&gt;Parental guidance on how to
     handle child when they show their first infatuation at elementary school&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0; margin-top: 0; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/how-to-handle-fit-of-temper-by-fixing.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0pt;&quot;&gt;How to Handle fit of temper
     by fixing baby screen time&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0; margin-top: 0; vertical-align: middle;&quot;&gt;&lt;a href=&quot;http://improverelationsusingrightwords.improverelationsusingrightwords.com/2017/06/are-words-important.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;; font-size: 11.0pt;&quot;&gt;Are Words Important&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2017/06/how-to-handle-sexual-harassment-at.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-8377977136509875260</guid><pubDate>Fri, 01 Nov 2013 06:18:00 +0000</pubDate><atom:updated>2017-06-04T11:55:20.543-07:00</atom:updated><title>Powershell Script to get RAM information</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;4174118532&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
Powershell makes it easy to get information from remote servers.&lt;br /&gt;
&lt;br /&gt;
Below is the query to &quot;calculate RAM using powershell&quot; of all the remote servers you are connected with-&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;Step1-&lt;/span&gt;&lt;/strong&gt; &lt;span style=&quot;color: #274e13;&quot;&gt;Create the list of all the servers in a notepad with name &quot;serverlist.txt&quot;. I have saved this file on location &quot;D:\Powershell&quot; you can change it with your own location.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Step2-&lt;/strong&gt; &lt;span style=&quot;color: #274e13;&quot;&gt;Execute below script-&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;ecxMsoNormal&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;clear-host&lt;br /&gt;$servers = Get-Content &quot;D:\PSScripts\bstServerlist.txt&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;$SystemInfo = &quot;D:\PSScripts\bstSystemInfo.txt&quot;&lt;br /&gt;$ErrorInfo = &quot;D:\PSScripts\bstErrorInfo.txt&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;FOREACH($server in $servers)&lt;br /&gt;{&lt;br /&gt;$System = gwmi -computer $server -class win32_computersystem -ErrorVariable MyError -ErrorAction Silentlycontinue&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
$Ram = [math]::round($System.Totalphysicalmemory/(1024*1024*1024),2)&lt;br /&gt;write-output &quot;$server - $Ram &quot; | out-file -filepath $SystemInfo -append&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;ecxMsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ecxMsoNormal&quot;&gt;
You can also save the script in a notepad and save it with extension &quot;.ps1&quot;. When you will execute the file&amp;nbsp;RAM information&amp;nbsp;for all the servers in the server list will store in the RAMInformation file.&lt;/div&gt;
&lt;div class=&quot;ecxMsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;ecxMsoNormal&quot;&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;times new roman&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>https://mssqlcorruptiontackle.blogspot.com/2013/10/powershell-script-to-get-ram-information.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-4921642897512233783</guid><pubDate>Fri, 01 Nov 2013 06:04:00 +0000</pubDate><atom:updated>2013-10-31T23:09:21.836-07:00</atom:updated><title>robocopy data transfer for only new updates</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Every DBA knows about of these asks when we need to transfer the updates and not the complete data every time. eg Logshipping transaction logs need to be copied between two cluster. How to achieve this goal.&lt;br /&gt;
&lt;br /&gt;
robocopy &lt;a href=&quot;file://sourceserver/Sourcefolder&quot;&gt;\\SourceServer\Sourcefolder&lt;/a&gt; &lt;a href=&quot;file://destinationserver/Destinationfolder&quot;&gt;\\DestinationServer\Destinationfolder&lt;/a&gt; /Z /S /MIR&lt;br /&gt;
&lt;br /&gt;
Switch /MIR is to apply only new updates.&lt;br /&gt;Switch /S is to apply all the file levels -recursive in the folder.&lt;br /&gt;
&lt;br /&gt;

Most of the readers of this blog also read &quot;robocopy data transfer is very sluggish&quot; to understand the use of /Z in this scenario so linking them here:&lt;br /&gt;
&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2013/10/robocopy-data-transfer-is-very-sluggish.html&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;robocopy data transfer is very sluggish&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;

Share your feedback which is very important to make the blogs more informative.&lt;/div&gt;
</description><link>https://mssqlcorruptiontackle.blogspot.com/2013/10/robocopy-data-transfer-for-only-new.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-7701755941376020103</guid><pubDate>Fri, 01 Nov 2013 05:55:00 +0000</pubDate><atom:updated>2013-10-31T22:57:01.377-07:00</atom:updated><title>robocopy data transfer is very sluggish</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;

&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We often see DBAs talking that the robocopy data transfer is very sluggish.&lt;br /&gt;
&lt;br /&gt;
Recently I was involved in a project where 14 TB data was being transferred. My DBA informed me that the data transfer rate is just 325 KB/sec. With this rate of transfer it would take 1.4 years to transfer 14 TB of data. There was an absolute need fix either n\w design or robocopy. I chose to review robocopy command.&lt;br /&gt;
&lt;br /&gt;
My DBA was using command with /Z option and without any /MT multi threading. The original command looked like as follows:&lt;br /&gt;
&lt;br /&gt;
robocopy &lt;a href=&quot;file://sourceserver/Sourcefolder&quot;&gt;\\SourceServer\Sourcefolder&lt;/a&gt; &lt;a href=&quot;file://destinationserver/Destinationfolder&quot;&gt;\\DestinationServer\Destinationfolder&lt;/a&gt; /Z&lt;br /&gt;
&lt;br /&gt;
I recommended following changes and confirm the speed&lt;br /&gt;
&lt;br /&gt;
robocopy &lt;a href=&quot;file://sourceserver/Sourcefolder&quot;&gt;\\SourceServer\Sourcefolder&lt;/a&gt; &lt;a href=&quot;file://destinationserver/Destinationfolder&quot;&gt;\\DestinationServer\Destinationfolder&lt;/a&gt; /MT:64&lt;br /&gt;
/Z actually slows the speed a lot. This is absolutely great option to avoid any data discrepancy but I opted not to use this option and in case of any failures, the copy will be retried.&lt;br /&gt;
&lt;br /&gt;
The speed was 595 MB/sec after this change. The copy time decreased from 1.4 years to whopping 6.8 hours. I am completely ok to retry this if any bit transfer is flipped because of n\w issue and causes corruption.&lt;/div&gt;
</description><link>https://mssqlcorruptiontackle.blogspot.com/2013/10/robocopy-data-transfer-is-very-sluggish.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-6800356648705259074</guid><pubDate>Tue, 29 Oct 2013 18:29:00 +0000</pubDate><atom:updated>2013-10-29T11:46:31.531-07:00</atom:updated><title>The service was started and then stopped</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;

&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Sql server agent service issue: My junior DBA met me on an interesting issue. Sql service account is not able to start the Sql server agent whereas Sql server service is running. When he tries to start sql agent service then he gets following issue:
&lt;br /&gt;

“The request failed or the service didn’t respond in a timely fashion. Consult the event log or other application error logs for details.”

&lt;br /&gt;
“The service was started and then stopped”

&lt;br /&gt;
Let’s look at the errorlogs from I:\MSSQL10.MSSQLSERVER\MSSQL\LOG. Following error is observed:

&lt;br /&gt;
Here is the actual problem: “The service account phx\_ctpfort doesn&#39;t have perms to start Eventlog service.” 

&lt;br /&gt;
Lets look at the permsisions:
&lt;br /&gt;


&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;1. Run -&gt; cmd -&gt; rsop.msc and press enter. &lt;/li&gt;
&lt;li&gt;2. Click on Windows settings.&lt;/li&gt;
&lt;li&gt;3. Click on System services.&lt;/li&gt;
&lt;li&gt;4. Click the properties on Windows event log.&lt;/li&gt;
&lt;li&gt;5. Click on View security to look for the service account under which the sql service is running.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;

We need to have it added there. Once added, the problem was resolved.
&lt;br /&gt;

Please share your feedback and let me know if the blog was useful.&lt;/div&gt;&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2013/10/the-service-was-started-and-then-stopped.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-5867596834945081880</guid><pubDate>Mon, 28 Oct 2013 19:47:00 +0000</pubDate><atom:updated>2013-10-28T12:51:43.155-07:00</atom:updated><title>SCOM Powershell Queries</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;

Recently, I was thrown in a drill where SCOM health needs to be verified.&lt;br /&gt;
&lt;br /&gt;
&quot;What is SCOM&quot;: SCOM is a server/client model that monitors the server health. Server heath can be categorized on multiple criteria. These criteria could be written in MP &lt;br /&gt;
(management pack) and then the servers are monitored on the basis of these parameters.&lt;br /&gt;
It would have been impossible for me to monitor 800+ servers without SCOM powershell commands. &lt;br /&gt;
&lt;br /&gt;
Following are some commands where servers could be categorized in three &lt;br /&gt;
different states. The powershell command is also written against each and every category.&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;# of Servers where SCOM HeartBeat is Healthy&amp;nbsp;get-scomagent | Where-Object {$_.healthstate -eq &quot;success&quot;} | Measure&lt;/li&gt;
&lt;li&gt;# of Servers where SCOM Heartbeat has Issues&amp;nbsp;get-scomagent | Where-Object {$_.healthstate -eq &quot;uninitialized&quot;} | Measure&lt;/li&gt;
&lt;li&gt;# of Servers which are not healthy in SCOM&amp;nbsp;get-scomagent | Where-Object {$_.healthstate -eq &quot;Error&quot;} | Measure&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Please share your feedback which help me improve my articles.&lt;/div&gt;
</description><link>https://mssqlcorruptiontackle.blogspot.com/2013/10/scom-powershell-queries.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-6751791098404960497</guid><pubDate>Mon, 11 Apr 2011 20:10:00 +0000</pubDate><atom:updated>2011-04-11T13:14:36.936-07:00</atom:updated><title>Script of Getting OS Version using Powershell</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;4174118532&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
Powershell makes it easy to get information from remote servers.&lt;br /&gt;
&lt;br /&gt;
Below is the query to find OS Version of all the remote servers you are connected with-&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;Step1-&lt;/span&gt;&lt;/strong&gt; &lt;span style=&quot;color: #274e13;&quot;&gt;Create the list of all the servers in a notepad with name &quot;serverlist.txt&quot;. I have saved this file on location &quot;D:\Powershell&quot; you can change it with your own location.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Step2-&lt;/strong&gt; &lt;span style=&quot;color: #274e13;&quot;&gt;Execute below script-&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;ecxMsoNormal&quot;&gt;&lt;/div&gt;&lt;span style=&quot;color: blue;&quot;&gt;PS C:\Windows\system32&amp;gt;$serverlist = Get-Content &quot;D:\Powershell\serverlist.txt&quot; &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;ecxMsoNormal&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;ecxMsoNormal&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;PS C:\Windows\system32&amp;gt;foreach($server in $serverlist)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;ecxMsoNormal&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;ecxMsoNormal&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;$serverversion = Get-WmiObject -computer $server -cl Win32_OperatingSystem&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;ecxMsoNormal&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;write-output $server, $serverversion.version | out-file &quot;D:\Powershell\OSVersion.txt&quot; -append&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;ecxMsoNormal&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;ecxMsoNormal&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;ecxMsoNormal&quot;&gt;You can also save the script in a notepad and save it with extension &quot;.ps1&quot;. When you will execute the file OS Version for all the servers in the server list will store in the OSVersion file.&lt;/div&gt;&lt;div class=&quot;ecxMsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;ecxMsoNormal&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/04/script-of-getting-os-version-using.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-1387785677835721114</guid><pubDate>Sat, 09 Apr 2011 16:36:00 +0000</pubDate><atom:updated>2011-04-09T09:36:42.739-07:00</atom:updated><title>Error 1067: The cluster service is stopped on passive node of my two node sql cluster. It throws following error when I try to start this:</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This is found that the cluster service in one of the passive stops. This throws following error when I try to start this.&lt;br /&gt;
&lt;br /&gt;
Error 1067: The process terminated unexpectedly&lt;br /&gt;
&lt;br /&gt;
I verified the password under which this cluster service is running. This account is perfect. So there should be some other problem.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s go ahead and see the problem in the cluster.log file.&lt;br /&gt;
&lt;br /&gt;
Info from %WINDIR%\Cluster\cluster.log is as follows:&lt;br /&gt;
&lt;br /&gt;
WARN [EVT] EvtBroadcaster: EvPropEvents for node 2 failed. status 1727&lt;br /&gt;
WARN [NM] RpcExtErrorInfo: Error info not found.&lt;br /&gt;
&lt;br /&gt;
Error from clusterlog&lt;br /&gt;
&lt;br /&gt;
Error: Failed to read (sector 12), error 170. and Failed to write (sector 12), error 170.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. started from cmd. net start clussvc&lt;br /&gt;
2. The Windows Firewall/Internet Connection Sharing service should neither be enabled nor set to start automatically.&lt;br /&gt;
&lt;br /&gt;
FmGetQuorumResource failed, error 170. Failed to read. Failed to form cluster, status 5086.&lt;br /&gt;
&lt;br /&gt;
Follwoing was the problem:&lt;br /&gt;
&lt;br /&gt;
The Admin NIC threw an error. This caused the netowrk connectionos in the cluster disabled. I disabled and enabled the NIC and this started working.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;tuitionaffordable&lt;/span&gt;&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/04/error-1067-cluster-service-is-stopped.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-914398647888044212</guid><pubDate>Sat, 19 Feb 2011 13:37:00 +0000</pubDate><atom:updated>2011-02-19T05:39:05.266-08:00</atom:updated><title>Sql Server Error 8951 Data row does not have a matching index row in the index</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;The error 8951 emerges most often when there is a duplicate row exists on PK. You would not be able to find the duplicate row &lt;br /&gt;
&lt;br /&gt;
till you drop the PK and try as follows:&lt;br /&gt;
&lt;br /&gt;
Let&#39;s Understand: There is a simple table EmployeeInfo where the PK is created on Empid, Rid, KeyInfo, DateTimeSlot columns. There are duplicate rows in the table for the columns on which PK is established but following query throws only one value for the following query even though two rows exist:&lt;br /&gt;
&lt;br /&gt;
select Empid, Rid, KeyInfo, DateTimeSlot, count(1)&lt;br /&gt;
from Tuitionaffordable..EmployeeInfo&lt;br /&gt;
GROUP BY Empid, Rid, KeyInfo, DateTimeSlot&lt;br /&gt;
HAVING COUNT(1) &amp;gt; 1&lt;br /&gt;
&lt;br /&gt;
Let&#39;s drop the PK and run the above query again. This shows me duplicate values for the columns on which PK is created. You need to filter the bad data out or modify these rows to avoid this info. &lt;br /&gt;
&lt;br /&gt;
Let&#39;s again restore the same DB on a Test server and use following command for any specific value where this had duplicate rows:&lt;br /&gt;
&lt;br /&gt;
select Empid, Rid, KeyInfo, DateTimeSlot, count(1)&lt;br /&gt;
from Tuitionaffordable..EmployeeInfo&lt;br /&gt;
where LTRIM(RTRIM(Empid)) = 97&lt;br /&gt;
and LTRIM(RTRIM(Rid))=2&lt;br /&gt;
and KeyInfo = &#39;ACAF387865567973E43C3ADB96C&#39;&lt;br /&gt;
and DateTimeSlot= &#39;2011-01-29 00:00:00.000&#39;&lt;br /&gt;
&lt;br /&gt;
This doesn&#39;t show the duplicate rows but following query will show you the data &lt;br /&gt;
&lt;br /&gt;
select Empid, Rid, KeyInfo, DateTimeSlot,count(bit_delete)&lt;br /&gt;
from Tuitionaffordable..EmployeeInfo&lt;br /&gt;
where LTRIM(RTRIM(Empid)) = 97&lt;br /&gt;
and LTRIM(RTRIM(Rid))=2&lt;br /&gt;
and LTRIM(RTRIM(KeyInfo)) = &#39;ACAF31DBC69556EA9A973E43C3ADB96C&#39;&lt;br /&gt;
and DateTimeSlot= &#39;2011-01-29 00:00:00.000&#39;&lt;br /&gt;
GROUP BY Empid, Rid, KeyInfo, DateTimeSlot&lt;br /&gt;
&lt;br /&gt;
Following is the data:&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
Empid Rid KeyInfo DateTimeSlot (No column name)&lt;br /&gt;
97 2 ACAF387865567973E43C3ADB96C 2011-01-29 00:00:00.000 1&lt;br /&gt;
97 2 ACAF387865567973E43C3ADB96C 2011-01-29 00:00:00.000 1&lt;br /&gt;
&lt;br /&gt;
The problem is in your DateTimeSlot column. drop the PK and this will catch where your duplicate data is.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/js/r20101117/r20110208/show_ads_impl.js&quot;&gt;
&lt;/script&gt;&lt;script&gt;
google_protectAndRun(&quot;ads_core.google_render_ad&quot;, google_handleError, google_render_ad);
&lt;/script&gt; &lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/02/sql-server-error-8951-data-row-does-not.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-6996802994954780677</guid><pubDate>Tue, 08 Feb 2011 22:16:00 +0000</pubDate><atom:updated>2011-02-08T19:17:11.476-08:00</atom:updated><title>Restoring the stripped backup Files</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong&gt;The blog can give you good understanding on &quot;MSSQLServer stripped backup&quot;.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;Why anyone wants to go to stripped backups?&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;The answer is that when you have your drives on SAN and you want to use the I\O &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
from each more than one SAN while taking the backup then this is a good option to go for the stripped backups. Another point is that in some scenario the free space in one drive is not enough to accomodate your complete backup file. &lt;br /&gt;
&lt;br /&gt;
After you are clear on why you decide stripping the backup file, lets talk on how to stripe the backupfile.&lt;br /&gt;
&lt;br /&gt;
Command to create the stripped backups&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;BACKUP&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO&lt;br /&gt;
DISK&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;E:\MSSQL\BAK\Tuitionaffordable_1of2.BAK&#39;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DISK&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;J:\MSSQL\BAK\Tuitionaffordable_2of2.BAK&#39; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;WITH&amp;nbsp; INIT&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;Let&#39;s go ahead and restore the command&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;RESTORE&amp;nbsp;&amp;nbsp; DATABASE Tuitionaffordable &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;WITH&amp;nbsp;&amp;nbsp; RECOVERY, REPLACE&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DISK&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_1of4.BAK&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;,DISK&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_2of4.BAK&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;,DISK&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_3of4.BAK&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;,DISK&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_4of4.BAK&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;There is one more important thing. In case your destination server doesn&#39;t have enouth free space in the corresponding drives then above command will fail. Backup file has the information where it needs to create the mdf, ndf and ldf files. Let&#39;s take a scenario when you are going to MOVE all the files to only one drive eg K because you have enough free space only in K drive of your destination server. The command will be as follows:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;RESTORE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DATABASE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;background-color: white; color: black;&quot;&gt;Tuitionaffordable&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DISK&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_1of4.BAK&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DISK&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_2of4.BAK&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DISK&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_3of4.BAK&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DISK&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_4of4.BAK&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;WITH RECOVERY, &lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;REPLACE&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable.MDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Data2&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Data2.NDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Data3&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Data3.NDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Data4&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Data4.NDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Data5&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Data5.NDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Data6&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Data6.NDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Data7&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Data7.NDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Data8&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Data8.NDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Data9&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Data9.NDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Index&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Index.NDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Index2&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Index2.NDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MOVE&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tuitionaffordable_Log&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;K:\MSSQL\Test\Tuitionaffordable_Log.lDF&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt; &lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/02/restoring-stripped-backup-files.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-3887242483826259890</guid><pubDate>Tue, 25 Jan 2011 06:20:00 +0000</pubDate><atom:updated>2011-01-24T22:22:52.332-08:00</atom:updated><title>Logshipping Error: &quot;Skipping log backup file&quot; and &quot;Could not apply log backup file&quot;</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This was a bad day for log shipping. I was on a leave for last two days and got my junior DBA screeming over logshipping latency as soon I stepped in.&lt;br /&gt;
&lt;br /&gt;
DBA got many skip messages in logshipping as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;2011-01-24 21:50:11.17 Skipping log backup file &#39;j:\logshipping\Tuitionaffordable\Tuitionaffordable_20110123100410.trn&#39; for secondary database &#39;Tuitionaffordable&#39; because the file could not be verified.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Another interesting error was as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;2011-01-24 21:50:10.92 *** Error: Could not apply log backup file &#39;j:\logshipping\Tuitionaffordable\Tuitionaffordable_20110123100410.trn&#39; to secondary database &#39;Tuitionaffordable&#39;.(Microsoft.SqlServer.Management.LogShipping) ***&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;2011-01-24 21:50:10.92 *** Error: Cannot open backup device &#39;j:\logshipping\Tuitionaffordable\Tuitionaffordable_20110123100410.trn&#39;. Operating system error 32(The process cannot access the file because it is being used by another process.).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;RESTORE LOG is terminating abnormally.(.Net SqlClient Data Provider) ***&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Let me discuss about these errors one by one.&lt;br /&gt;
&lt;br /&gt;
Error 1 indicates that some transactional log file is missed in between. It just means that log chain is broken and you need to copy those logs manually to the secondary server. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Error 2 indicates that the log file is corrupt. Let&#39;s run following command to verify the log file.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;RESTORE VERIFYONLY&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;FROM DISK = &#39;J:\logshipping\Tuitionaffordable\bak\Tuitionaffordable_20110123100410.trn&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Msg 3203, Level 16, State 1, Line 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Read on &quot;J:\logshipping\Tuitionaffordable\bak\Tuitionaffordable_20110123100410.trn&quot; failed: 13(The data is invalid.)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Msg 3013, Level 16, State 1, Line 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;VERIFY DATABASE is terminating abnormally.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
And this told that your log file is invalid. This happens when you use robocopy or xcopy to transfer file manually and your session is logged off. So get those files again from primary DB manually. I prefer to create a job and run it so that session logoff doesn&#39;t cause any problem.&lt;br /&gt;
&lt;br /&gt;
Most of the readers of this blog also read following interview questions so linking them here:&lt;br /&gt;
&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/powershell-interview-questions-and.html&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Powershell Interview Questions and Answers&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.wordpress.com/sql-server-dba-interview-questions&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;SQL Server DBA “Interview Questions And Answers”&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/sql-azure-interview-questions-and.html&quot;&gt;&lt;span style=&quot;color: #888888;&quot;&gt;SQL Azure Interview Questions and Answers Part - 1&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/01/logshipping-error-skipping-log-backup.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-1316927076439723485</guid><pubDate>Mon, 17 Jan 2011 00:06:00 +0000</pubDate><atom:updated>2017-07-03T11:10:15.891-07:00</atom:updated><title>Windows Azure Interview Questions and Answers</title><description>&lt;style type=&quot;text/css&quot;&gt;
@import url(http://www.google.com/cse/api/branding.css);
&lt;/style&gt;&lt;br /&gt;
&lt;div class=&quot;cse-branding-right&quot; style=&quot;background-color: white; color: white;&quot;&gt;
&lt;div class=&quot;cse-branding-form&quot;&gt;
&lt;form action=&quot;http://www.google.com/cse&quot; id=&quot;cse-search-box&quot;&gt;
&lt;div&gt;
&lt;input name=&quot;cx&quot; type=&quot;hidden&quot; value=&quot;partner-pub-2356005491128069:5e0pe1-24u2&quot; /&gt;&lt;br /&gt;
&lt;input name=&quot;ie&quot; type=&quot;hidden&quot; value=&quot;ISO-8859-1&quot; /&gt;&lt;br /&gt;
&lt;input name=&quot;q&quot; size=&quot;66&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
&lt;input name=&quot;sa&quot; type=&quot;submit&quot; value=&quot;Search&quot; /&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;div class=&quot;cse-branding-logo&quot;&gt;
&lt;img alt=&quot;Google&quot; src=&quot;http://www.google.com/images/poweredby_transparent/poweredby_000000.gif&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;cse-branding-text&quot;&gt;
Custom Search&lt;/div&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: karla, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;Want to prepare in ten minutes - read article&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: #333333; font-family: karla, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;&lt;a href=&quot;https://mssqlcorruptiontackle.blogspot.com/2017/07/sql-server-dba-interview-questions.html&quot; target=&quot;_blank&quot;&gt;Interview and Beyond in 10 Min&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div class=&quot;MsoSubtitle&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;cambria&amp;quot;;&quot;&gt;Qu1: What is Windows Azure?&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: #77933c; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #77933C; mso-style-textfill-fill-themecolor: accent3; mso-themecolor: accent3; mso-themeshade: 191;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;cambria&amp;quot;;&quot;&gt;Ans: Windows Azure is Microsoft Cloud Computing OS. Someone needs to worry about the h\w requirement, n\w requirement and the correct OS and much other stuff when he starts designing an application. Windows Azure will help the developer to get rid of these things and let him concentrate on main area which is nothing but automation and business needs.&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;cambria&amp;quot;;&quot;&gt;Qu2: What is fabric?&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: #77933c; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #77933C; mso-style-textfill-fill-themecolor: accent3; mso-themecolor: accent3; mso-themeshade: 191;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;cambria&amp;quot;;&quot;&gt;Ans: In the Windows Azure cloud fabric is nothing but a combination of many virtualized instances which run client application.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;cambria&amp;quot;;&quot;&gt;Qu3: What is the downtime for applications in case of any patching?&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: #77933c; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #77933C; mso-style-textfill-fill-themecolor: accent3; mso-themecolor: accent3; mso-themeshade: 191;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;cambria&amp;quot;;&quot;&gt;Ans: Windows Azure will have replicas for each and every application and provide zero downtime in case of any security patching.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;cambria&amp;quot;;&quot;&gt;Qu4: How many copies of data are maintained in Windows Azure?&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: #77933c; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #77933C; mso-style-textfill-fill-themecolor: accent3; mso-themecolor: accent3; mso-themeshade: 191;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;cambria&amp;quot;;&quot;&gt;Ans: Windows Azure provides you with three copies of data. This makes your application running on very reliable data. &lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;cambria&amp;quot;;&quot;&gt;Qu5: What is queue storage in the Windows Azure?&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoSubtitle&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: #77933c; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-color: #77933C; mso-style-textfill-fill-themecolor: accent3; mso-themecolor: accent3; mso-themeshade: 191;&quot;&gt;&lt;span style=&quot;color: windowtext;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;cambria&amp;quot;;&quot;&gt;Ans: Queue storage gives you capability of sending the small data just as messages. Queue storage basically helps informing the task to the worker threads.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most of the readers of this blog also read following interview questions so linking them here:&lt;br /&gt;
&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/powershell-interview-questions-and.html&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Powershell Interview Questions and Answers&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.wordpress.com/sql-server-dba-interview-questions&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;SQL Server DBA “Interview Questions And Answers”&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: &amp;quot;times new roman&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;a href=&quot;http://mssqlcorruptiontackle.blogspot.com/2011/01/sql-azure-interview-questions-and.html&quot;&gt;&lt;span style=&quot;color: #888888;&quot;&gt;SQL Azure Interview Questions and Answers Part - 1&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;times new roman&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/01/windows-azure-interview-questions-and.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-7973646904806064607</guid><pubDate>Fri, 14 Jan 2011 22:03:00 +0000</pubDate><atom:updated>2011-01-14T14:04:12.215-08:00</atom:updated><title>MS SQL SERVER 2008 Fix Fragmented Index</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: #a64d79;&quot;&gt;Who Should Read This Blog:&lt;/span&gt;&lt;/strong&gt; MS SQL Server DBA facing following issues:&lt;br /&gt;
&lt;br /&gt;
1. MS SQL Server DBA - Index getting fragmented often.&lt;br /&gt;
2. MS SQL Server DBA - Index not being used by the queries properly.&lt;br /&gt;
&lt;br /&gt;
I can see many DBAs asking the same questions again and again regarding index fragmentation. Most of them take a wrong path to fix this problem. Let&#39;s understand how index fragmentation happens and how to fix this.&lt;br /&gt;
&lt;br /&gt;
Index fragmentation is of two types: Internal and External. Internal is not very harmful. Let&#39;s talk External now.&lt;br /&gt;
&lt;br /&gt;
Before you start fixing index fragmentation, you should be able to identify whether the system is OLTP or OLAP. Please never go for high fill factor if you have an OLTP system and low fill factor if you have an OLAP system.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;Let&#39;s Understand:&lt;/span&gt; If you go for high fill factor then this means you are allowing more data &lt;br /&gt;
to absorbe into the index pages. And when new data will come in the order, page split will &lt;br /&gt;
occur. So wait before you look for high fill factor. The same rule applies on Low fill &lt;br /&gt;
factor also. If your system is OLAP then never ever go for low fill factor as this will &lt;br /&gt;
unnecessarily consume the space on each page. So the key is to understand your system &lt;br /&gt;
before you understand the problem.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;Reason of Index Fragmentation:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1. Autoshrink. Verify that autoshrink is not on. The sql server will cost high fragmentation in case it needs to shrink the data. I believe to confirm index defragmentation as soon as you ever need to shrink the DB.&lt;br /&gt;
&lt;br /&gt;
2. Having less Fill factor on OLTP env can cause the more page splits. Please understand your system before you go for the fill factor and index managment. You can fix the fill factor with following command.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;ALTER INDEX PK_Powershelltute ON [Tuitionaffordable].dbo.Powershelltute REBUILD WITH &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;(ONLINE=ON, MAXDOP=1, SORT_IN_TEMPDB=ON, FILLFACTOR=95)&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
3. Following is the query where you can identify the fill factor of your tables:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;SELECT&amp;nbsp; tbl.name AS table_name,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; indx.name AS index_name,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; indx.fill_factor&lt;br /&gt;
FROM&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.tables tbl&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOIN&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.indexes indx&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON tbl.object_id = indx.object_id&lt;br /&gt;
WHERE&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; indx.type in (1,2)&lt;br /&gt;
ORDER BY&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tbl.name,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; indx.name&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/01/ms-sql-server-2008-fix-fragmented-index.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-2777855456113540604</guid><pubDate>Wed, 12 Jan 2011 07:39:00 +0000</pubDate><atom:updated>2011-01-16T21:50:30.474-08:00</atom:updated><title>SQL SERVER 2008 R2 - Trasaction and Isolation Levels - &quot;Cannot roll back Transaction. No transaction or savepoint of that name was found.&quot;</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;Who Should Read This Blog:&lt;/span&gt; DBA who wants to understan how Transaction works.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s run following command first:&lt;br /&gt;
&lt;br /&gt;
1. &lt;span style=&quot;color: blue;&quot;&gt;SELECT @@TRANCOUNT&lt;/span&gt; &lt;br /&gt;
--Result 0&lt;br /&gt;
&lt;br /&gt;
2. &lt;span style=&quot;color: blue;&quot;&gt;DBCC OPENTRAN()&lt;/span&gt;&lt;br /&gt;
--Result as follows&lt;br /&gt;
Transaction information for database &#39;Tuition&#39;.&lt;br /&gt;
Oldest active transaction:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; SPID (server process ID): 54&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; UID (user ID) : -1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Affordable&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; LSN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : (3073:52373:1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Start time&amp;nbsp;&amp;nbsp;&amp;nbsp; : Jan 11 2011&amp;nbsp; 6:23:47:993PM&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; SID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0x0105000000000005150000001ac6c4f30376dea8123bc97be8030000&lt;br /&gt;
DBCC execution completed. If DBCC printed error messages, contact your system administrator.&lt;br /&gt;
&lt;br /&gt;
So the difference between these two commands are as follows:&lt;br /&gt;
&lt;br /&gt;
1. @@TRANCOUNT will tell you how many open transactions are there whereas DBCC OPENTRAN() tells only about the oldest trasaction.&lt;br /&gt;
&lt;br /&gt;
2. @@TRANCOUNT will tell you the open transaction as soon as you run BEGIN TRAN but DBCC OPENTRAN() will tell some&amp;nbsp;information only when any other command is run under BEGIN TRAN. &lt;br /&gt;
&lt;br /&gt;
There is more to understand about the transactions and two popular ISOLATION Levels ie READ COMMITTED AND READ UNCOMMITTED:&lt;br /&gt;
&lt;br /&gt;
Let&#39;s&amp;nbsp;create a simple test table TestTran with a column server. Populate the table with any data.&lt;br /&gt;
&lt;br /&gt;
Execute the commands as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT @@TRANCOUNT&lt;/span&gt; --0&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;DBCC OPENTRAN()&lt;/span&gt;&lt;br /&gt;
No active open transactions.&lt;br /&gt;
DBCC execution completed. If DBCC printed error messages, contact your system administrator.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s run following command now and verify the difference between @@TRANCOUNT and DBCC &lt;br /&gt;
OPENTRAN()&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;BEGIN TRAN Tuition&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Let&#39;s verify&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT @@TRANCOUNT&lt;/span&gt; --1&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;DBCC OPENTRAN()&lt;/span&gt;&lt;br /&gt;
No active open transactions.&lt;br /&gt;
DBCC execution completed. If DBCC printed error messages, contact your system administrator.&lt;br /&gt;
&lt;br /&gt;
I want to add one popular error in the blog which most of the DBAs would get when they try to rollback the transaction. Use follwoing code to see the error:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;BEGIN TRAN Affordable&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;ROLLBACK tran affordable&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Msg 6401, Level 16, State 1, Line 1&lt;br /&gt;
Cannot roll back Affordable. No transaction or savepoint of that name was found.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Try this now:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;ROLLBACK tran Affordable&lt;/span&gt;&lt;br /&gt;
Command(s) completed successfully.&lt;br /&gt;
&lt;br /&gt;
Now this is the time to go ahead with understanding how nested transactions behave:&lt;br /&gt;
&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
@import url(http://www.google.com/cse/api/branding.css);
&lt;/style&gt;&lt;br /&gt;
&lt;div class=&quot;cse-branding-right&quot; style=&quot;background-color:#FFFFFF;color:#FFFFFF&quot;&gt;  &lt;div class=&quot;cse-branding-form&quot;&gt;    &lt;form action=&quot;http://www.google.com/cse&quot; id=&quot;cse-search-box&quot;&gt;      &lt;div&gt;        &lt;input type=&quot;hidden&quot; name=&quot;cx&quot; value=&quot;partner-pub-2356005491128069:5e0pe1-24u2&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;hidden&quot; name=&quot;ie&quot; value=&quot;ISO-8859-1&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;text&quot; name=&quot;q&quot; size=&quot;66&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;submit&quot; name=&quot;sa&quot; value=&quot;Search&quot; /&gt;&lt;br /&gt;
      &lt;/div&gt;    &lt;/form&gt;  &lt;/div&gt;  &lt;div class=&quot;cse-branding-logo&quot;&gt;    &lt;img src=&quot;http://www.google.com/images/poweredby_transparent/poweredby_000000.gif&quot; alt=&quot;Google&quot; /&gt;&lt;br /&gt;
  &lt;/div&gt;  &lt;div class=&quot;cse-branding-text&quot;&gt;    Custom Search&lt;br /&gt;
  &lt;/div&gt;&lt;/div&gt;Run following command:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;BEGIN TRAN Affordable1&lt;br /&gt;
UPDATE TestTran&lt;br /&gt;
SET Server= &#39;Affordable1&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;BEGIN TRAN Affordable2&lt;br /&gt;
UPDATE TestTran&lt;br /&gt;
SET Server= &#39;Affordable2&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;BEGIN TRAN Affordable3&lt;br /&gt;
UPDATE TestTran&lt;br /&gt;
SET Server= &#39;Affordable3&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now we shall try to rollback the last trans Affordable3. We get following error msg:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Msg 6401, Level 16, State 1, Line 1&lt;br /&gt;
Cannot roll back Afford. No transaction or savepoint of that name was found.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
You can commit any internal transaction but cann&#39;t rollback. Now if you rollback the transaction the changes affected by the&amp;nbsp; internal transaction would go away.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s also understand READ COMMITTED and READ UNCOMMITTED Transaction Isolation Level.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s run following command on one connection.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;BEGIN TRAN Affordable1&lt;br /&gt;
UPDATE TestTran&lt;br /&gt;
SET Server= &#39;Affordable1&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Run following command on another session &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SET TRANSACTION ISOLATION LEVEL READ COMMITTED&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;* &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;FROM TestTran&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The session will hung as you asked the sql server to show you only committed data.&lt;br /&gt;
&lt;br /&gt;
Now run following command on another session &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;* &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;FROM TestTran&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This data is nothing but the &quot;dirty read&quot; because if you rollback the transaction in the previous session then the data would change.&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/01/sql-server-2008-r2-trasaction-and.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-1845882959101390192</guid><pubDate>Mon, 10 Jan 2011 23:36:00 +0000</pubDate><atom:updated>2011-01-16T21:51:36.927-08:00</atom:updated><title>Cost Analysis Among EXISTS (SELECT 1), EXISTS (SELECT COUNT(1)), EXISTS (SELECT *) AND EXISTS (SELECT TOP 1)</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
Let&#39;s understand how &#39;SELECT 1&#39;, &#39;SELECT COUNT(1)&#39;, &#39;SELECT *&#39; and &#39;SELECT TOP 1&#39; would behave when they are called in the WHERE EXISTS clause. Let&#39;s look at following queries and find out which one will cost least.&lt;br /&gt;
&lt;br /&gt;
Query 1:&lt;br /&gt;
SELECT a.ProductId, a.ProductName&lt;br /&gt;
FROM Product.Catalog AS a&lt;br /&gt;
WHERE EXISTS&lt;br /&gt;
(SELECT * &lt;br /&gt;
FROM Product.Products AS b&lt;br /&gt;
WHERE a.ProductId = b.ProductId&lt;br /&gt;
AND a.ProductName = &#39;RAM&#39;);&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
Query 2:&lt;br /&gt;
SELECT a.ProductId, a.ProductName&lt;br /&gt;
FROM Product.Catalog AS a&lt;br /&gt;
WHERE EXISTS&lt;br /&gt;
(SELECT 1 &lt;br /&gt;
FROM Product.Products AS b&lt;br /&gt;
WHERE a.ProductId = b.ProductId&lt;br /&gt;
AND a.ProductName = &#39;RAM&#39;);&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
Query 3:&lt;br /&gt;
SELECT a.ProductId, a.ProductName&lt;br /&gt;
FROM Product.Catalog AS a&lt;br /&gt;
WHERE EXISTS&lt;br /&gt;
(SELECT TOP 1 &lt;br /&gt;
FROM Product.Products AS b&lt;br /&gt;
WHERE a.ProductId = b.ProductId&lt;br /&gt;
AND a.ProductName = &#39;RAM&#39;);&lt;br /&gt;
GO&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
@import url(http://www.google.com/cse/api/branding.css);
&lt;/style&gt;&lt;br /&gt;
&lt;div class=&quot;cse-branding-right&quot; style=&quot;background-color:#FFFFFF;color:#FFFFFF&quot;&gt;  &lt;div class=&quot;cse-branding-form&quot;&gt;    &lt;form action=&quot;http://www.google.com/cse&quot; id=&quot;cse-search-box&quot;&gt;      &lt;div&gt;        &lt;input type=&quot;hidden&quot; name=&quot;cx&quot; value=&quot;partner-pub-2356005491128069:5e0pe1-24u2&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;hidden&quot; name=&quot;ie&quot; value=&quot;ISO-8859-1&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;text&quot; name=&quot;q&quot; size=&quot;66&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;submit&quot; name=&quot;sa&quot; value=&quot;Search&quot; /&gt;&lt;br /&gt;
      &lt;/div&gt;    &lt;/form&gt;  &lt;/div&gt;  &lt;div class=&quot;cse-branding-logo&quot;&gt;    &lt;img src=&quot;http://www.google.com/images/poweredby_transparent/poweredby_000000.gif&quot; alt=&quot;Google&quot; /&gt;&lt;br /&gt;
  &lt;/div&gt;  &lt;div class=&quot;cse-branding-text&quot;&gt;    Custom Search&lt;br /&gt;
  &lt;/div&gt;&lt;/div&gt;Query 4:&lt;br /&gt;
SELECT a.ProductId, a.ProductName&lt;br /&gt;
FROM Product.Catalog AS a&lt;br /&gt;
WHERE EXISTS&lt;br /&gt;
(SELECT COUNT(1)&lt;br /&gt;
FROM Product.Products AS b&lt;br /&gt;
WHERE a.ProductId = b.ProductId&lt;br /&gt;
AND a.ProductName = &#39;RAM&#39;);&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
There is a grave misconception among DBAs and I saw most of them choosing query 3 and 4. The clue is that work under &#39;WHERE EXISTS&#39; completes as soon as the first record is returned. Query 1 and 2 are same here. Now Query 3 is more costlier than the first two and query 4 is most costly. Also query 4 is nowhere equivalent to others as this will always execute even this returns 0.&lt;br /&gt;
&lt;br /&gt;
We can arrange the queries Cost wise: &lt;strong&gt;&lt;span style=&quot;background-color: red;&quot;&gt;query 1 = query 2 &amp;lt; query3 &amp;lt; query 4&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/01/cost-analysis-among-exists-select-1.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-8200248909938589542</guid><pubDate>Fri, 07 Jan 2011 04:18:00 +0000</pubDate><atom:updated>2011-01-16T21:54:10.891-08:00</atom:updated><title>Comparison between Litespeed Backup and Native Backup Compression</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Following article would help you understand the benefit of taking backup using litespeed. The backup file size with litespeed is far lighter than the native backup with compression. This is a well known fact that the compression of any backup depends on the data in the DB. This is why the ratio of this analysis can vary in different scenarios. I tested this with 5 different kind of DBs and always got better results with Litespeed. Let’s walk through:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Database size- 3GB&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Comparison between native backup and litespeed backup-&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/AVvXsEiM1O23uj1S_6aPwr1xSY64HuXz9stbUiCeGQt9wKqCilLE9ScZpJWiLJtimyR7M8j_Euavd6Ks0x4nDYQPUOvasvdwKwnZ8wvXc8Dw1yVoIQDPaZHm6K3JYawy5pk0RxOlulp-LmIX27Am/s1600/Capture01.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; n4=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM1O23uj1S_6aPwr1xSY64HuXz9stbUiCeGQt9wKqCilLE9ScZpJWiLJtimyR7M8j_Euavd6Ks0x4nDYQPUOvasvdwKwnZ8wvXc8Dw1yVoIQDPaZHm6K3JYawy5pk0RxOlulp-LmIX27Am/s1600/Capture01.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;--Native Backup&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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;BACKUP&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;DATABASE&lt;/span&gt; Tower&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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;TO&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;DISK&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;D:\towerbknative.bak&#39;&lt;/span&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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;WITH&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;COMPRESSION&lt;/span&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;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;style type=&quot;text/css&quot;&gt;
@import url(http://www.google.com/cse/api/branding.css);
&lt;/style&gt;&lt;br /&gt;
&lt;div class=&quot;cse-branding-right&quot; style=&quot;background-color:#FFFFFF;color:#FFFFFF&quot;&gt;  &lt;div class=&quot;cse-branding-form&quot;&gt;    &lt;form action=&quot;http://www.google.com/cse&quot; id=&quot;cse-search-box&quot;&gt;      &lt;div&gt;        &lt;input type=&quot;hidden&quot; name=&quot;cx&quot; value=&quot;partner-pub-2356005491128069:5e0pe1-24u2&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;hidden&quot; name=&quot;ie&quot; value=&quot;ISO-8859-1&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;text&quot; name=&quot;q&quot; size=&quot;66&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;submit&quot; name=&quot;sa&quot; value=&quot;Search&quot; /&gt;&lt;br /&gt;
      &lt;/div&gt;    &lt;/form&gt;  &lt;/div&gt;  &lt;div class=&quot;cse-branding-logo&quot;&gt;    &lt;img src=&quot;http://www.google.com/images/poweredby_transparent/poweredby_000000.gif&quot; alt=&quot;Google&quot; /&gt;&lt;br /&gt;
  &lt;/div&gt;  &lt;div class=&quot;cse-branding-text&quot;&gt;    Custom Search&lt;br /&gt;
  &lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;--Litespeed Backup&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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;EXEC&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;master&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;dbo&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;xp_backup_database&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&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;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;@database&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tower&#39;&lt;/span&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;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; @filename&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;D:\towerbknative.bak&#39;&lt;/span&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;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; @init&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;1&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;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;, @compressionlevel = 8&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;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; @encryptionkey&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Password&#39;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&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;&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;&quot;&gt;&lt;span style=&quot;color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;--Native Restore&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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;RESTORE&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;DATABASE&lt;/span&gt; Tower&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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;DISK&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;D:\towerbknative.bak&#39;&lt;/span&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;&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;&quot;&gt;&lt;span style=&quot;color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;--Litespeed Restore&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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;EXEC&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;master&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;dbo&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;xp_restore_database&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&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;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;@database&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Tower&#39;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&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;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; @filename&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;D:\towerbknative.bak&#39;&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;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; @encryptionkey&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Password&#39;&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;font-family: Calibri;&quot;&gt;Considering the Newbies in litespeed, let me explain how to take the litespeed backup at Litespeed console.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Step 1- Go to &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Backup Manager wizard in &lt;/b&gt;LiteSpeed consol&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Step 2- Select Backup type as &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Fast Compression-&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidqML8J1-x82OZ1-bLCfkOiEGhz-vEPyg5Qd_KuFGAL9Zx4KZ-IeihtaWdz24tpJmg3LlMextoK8FIT_fAxtOQi0qUtz1OvHHtzVPDUK1yRnOg8fcJg80FxHwxKU8ZasWN-3tyqyeRhiO5/s1600/Capture02.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; n4=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidqML8J1-x82OZ1-bLCfkOiEGhz-vEPyg5Qd_KuFGAL9Zx4KZ-IeihtaWdz24tpJmg3LlMextoK8FIT_fAxtOQi0qUtz1OvHHtzVPDUK1yRnOg8fcJg80FxHwxKU8ZasWN-3tyqyeRhiO5/s1600/Capture02.JPG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Step 3- Next &amp;gt; Select the backup destination&amp;gt;Next Fast Compression type- Select Self-containded backup sets.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT8eW8tVvqfjNYGbDi0vmVipK7bHiJJTz0IhcGPMbIaeYwU7oAxPsA2vGduAIJT98c2frsBAOIU4oJjiuDTSeqeyHbPKRnh5UAmHEV4Xz8qTW4XDWR6P9HHpEdWK2QUgSgpjjroS_0WjDB/s1600/Capture03.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; n4=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT8eW8tVvqfjNYGbDi0vmVipK7bHiJJTz0IhcGPMbIaeYwU7oAxPsA2vGduAIJT98c2frsBAOIU4oJjiuDTSeqeyHbPKRnh5UAmHEV4Xz8qTW4XDWR6P9HHpEdWK2QUgSgpjjroS_0WjDB/s1600/Capture03.JPG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Step 4- Next&amp;gt;Next&amp;gt; Compression :Select Compression level as 8 which is highest level of compression.&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Give your encryption password&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguSuv4bpGlfNXwob0j9xFOau-8fTh9aQDgYPYt3aRvTT-z2Ll_cWdaiKY6HGzu9ZTSzcHV7kiieXnrW4SgpHS-ufSLADi9Dd2vws5SySc2AIUEQwvTH1PctlJN-riN0LFsy7yXRJtx9Jo9/s1600/Capture04.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; n4=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguSuv4bpGlfNXwob0j9xFOau-8fTh9aQDgYPYt3aRvTT-z2Ll_cWdaiKY6HGzu9ZTSzcHV7kiieXnrW4SgpHS-ufSLADi9Dd2vws5SySc2AIUEQwvTH1PctlJN-riN0LFsy7yXRJtx9Jo9/s1600/Capture04.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Step 5- Finish. Your backup is created in the destination.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In my case the backup was of 3GB and my LiteSpeed backup size after fast Compression, is only 753KB.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;You can see the status of your backup job in the job manager window by clicking &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Cntr+5:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&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/AVvXsEgEsMREl1n8c-M172ctfXFEyekxj-P4KRhP3tUAWUsGeFO3vP3GBT1tk2XC0RK0PVOxdn2vDjj7ojpk1NwZ5qq0rjcYtOJv1plGJ3WweZox_X_CRV35-g-ov4TFIWZYsETDqZMZHy16pnUM/s1600/Capture05.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; n4=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEsMREl1n8c-M172ctfXFEyekxj-P4KRhP3tUAWUsGeFO3vP3GBT1tk2XC0RK0PVOxdn2vDjj7ojpk1NwZ5qq0rjcYtOJv1plGJ3WweZox_X_CRV35-g-ov4TFIWZYsETDqZMZHy16pnUM/s1600/Capture05.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Same way you can restore the DB using Litespeed Restore Backup Wizard in Backup Manager.-&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/AVvXsEjTp-b54e0LhN3SmQjtxTVRns0NFbLzklawAVt2H-r-vEaW4w1MdOH9CO5mqN7YuEI0cYKlhtvlXXOMKJJ_HRu5tprUKHlI9Be4WbIg6nELExCwb6bH9vjYVS8ZcZSTf-IoYrLy6gRKeDek/s1600/Capture06.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; n4=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTp-b54e0LhN3SmQjtxTVRns0NFbLzklawAVt2H-r-vEaW4w1MdOH9CO5mqN7YuEI0cYKlhtvlXXOMKJJ_HRu5tprUKHlI9Be4WbIg6nELExCwb6bH9vjYVS8ZcZSTf-IoYrLy6gRKeDek/s1600/Capture06.JPG&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/01/comparison-between-litespeed-backup-and.html</link><author>noreply@blogger.com (tuitionaffordable)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM1O23uj1S_6aPwr1xSY64HuXz9stbUiCeGQt9wKqCilLE9ScZpJWiLJtimyR7M8j_Euavd6Ks0x4nDYQPUOvasvdwKwnZ8wvXc8Dw1yVoIQDPaZHm6K3JYawy5pk0RxOlulp-LmIX27Am/s72-c/Capture01.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6020247666251034345.post-5980850663262712762</guid><pubDate>Fri, 07 Jan 2011 02:40:00 +0000</pubDate><atom:updated>2011-01-16T21:57:28.476-08:00</atom:updated><title>Sql Job Failure - Unable to Determine if the Owner (PROD\tuitionaffordable) of Job  has Server Access &quot;error code 0x2&quot;</title><description>&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;strong&gt;Unable to determine if the owner (PROD\tuitionaffordable) of job&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;has server access error code 0x2&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Got following error for some job which runs every day without any issue-&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: Calibri;&quot;&gt;Error&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Date&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;1/6/2011 2:25:00 PM&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Log&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Job History (Tuitionaffordable-REPLDB-Tuition-28)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Step ID&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Server&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Tuitionaffordable&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Job Name&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Tuitionaffordable-REPLDB-Tuition-28&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Step Name&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;(Job outcome)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Duration&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;00:00:09&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Sql Severity&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Sql Message ID&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Operator Emailed&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Operator Net sent&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Operator Paged&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Retries Attempted&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Message&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;The job failed.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Unable to determine if the owner (PROD\tuitionaffordable) of job Tuitionaffordable-REPLDB-Tuition-28 has server access (reason: Could not obtain information about Windows NT group/user &#39;PROD\tuitionaffordable&#39;, error code 0x2. [SQLSTATE 42000] (Error 15404)).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Let&#39;s Understand:&lt;/span&gt; The error is thrown because the account PROD\tuitionaffordable is either disabled or doesn&#39;t have access to the shared folders where the job tries to save/access files.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Solution:&lt;/span&gt; Change the owner of the job to some other account which has access to the shared folders where the job tries to save/access files.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;pub-2356005491128069&quot;;
/* tuitionaffordable */
google_ad_slot = &quot;9420322061&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;Another Problem:&lt;/span&gt; What if there are 50 jobs with the same owner id and I want all of them to change.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Solution:&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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;UPDATE&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; sysjobs &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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;SET&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;owner_sid &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; 0x01&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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;sysjobs&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;&quot;&gt;&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;INNER&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;JOIN&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;sysjobhistory hist&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;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;ON&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;hist&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;job_id &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; sysjobs&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;job_id&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;&quot;&gt;&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;hist&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;run_status &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; 0 &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%; mso-no-proof: yes;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;hist&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;message&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;LIKE&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;%PROD\tuitionaffordable%&#39;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;Note:&lt;/span&gt; When the owner of the job is sa then the job runs under the account under which sql agent runs.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;style type=&quot;text/css&quot;&gt;
@import url(http://www.google.com/cse/api/branding.css);
&lt;/style&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;cse-branding-right&quot; style=&quot;background-color:#FFFFFF;color:#FFFFFF&quot;&gt;  &lt;div class=&quot;cse-branding-form&quot;&gt;    &lt;form action=&quot;http://www.google.com/cse&quot; id=&quot;cse-search-box&quot;&gt;      &lt;div&gt;        &lt;input type=&quot;hidden&quot; name=&quot;cx&quot; value=&quot;partner-pub-2356005491128069:5e0pe1-24u2&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;hidden&quot; name=&quot;ie&quot; value=&quot;ISO-8859-1&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;text&quot; name=&quot;q&quot; size=&quot;66&quot; /&gt;&lt;br /&gt;
        &lt;input type=&quot;submit&quot; name=&quot;sa&quot; value=&quot;Search&quot; /&gt;&lt;br /&gt;
      &lt;/div&gt;    &lt;/form&gt;  &lt;/div&gt;  &lt;div class=&quot;cse-branding-logo&quot;&gt;    &lt;img src=&quot;http://www.google.com/images/poweredby_transparent/poweredby_000000.gif&quot; alt=&quot;Google&quot; /&gt;&lt;br /&gt;
  &lt;/div&gt;  &lt;div class=&quot;cse-branding-text&quot;&gt;    Custom Search&lt;br /&gt;
  &lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Regards,&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://tuitionaffordable.webstarts.com/&quot;&gt;&lt;span style=&quot;color: #743399;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;http://tuitionaffordable.webstarts.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</description><link>https://mssqlcorruptiontackle.blogspot.com/2011/01/server-access-error-code-0x2.html</link><author>noreply@blogger.com (tuitionaffordable)</author><thr:total>0</thr:total></item></channel></rss>