<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7367571059608809880</id><updated>2011-12-22T03:30:07.920-05:00</updated><category term='Web Development'/><category term='SQL Server Jobs'/><category term='SQL Server Replication'/><category term='Microsoft Access'/><category term='SQL Server MIgration'/><category term='SQL Server Security'/><category term='Others'/><category term='SQL Databases'/><category term='SQL Server Tools'/><category term='SQL Server Scripts'/><category term='Change Data Capture'/><category term='TSQL'/><category term='Announcements'/><title type='text'>Sugesh's BLOG</title><subtitle type='html'>This BLOG is used to share my knowledge on SQL Server.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>91</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4742431951684548128</id><published>2011-01-16T11:58:00.004-05:00</published><updated>2011-01-16T12:04:38.649-05:00</updated><title type='text'>Get Details for Month for any given Date</title><content type='html'>The given script below will give details for a given date as below.&lt;br /&gt;&lt;br /&gt;1. First Day of the month along with the Weekday&lt;br /&gt;2. Weekday of the Given date&lt;br /&gt;3. Last day of the month along with the Weekday&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Script:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;DECLARE @date DATETIME&lt;br /&gt;SELECT @date = GETDATE() --INPUT YOUR DATE HERE&lt;br /&gt;SELECT CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(@date)-1),@date),101) AS DateofMonth,datename(dw,CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(@date)-1) ,@date),101)) as Week_Day,&lt;br /&gt;'First Day of Month for Date Given' AS DayofMonth&lt;br /&gt;UNION&lt;br /&gt;SELECT CONVERT(VARCHAR(25),GETDATE(),101) AS DateofMonth, DAtename(dw,CONVERT(VARCHAR(25),GETDATE(),101)) as Week_Day,'Date Given' AS DayofMonth&lt;br /&gt;UNION&lt;br /&gt;SELECT CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(DATEADD(mm,1,@date))),DATEADD(mm,1,@date)),101) ,DAtename(dw,CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(DATEADD(mm,1,@date))) ,DATEADD(mm,1,@date)),101)) as Week_Day,&lt;br /&gt;'Last Day of Month for Date Given'&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Result:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;DateofMonth Week_Day DayofMonth&lt;br /&gt;01/01/2011 Saturday First Day of Month for Date Given&lt;br /&gt;01/16/2011 Sunday  Date Given&lt;br /&gt;01/31/2011 Monday  Last Day of Month for Date Given&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4742431951684548128?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4742431951684548128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4742431951684548128' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4742431951684548128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4742431951684548128'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2011/01/get-details-for-month-for-any-given.html' title='Get Details for Month for any given Date'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4819030795015055146</id><published>2011-01-16T10:52:00.003-05:00</published><updated>2011-01-16T11:01:43.280-05:00</updated><title type='text'>Back to Blogging</title><content type='html'>Life's changes happen so sooner than expected. It was the same period last year that I decided that I should minimize my blogging and professional network to spend more personal time as I anticipated busy personal and professional work.&lt;br /&gt;&lt;br /&gt;It's this year that I know that I can spend few hours every week without affecting my personal or professional life, thanks to my understanding family and friends who would like to see me back to those good days. The difference was simple, &lt;strong&gt;&lt;em&gt;attitude.&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;"I am too tired spending time learning, reading and writing. why not take sometime off and feel the personal life?, this was the one for last year and for this year it is "I have a understanding family, friends and people around me to help and keep me happy through my personal life, why not spend some time for the community?"&lt;br /&gt;&lt;br /&gt;This difference made things easier for me to start writing back. You will see more and more blogging, discussions and posts from me. Keep me posted if you need anything specific.&lt;br /&gt;&lt;br /&gt;At this moment, I would love to say sincere thanks to my understanding PARENTS and WIFE. Encouragement comes from nowhere, it comes from your heart, these are people who live there and that pushes me to move forward quicker.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4819030795015055146?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4819030795015055146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4819030795015055146' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4819030795015055146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4819030795015055146'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2011/01/back-to-blogging.html' title='Back to Blogging'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-297245027245151499</id><published>2010-11-08T18:35:00.002-05:00</published><updated>2010-11-08T18:39:34.276-05:00</updated><title type='text'>If these wouldn't have happened</title><content type='html'>Ten things that had changed my life dramatically.&lt;br /&gt;&lt;br /&gt;1. A back injury when I was in 11th grade that kept my away from playing Volley Ball. If I would have continued playing, who knows I would have end up screwing my academics. With help of the injury, I made a better score in 12th Grade and got admitted to one of the best engineering colleges in Tamilnadu.&lt;br /&gt;&lt;br /&gt;2. A playful college life that left me among millions of people searching for IT job. But, it was this place that gave me friends for life time.&lt;br /&gt;&lt;br /&gt;3. My first job in Covansys, I was moved to Covansys Bangalore along with the entire batch of Freshers and placed in PeopleSoft project. Thanks to the management for putting me in Infrastructure Admin role. My first job was kind of Windows Admin/PeopleSoft DBA.&lt;br /&gt;&lt;br /&gt;4. Things changed again forcing move to Quit Covansys and move to Chennai. Got a job in Hexaware, Chennai as PeopleSoft/SQL Server DBA in the internal systems Project. A role that I will remember for lifetime, it was here that I nurtured from an amateur Professional to an expert.&lt;br /&gt;&lt;br /&gt;5. An unwanted argument that led me to decide on quitting Hexaware. Thanks to Lord, if this would not have happened I would have still been with Hexaware and would not have been what I am now.&lt;br /&gt;&lt;br /&gt;6. Life @ CITIGROUP, a short-lived one but changed the most of my professional career. I have dreamt of being a Microsoft Valuable Professional, it was here that I made friendship with Vidhyasagar and Deepak, both of them are current MVPs to bring something out of us to become one of India's renowned SQL Server MVPs.&lt;br /&gt;&lt;br /&gt;7. Help from my Schoolmate Vijay, who guided me to get H1B visa to USA. Again, a lifetime dream that was accomplished with some hurdles here and there.&lt;br /&gt;&lt;br /&gt;8. My current job in ThomsonReuters. I am glad to work with expertise SQL Server team and with help of people around me here, I can assure that I would one day realize my dream of seeing me as Vice-President of Operations, IT for some company around this little world.&lt;br /&gt;&lt;br /&gt;9. One that often disturbs me now and then, an unexpected surgery to my father that took him out of being in his usual activeness and one that keeps us bothering now and then.&lt;br /&gt;&lt;br /&gt;10. Long-awaited one, my marriage as the famous saying goes "In the opinion of the world, marriage ends all, as it does in a comedy. The truth is precisely the opposite: it begins all". We are planning to make the beginning. At the end of road, we wish to hear "Better Half" related to us and Yes, It's "We Wish"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-297245027245151499?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/297245027245151499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=297245027245151499' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/297245027245151499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/297245027245151499'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2010/11/if-these-wouldnt-have-happened.html' title='If these wouldn&apos;t have happened'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-2611350409727905496</id><published>2010-07-18T20:58:00.001-04:00</published><updated>2010-07-18T21:01:20.042-04:00</updated><title type='text'>Thank You ALL for making SQL Data Camp @ Chennai a GRAND SUCCESS</title><content type='html'>Organizing an event is a tough job and making it a great success is toughest job. I hope, Chennai SQL Server User Group did what it makes to say SQL data camp a GRAND SUCCESS,&lt;br /&gt;At this moment being the chairperson of the organizing committee, I would like to thank people who were involved in bringing success to the first ever day long SQL Server event in India.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Speakers:&lt;br /&gt;&lt;/strong&gt;I would like to thank all the speakers for accepting our invitation to deliver a session.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Pinal&lt;/strong&gt;, travelling from Malaysia to Hyderabad and to Chennai only to make for this event and delivered two excellent sessions on indexing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Madhu, Sudhir Mahendru and Basker Krishnamoorthy(members of Data Architecture Center of Expertise (DACoE) of Cognizant Technology Solutions)&lt;/strong&gt; - This team was impressive in making clear to audience why DATA DESIGNING is so important to any application development lifecycle.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Venkatesan Prabhu&lt;/strong&gt;, I have to make a special mention about him. He made great changes to his vacation calendar just to make for this event and was pleasant to have him travelling from Australia at the right time.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Raymond&lt;/strong&gt;, from Doubletake software presented one of the most exciting sessions on high availability with Doubletake. I have never seen an UG giving one full session to a sponsor and we are proud of making our sponsor a part of our team.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sponsors:&lt;/strong&gt;&lt;br /&gt;If speakers were driving the event throughout the day, it was our sponsors you were with us from the day we planned till this last moment bringing energy and enthusiasm among us. The following are the persons who drove us through success.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Blythe Morrow, Sujatha Metha, Sanj Gaddam of PASS.&lt;br /&gt;Doubletake Software&lt;br /&gt;Redgate software&lt;br /&gt;Sql-articles.com&lt;br /&gt;Jacob Sebastian of BeyondRelational.com&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;My User Group Colleagues - Vidhyasagar and Deepak:&lt;/strong&gt;&lt;br /&gt;These both, I have no words to thank them; I am New York and was instructing them to do what needs to be done. And these guys have accomplished more than what I asked them. They have always been part of my community journey and this one is next stepping stone for us. We together have set a new milestone of conducting an event for SQL Server and we will make sure we will better this one in future events.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;User Group Members:&lt;br /&gt;&lt;/strong&gt;This group has been one of the most active SQL server user groups around India and the members have been most energetic lot. They are the one who bring us enthusiasm and energy for us to take steps forward.&lt;br /&gt;&lt;br /&gt;Personally, I was so proud to hear from Pinal, Vidhyasagar and Deepak that there so many attendees wanting to meet and chat with me. I apologize for not turning to be there. But I will make sure that I will meet everyone when I am in India for vacation.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Nagesh, Selva and Senthil:&lt;br /&gt;&lt;/strong&gt;These three need a special mention here. They have no association with either this User Group or SQL Server but were kindhearted enough to help us from designing the Logos, website, arranging things, coordinating with vendors, loaning their personal car for shuttle and what not. Thank You guys. Without you we would have had tough time managing things around us.&lt;br /&gt;&lt;br /&gt;I would once again take this opportunity to Thank everyone for making this event a GRAND SUCCESS.&lt;br /&gt;&lt;br /&gt;If I would have missed someone, please apologize me.&lt;br /&gt;&lt;br /&gt;Thank you All.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-2611350409727905496?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/2611350409727905496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=2611350409727905496' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2611350409727905496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2611350409727905496'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2010/07/thank-you-all-for-making-sql-data-camp.html' title='Thank You ALL for making SQL Data Camp @ Chennai a GRAND SUCCESS'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-6106522401224925689</id><published>2010-01-20T02:48:00.002-05:00</published><updated>2010-01-20T02:50:04.469-05:00</updated><title type='text'>SQL Server 2008 R2 by MAY 2010</title><content type='html'>Microsoft has announced the SQL Server 2008 R2 will be released to manufacturing in May 2010. The official statement is in the link below.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://blogs.technet.com/dataplatforminsider/archive/2010/01/19/sql-server-2008-r2-gets-an-official-date.aspx"&gt;http://blogs.technet.com/dataplatforminsider/archive/2010/01/19/sql-server-2008-r2-gets-an-official-date.aspx&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-6106522401224925689?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/6106522401224925689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=6106522401224925689' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6106522401224925689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6106522401224925689'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2010/01/sql-server-2008-r2-by-may-2010.html' title='SQL Server 2008 R2 by MAY 2010'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-6931307717129095732</id><published>2009-11-28T18:26:00.002-05:00</published><updated>2009-11-28T18:31:43.008-05:00</updated><title type='text'>Consolidating our blogs into one website</title><content type='html'>Folks,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Me, Vidhyasagar and Deepak rangarajan, we have decided that we would be posting our all articles, reviews, scripts and suggestions in &lt;a href="http://www.sql-articles.com"&gt;SQL-ARTICLES&lt;/a&gt; website moving forward. I will be moving all articles from the blog to the website. The blog will be active for next few weeks before I finally call for SHUTDOWN.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I would be happy to redirect all my users to our websites, Please find useful links below.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SQL-ARTICLES - http://www.sql-articles.com&lt;/div&gt;&lt;div&gt;Forums - http://www.sql-articles.com/forums&lt;/div&gt;&lt;div&gt;Suggestions - http://www.sql-articles.com/suggestions&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thanks for being a reader of my blog and request you to visit our site. Your constant encouragement would help us grow more efficiently.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thanks&lt;/div&gt;&lt;div&gt;Sugeshkumar Rajendran&lt;/div&gt;&lt;div&gt;SQL Server MVP&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-6931307717129095732?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/6931307717129095732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=6931307717129095732' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6931307717129095732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6931307717129095732'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/11/consolidating-our-blogs-into-one.html' title='Consolidating our blogs into one website'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-3421320542499159441</id><published>2009-10-10T19:59:00.002-04:00</published><updated>2009-10-11T10:37:06.726-04:00</updated><title type='text'>The Unhealthy Argument</title><content type='html'>&lt;p class="MsoNormal"&gt;This post of mine is 100 percent a personal opinion and was written not to hurt anyone.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Off late, I have been hearing or knowing incidents which have involved 2 or more persons going into an argument on deciding which technology is the best is it WINDOWS or UNIX, ORACLE or SQL SERVER, .Net or JAVA, IE or Chrome, etc. There are few incidents that came to my notice which I would like to share with you all.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;1. This was between friends of mine who worked in my previous company; they both work in the same team providing support to one of their clients. One is an ORACLE DBA and other is SQL Server DBA. They have argued hardly to decide which Database systems is the best and have ended up criticizing Larry Ellison and Bill Gates.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;2. The next is between the web browsers, I have read a numerous articles in the blogs and other websites saying IE is the best or Chrome is the best or Firefox is the best, etc. The same has happened between my known persons where they have ended using abusive languages. I am sorry to say this, but when people lose temper that is the end result.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;3. Again, between my old colleagues, about WINDOWS or UNIX, each of them have had strong points to prove that they work on the latest technology of the server side Operating systems but failed to convince others. Thank God, NO blows or words were exchanged in the incident.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Now, let me come to say this, each technology or application is designed for a purpose and has its own pros and cons with it. Thanks to my patience in the recent past that I have not had such an Unhealthy Argument like this. In my opinion, a Database or an Operating system is chosen with the needs of the application or the system to be designed. It comes as a decision on that has to be compatible with the end application to be designed. The architect who decides on what needs to be used is not a biased person, he/she knows that he has to be committed to his company's core business values and chooses one deciding on it.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;So, people going forth I request each of you not to have a discussion or argument to decide which the best is. We all work on the latest technologies of what we have now and should be proud that most of us are redefining technology that has got us in the past. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;Again, this is a personal opinion and was written not to hurt anyone. Thanks for taking time to read this blog. Your comments on the same are welcome.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-3421320542499159441?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/3421320542499159441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=3421320542499159441' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3421320542499159441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3421320542499159441'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/10/unhealthy-arguement.html' title='The Unhealthy Argument'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-338313074352911411</id><published>2009-10-01T10:43:00.002-04:00</published><updated>2009-10-01T10:44:40.969-04:00</updated><title type='text'>Back to Blogging</title><content type='html'>It has been almost 40 days since my last blog. I am back to work and people can expect more SQL Server related stuff on this blog again. If you need any specific interests, Please do send me a note so that the same can be put as an article.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Many thanks for reading.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-338313074352911411?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/338313074352911411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=338313074352911411' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/338313074352911411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/338313074352911411'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/10/back-to-blogging.html' title='Back to Blogging'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-7650679191055130147</id><published>2009-08-18T01:38:00.002-04:00</published><updated>2009-08-18T01:40:53.283-04:00</updated><title type='text'>Out for Vacation</title><content type='html'>For those who are trying to mail me or looking out reasons finding why I am not online in any of the messangers. The answer is here. I will be out for vacation till mid of september. I will check mails few times a week but no more than that. If i don't write back to you, Please wait. Many thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-7650679191055130147?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/7650679191055130147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=7650679191055130147' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7650679191055130147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7650679191055130147'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/08/out-for-vacation.html' title='Out for Vacation'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-7416531258453504271</id><published>2009-08-13T07:14:00.002-04:00</published><updated>2009-08-13T07:21:16.681-04:00</updated><title type='text'>Virtual TechDays: FREE Technical Training Opportunity</title><content type='html'>&lt;p class="MsoNormal"&gt;Microsoft is Offering Free SQL Server and other products Techinical training in India. This is an online event. Please use the link below to register.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;a href="https://login.live.com/wlogin.srf?appid=000000004C002E22&amp;amp;alg=wsignin1.0"&gt;Click Here to Register&lt;/a&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-7416531258453504271?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/7416531258453504271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=7416531258453504271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7416531258453504271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7416531258453504271'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/08/virtual-techdays-free-technical.html' title='Virtual TechDays: FREE Technical Training Opportunity'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-71381704350288832</id><published>2009-08-04T06:46:00.002-04:00</published><updated>2009-08-04T06:49:27.574-04:00</updated><title type='text'>Chennai SQL Server User Group Meeting</title><content type='html'>We held our first SQL Server User Group meeting successfully. The deatils of what happened on the event and the related presentations can be downloaded from the link below. Please feel free to touch base with me if you are interested to be part of this wonderful user group.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://cssug.blogspot.com/2009/07/chennai-sql-server-user-group-meeting.html"&gt;http://cssug.blogspot.com/2009/07/chennai-sql-server-user-group-meeting.html&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-71381704350288832?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/71381704350288832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=71381704350288832' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/71381704350288832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/71381704350288832'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/08/chennai-sql-server-user-group-meeting.html' title='Chennai SQL Server User Group Meeting'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-9219458804305263027</id><published>2009-07-01T06:50:00.003-04:00</published><updated>2009-07-01T06:57:00.403-04:00</updated><title type='text'>Awarded MVP Again</title><content type='html'>I am Happy to say that I have been Awarded MVP for this year too. Adding the TAG MVP to my name had always distinguished me from other technologists near me. It has been a pleasant experience and happy to be on those same lines again for another year. And it's Thanking time again for those who have made a difference in my life and for those who have been with me during my tough days this year.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Krishna Gopalan&lt;/span&gt; - KG, I wish to be near you to share the joy this moment. I can still hear you saying "Sugesh, I know you are the right person to do this job", whenever I heard that gave me confidence to enrich my skills as a DBA helping me to achieve near expertise.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Stephen Seth, Vidhya Sagar and Deepak&lt;/span&gt; - It is with these guys that I grew up enriching my SQL Server skills. Without them, I would still be a DBA not a MVP.&lt;br /&gt;&lt;br /&gt;I would like to thank my friends &lt;span style="font-weight:bold;"&gt;Dalavai Shanmugha Sundaram, Mr&amp;Mrs. Stephen Seth,  Mr&amp;Mrs. Arun Kamaraj, Chakravarthi Elangovan and Poornima rangaswamy&lt;/span&gt; for being with me during this tough days of personal and professional career.&lt;br /&gt;&lt;br /&gt;A special mention of thanks to &lt;span style="font-weight:bold;"&gt;Rangaswamy and Rani Thilagam Rangaswamy&lt;/span&gt; for shouldering my responsibilities in India when I stay in USA.&lt;br /&gt;&lt;br /&gt;And &lt;span style="font-weight:bold;"&gt;my parents and sister&lt;/span&gt;, I have no words to thank them. Without thier support and encouragement I would not have got this again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-9219458804305263027?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/9219458804305263027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=9219458804305263027' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/9219458804305263027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/9219458804305263027'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/07/awarded-mvp-again.html' title='Awarded MVP Again'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-47045921578553963</id><published>2009-06-10T17:57:00.002-04:00</published><updated>2009-06-10T20:32:05.291-04:00</updated><title type='text'>Creating System Objects in SQL Server</title><content type='html'>You can create an object in SQL Server and convert it to a system object just by marking the object as given below.&lt;br /&gt;&lt;br /&gt;sp_MS_marksystemobject 'object_name'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-47045921578553963?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/47045921578553963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=47045921578553963' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/47045921578553963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/47045921578553963'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/06/creating-system-objects-in-sql-server.html' title='Creating System Objects in SQL Server'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-2099251425049654453</id><published>2009-05-09T08:40:00.000-04:00</published><updated>2009-05-09T08:40:10.169-04:00</updated><title type='text'>Are You Certifiable???</title><content type='html'>"www.areyoucertifiable.com"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-2099251425049654453?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/2099251425049654453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=2099251425049654453' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2099251425049654453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2099251425049654453'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/05/are-you-certifiable.html' title='Are You Certifiable???'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-2989848189122009518</id><published>2009-04-21T11:17:00.002-04:00</published><updated>2009-04-21T11:18:16.116-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Scripts'/><title type='text'>Drive Details using TSQL</title><content type='html'>&lt;div&gt;SET NOCOUNT ON&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;DECLARE @res INT, &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;@objdets INT,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;@drive INT, &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;@getdrive VARCHAR(13), &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;@totalsize VARCHAR(50), &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;@freespace VARCHAR(50), &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;@DriveLetter char(1)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;CREATE TABLE ##Drivespacedetails&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;(&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;DriveLetter CHAR(1),&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;TotalSpace bigint,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;FreeSpace bigint,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;INSERT INTO ##Drivespacedetails(DriveLetter,FreeSpace)&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;EXEC master.dbo.xp_fixeddrives&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;DECLARE  drivedetails CURSOR&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;FOR SELECT DriveLetter FROM ##Drivespacedetails&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;OPEN drivedetails&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;FETCH NEXT FROM drivedetails INTO @DriveLetter&lt;/div&gt;&lt;div&gt;WHILE (@@fetch_status &lt;&gt; -1)&lt;/div&gt;&lt;div&gt;BEGIN&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; SET @getdrive = 'GetDrive("' + @DriveLetter + '")' &lt;/div&gt;&lt;div&gt;         EXEC @res = sp_OACreate 'Scripting.FileSystemObject', @objdets OUTPUT &lt;/div&gt;&lt;div&gt;         IF @res = 0  &lt;/div&gt;&lt;div&gt;         EXEC @res = sp_OAMethod @objdets, @getdrive, @drive OUTPUT &lt;/div&gt;&lt;div&gt;         IF @res = 0  &lt;/div&gt;&lt;div&gt;         EXEC @res = sp_OAGetProperty @drive,'TotalSize', @totalsize OUTPUT &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;     IF @res = 0  &lt;/div&gt;&lt;div&gt;         EXEC @res = sp_OAGetProperty @drive,'FreeSpace', @freespace OUTPUT &lt;/div&gt;&lt;div&gt;         IF @res &lt;&gt; 0  &lt;/div&gt;&lt;div&gt;         EXEC sp_OADestroy @drive &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; EXEC sp_OADestroy @objdets &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; SET @totalsize = (CONVERT(BIGINT,@totalsize) / 1048576 )&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; SET @freespace = (CONVERT(BIGINT,@freespace) / 1048576 )&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;     update ##Drivespacedetails set TotalSpace=@totalsize,FreeSpace=@freespace where DriveLetter=@DriveLetter&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; FETCH NEXT FROM drivedetails INTO @DriveLetter&lt;/div&gt;&lt;div&gt;END&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;CLOSE drivedetails&lt;/div&gt;&lt;div&gt;DEALLOCATE drivedetails&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SELECT @@servername as ServerName,DriveLetter,FreeSpace AS [FreeSpace MB], (TotalSpace - FreeSpace) AS [UsedSpace MB], TotalSpace AS [TotalSpace MB], ((CONVERT(NUMERIC(9,0),FreeSpace) / CONVERT(NUMERIC(9,0),TotalSpace)) * 100) AS [Percentage Free]&lt;/div&gt;&lt;div&gt;FROM ##Drivespacedetails ORDER BY [DriveLetter] ASC&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;DROP TABLE ##Drivespacedetails&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-2989848189122009518?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/2989848189122009518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=2989848189122009518' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2989848189122009518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2989848189122009518'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/04/drive-details-using-tsql.html' title='Drive Details using TSQL'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-1490402512049944666</id><published>2009-04-16T10:04:00.000-04:00</published><updated>2009-04-16T10:06:07.586-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Scripts'/><title type='text'>Determine which objects exist in a particular filegroup</title><content type='html'>&lt;div&gt;SELECT o.[name], o.[type], i.[name], i.[index_id], f.[name]&lt;/div&gt;&lt;div&gt;FROM sys.indexes i&lt;/div&gt;&lt;div&gt;INNER JOIN sys.filegroups f&lt;/div&gt;&lt;div&gt;ON i.data_space_id = f.data_space_id&lt;/div&gt;&lt;div&gt;INNER JOIN sys.all_objects o&lt;/div&gt;&lt;div&gt;ON i.[object_id] = o.[object_id]&lt;/div&gt;&lt;div&gt;WHERE i.data_space_id = f.data_space_id --* New FileGroup*&lt;/div&gt;&lt;div&gt;GO&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-1490402512049944666?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/1490402512049944666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=1490402512049944666' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1490402512049944666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1490402512049944666'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/04/determine-which-objects-exist-in.html' title='Determine which objects exist in a particular filegroup'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5859719375885954762</id><published>2009-04-14T10:13:00.000-04:00</published><updated>2009-04-14T10:14:01.724-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Scripts'/><title type='text'>How to find startup procedures in sql</title><content type='html'>SELECT ROUTINE_NAMEFROM MASTER.INFORMATION_SCHEMA.ROUTINESWHERE OBJECTPROPERTY(OBJECT_ID(ROUTINE_NAME),'ExecIsStartup') = 1&lt;br /&gt;&lt;br /&gt;USE MASTER&lt;br /&gt;GO&lt;br /&gt;SELECT VALUE, VALUE_IN_USE, DESCRIPTION FROM SYS.CONFIGURATIONS WHERE NAME = 'scan for startup procs'GO&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5859719375885954762?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5859719375885954762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5859719375885954762' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5859719375885954762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5859719375885954762'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/04/how-to-find-startup-procedures-in-sql.html' title='How to find startup procedures in sql'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-3826289539998520588</id><published>2009-04-08T11:44:00.003-04:00</published><updated>2009-04-08T11:45:51.969-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Announcements'/><title type='text'>SQL Server 2008 SP1 released</title><content type='html'>SQL Server 2008 SP1 has been released to user community. Please find the download details given below.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19"&gt;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-3826289539998520588?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/3826289539998520588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=3826289539998520588' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3826289539998520588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3826289539998520588'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/04/sql-server-2008-sp1-released.html' title='SQL Server 2008 SP1 released'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-26750253841452034</id><published>2009-04-08T09:59:00.002-04:00</published><updated>2009-04-08T10:00:07.075-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Scripts'/><title type='text'>Drop Indexes in a Database</title><content type='html'>&lt;div&gt;set nocount on&lt;/div&gt;&lt;div&gt;go&lt;/div&gt;&lt;div&gt;DECLARE @sql VARCHAR(2000),@DB VARCHAR(100),@count int,@TableName varchar(200),&lt;/div&gt;&lt;div&gt;@Index_Name varchar(200),@ConstraintName varchar(200)&lt;/div&gt;&lt;div&gt;SET @DB = db_name()&lt;/div&gt;&lt;div&gt;if exists(select * from msdb..sysobjects where name =&lt;/div&gt;&lt;div&gt;'DropIndexes_AllTables')&lt;/div&gt;&lt;div&gt;drop table msdb.dbo.DropIndexes_AllTables&lt;/div&gt;&lt;div&gt;CREATE TABLE msdb.dbo.DropIndexes_AllTables(tablename&lt;/div&gt;&lt;div&gt;varchar(200),ConstraintName varchar(200),Index_Name varchar(200),type&lt;/div&gt;&lt;div&gt;varchar(10))&lt;/div&gt;&lt;div&gt;SELECT @SQL = 'USE '+@db+char(13)+'SELECT object_name(parent_object_id)&lt;/div&gt;&lt;div&gt;TableName,sobj.Name ConstraintName,sidx.name Index_Name,type FROM sys.objects&lt;/div&gt;&lt;div&gt;sobj&lt;/div&gt;&lt;div&gt;join '+@db+'.dbo.sysindexes sidx on sobj.parent_object_id = sidx.id&lt;/div&gt;&lt;div&gt;where indid &gt; 0 and type in&lt;/div&gt;&lt;div&gt;(''u'',''PK'',''UQ'') and&lt;/div&gt;&lt;div&gt;sidx.name not like ''_WA_sys_%'''&lt;/div&gt;&lt;div&gt;print @sql&lt;/div&gt;&lt;div&gt;insert into msdb.dbo.DropIndexes_AllTables&lt;/div&gt;&lt;div&gt;exec(@sql)&lt;/div&gt;&lt;div&gt;create table #temp_baby(ConstraintName varchar(200),TableName varchar(150))&lt;/div&gt;&lt;div&gt;select ConstraintName,TableName, Index_Name,Type from&lt;/div&gt;&lt;div&gt;msdb.dbo.DropIndexes_AllTables&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;insert into #temp_baby(ConstraintName,TableName)&lt;/div&gt;&lt;div&gt;select distinct ConstraintName,TableName from msdb.dbo.DropIndexes_AllTables&lt;/div&gt;&lt;div&gt;select @count = count(*) from #temp_baby&lt;/div&gt;&lt;div&gt;while(@count &gt; 0)&lt;/div&gt;&lt;div&gt;begin&lt;/div&gt;&lt;div&gt;select top 1 @ConstraintName = ConstraintName,@tablename = tablename from&lt;/div&gt;&lt;div&gt;#temp_baby&lt;/div&gt;&lt;div&gt;select @sql = 'USE '+@db+char(13)+'alter table '+@tablename+' drop&lt;/div&gt;&lt;div&gt;constraint '+@ConstraintName+''&lt;/div&gt;&lt;div&gt;print @sql&lt;/div&gt;&lt;div&gt;delete from #temp_baby where ConstraintName = @ConstraintName and tablename =&lt;/div&gt;&lt;div&gt;@tablename&lt;/div&gt;&lt;div&gt;select @count = count(*) from #temp_baby&lt;/div&gt;&lt;div&gt;end&lt;/div&gt;&lt;div&gt;insert into #temp_baby(ConstraintName,TableName)&lt;/div&gt;&lt;div&gt;select distinct ConstraintName,TableName from msdb.dbo.DropIndexes_AllTables&lt;/div&gt;&lt;div&gt;print '------'&lt;/div&gt;&lt;div&gt;delete from msdb.dbo.DropIndexes_AllTables where Index_Name in (select&lt;/div&gt;&lt;div&gt;ConstraintName from #temp_baby)&lt;/div&gt;&lt;div&gt;select @count = count(*) from msdb.dbo.DropIndexes_AllTables&lt;/div&gt;&lt;div&gt;while(@count &gt; 0)&lt;/div&gt;&lt;div&gt;Begin&lt;/div&gt;&lt;div&gt;select top 1 @tablename = TableName,@Index_name = Index_Name from&lt;/div&gt;&lt;div&gt;msdb.dbo.DropIndexes_AllTables order by tablename&lt;/div&gt;&lt;div&gt;select @sql = 'USE '+@DB+';drop index&lt;/div&gt;&lt;div&gt;'+@tablename+'.'+@Index_name+''&lt;/div&gt;&lt;div&gt;print @sql&lt;/div&gt;&lt;div&gt;--print @tablename, @Index_name&lt;/div&gt;&lt;div&gt;delete from msdb.dbo.DropIndexes_AllTables where TableName = @tablename and&lt;/div&gt;&lt;div&gt;Index_Name = @Index_name&lt;/div&gt;&lt;div&gt;select @count = count(*) from msdb.dbo.DropIndexes_AllTables&lt;/div&gt;&lt;div&gt;end&lt;/div&gt;&lt;div&gt;drop table #temp_baby&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-26750253841452034?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/26750253841452034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=26750253841452034' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/26750253841452034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/26750253841452034'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/04/drop-indexes-in-database.html' title='Drop Indexes in a Database'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-3220634308537310499</id><published>2009-04-07T09:59:00.003-04:00</published><updated>2009-04-07T10:01:58.261-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Change Data Capture'/><title type='text'>Change Data Capture</title><content type='html'>This article introduces to a new feature in SQL Server 2008, Change Data Capture. Change Data Capture records insert, update and delete activity in your table and the details of these changes are available in a format that can be easily consumed. The database must be enabled to Capture Changes to it. A member of sysadmin fixed role can enable the change. Once that is done, members of db_owner can enable tables for which change needs to be monitored. When the first table in the database is enabled, a capture process gathers changed data from the transaction log and inserts the change information in the associated change table. Additional metadata about each transaction is inserted in a metadata table that allows the captured changes to be placed on a conventional timeline.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step to Enable and Configure Change Data Capture:&lt;/span&gt;&lt;br /&gt;1. Create a database SQL Server 2008&lt;br /&gt;create database CDC_TEST&lt;br /&gt;go &lt;br /&gt;2. Enable CDC in the database created.&lt;br /&gt;USE SQL2008CDC&lt;br /&gt;GO&lt;br /&gt;EXEC sp_cdc_enable_db&lt;br /&gt;GO&lt;br /&gt;You can verify if CDC is enabled using the query below for the database.&lt;br /&gt;select [name] as DBName,is_cdc_enabled from sys.databases where db_name(database_id)=DB_NAME()&lt;br /&gt;3. You will be a new schema CDC and few system tables created under the database. Change Data Capture requires exclusive use of cdc user and schema.&lt;br /&gt;4. Create a table to enable CDC&lt;br /&gt;USE CDC_TEST&lt;br /&gt;GO&lt;br /&gt;CREATE TABLE dbo.CDC_TEST(&lt;br /&gt;ID int Primary Key NOT NULL,&lt;br /&gt;Name nvarchar(100) NOT NULL,&lt;br /&gt;Email nvarchar(100) NOT NULL)&lt;br /&gt;5. SQL Server agent must be started for CDC.&lt;br /&gt;6. Enable CD for the table where you need to capture the change.&lt;br /&gt;EXEC sp_cdc_enable_table 'dbo', 'cdc_test',&lt;br /&gt;@role_name = NULL, @supports_net_changes =1&lt;br /&gt;You can verify if CDC is enabled using the query below for the table.&lt;br /&gt;use SQL2008CDC&lt;br /&gt;go&lt;br /&gt;select [name], is_tracked_by_cdc from sys.tables&lt;br /&gt;7. Once CDC is enabled for a table, you will find a _CT table created by itself.&lt;br /&gt;8. Now we will verify how CDC works by running a insert into the table CDC_TEST.&lt;br /&gt;use SQL2008CDC&lt;br /&gt;go&lt;br /&gt;INSERT INTO dbo.cdc_test&lt;br /&gt;values (1, N'sugeshkumar', N'sugeshkr@gmail.com')&lt;br /&gt;9. Now update the row that we have inserted in the previous step.&lt;br /&gt;use SQL2008CDC&lt;br /&gt;go&lt;br /&gt;update dbo.cdc_test set name='sugesh' where id = 1&lt;br /&gt;10. The before image and after image of the row can be found on the table that was created with the name _CT.&lt;br /&gt;The column _$operation has the value for the DML operation done, 1 is for delete, 2 for insert, 3 for before image, 4 for after image&lt;br /&gt;&lt;img src="http://1.bp.blogspot.com/_ZOMrIctR-AE/SdtciGi7raI/AAAAAAAACCQ/o8TEPTbWdiU/s200/untitled.JPG" style="cursor:pointer; cursor:hand;width: 200px; height: 34px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5321949125610810786" /&gt;&lt;br /&gt;You have seen how to enable and configure CDC for a database and table. The list below gives you all available Stored Procedures, DMVs, Functions and table list that is used by Change Data Capture.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Stored Procedures&lt;/span&gt;&lt;br /&gt;sys.sp_cdc_add_job (Transact-SQL)&lt;br /&gt;sys.sp_cdc_generate_wrapper_function (Transact-SQL)&lt;br /&gt;sys.sp_cdc_change_job (Transact-SQL)&lt;br /&gt;sys.sp_cdc_get_captured_columns (Transact-SQL)&lt;br /&gt;sys.sp_cdc_cleanup_change_table (Transact-SQL)&lt;br /&gt;sys.sp_cdc_get_ddl_history (Transact-SQL)&lt;br /&gt;sys.sp_cdc_disable_db (Transact-SQL)&lt;br /&gt;sys.sp_cdc_help_change_data_capture (Transact-SQL)&lt;br /&gt;sys.sp_cdc_disable_table (Transact-SQL)&lt;br /&gt;sys.sp_cdc_help_jobs (Transact-SQL)&lt;br /&gt;sys.sp_cdc_drop_job (Transact-SQL)&lt;br /&gt;sys.sp_cdc_scan (Transact-SQL)&lt;br /&gt;sys.sp_cdc_enable_db (Transact-SQL)&lt;br /&gt;sys.sp_cdc_start_job (Transact-SQL)&lt;br /&gt;sys.sp_cdc_enable_table (Transact-SQL)&lt;br /&gt;sys.sp_cdc_stop_job (Transact-SQL)&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Dynamic Management Views&lt;/span&gt;&lt;br /&gt;sys.dm_cdc_log_scan_sessions (Transact-SQL)&lt;br /&gt;sys.dm_cdc_errors (Transact-SQL)&lt;br /&gt;sys.dm_repl_traninfo (Transact-SQL)&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Tables&lt;/span&gt;&lt;br /&gt;cdc.&lt;capture_instance&gt;_CT&lt;br /&gt;Returns one row for each change made to a captured column in the associated source table.&lt;br /&gt;&lt;br /&gt;cdc.captured_columns&lt;br /&gt;Returns one row for each column tracked in a capture instance.&lt;br /&gt;&lt;br /&gt;cdc.change_tables&lt;br /&gt;Returns one row for each change table in the database.&lt;br /&gt;&lt;br /&gt;cdc.ddl_history&lt;br /&gt;Returns one row for each data definition language (DDL) change made to tables that are enabled for change data capture.&lt;br /&gt;&lt;br /&gt;cdc.lsn_time_mapping&lt;br /&gt;Returns one row for each transaction having rows in a change table. This table is used to map between log sequence number (LSN) commit values and the time the transaction committed.&lt;br /&gt;&lt;br /&gt;cdc.index_columns&lt;br /&gt;Returns one row for each index column associated with a change table.&lt;br /&gt;&lt;br /&gt;dbo.cdc_jobs (Transact-SQL)&lt;br /&gt;Returns the configuration parameters for change data capture agent jobs&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Functions&lt;/span&gt;&lt;br /&gt;cdc.fn_cdc_get_all_changes_&lt;capture_instance&gt; (Transact-SQL)&lt;br /&gt;sys.fn_cdc_has_column_changed (Transact-SQL)&lt;br /&gt;cdc.fn_cdc_get_net_changes_&lt;capture_instance&gt; (Transact-SQL)&lt;br /&gt;sys.fn_cdc_increment_lsn (Transact-SQL)&lt;br /&gt;sys.fn_cdc_decrement_lsn (Transact-SQL)&lt;br /&gt;sys.fn_cdc_is_bit_set (Transact-SQL)&lt;br /&gt;sys.fn_cdc_get_column_ordinal (Transact-SQL)&lt;br /&gt;sys.fn_cdc_map_lsn_to_time (Transact-SQL)&lt;br /&gt;sys.fn_cdc_get_max_lsn (Transact-SQL)&lt;br /&gt;sys.fn_cdc_map_time_to_lsn (Transact-SQL)&lt;br /&gt;sys.fn_cdc_get_min_lsn (Transact-SQL)&lt;br /&gt;&lt;br /&gt;&lt;/capture_instance&gt;&lt;/capture_instance&gt;&lt;/capture_instance&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-3220634308537310499?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/3220634308537310499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=3220634308537310499' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3220634308537310499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3220634308537310499'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/04/change-data-capture.html' title='Change Data Capture'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ZOMrIctR-AE/SdtciGi7raI/AAAAAAAACCQ/o8TEPTbWdiU/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-2231896232463437486</id><published>2009-04-06T10:07:00.002-04:00</published><updated>2009-04-06T10:08:21.440-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Scripts'/><title type='text'>Generate Create Index Scripts for a Database</title><content type='html'>-- Get all existing indexes, but NOT the primary keys&lt;br /&gt;DECLARE cIX CURSOR FOR&lt;br /&gt;   SELECT OBJECT_NAME(SI.Object_ID), SI.Object_ID, SI.Name, SI.Index_ID&lt;br /&gt;      FROM Sys.Indexes SI &lt;br /&gt;         LEFT JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS TC ON SI.Name = TC.CONSTRAINT_NAME AND OBJECT_NAME(SI.Object_ID) = TC.TABLE_NAME&lt;br /&gt;      WHERE TC.CONSTRAINT_NAME IS NULL&lt;br /&gt;         AND OBJECTPROPERTY(SI.Object_ID, 'IsUserTable') = 1&lt;br /&gt;      ORDER BY OBJECT_NAME(SI.Object_ID), SI.Index_ID&lt;br /&gt;&lt;br /&gt;DECLARE @IxTable SYSNAME&lt;br /&gt;DECLARE @IxTableID INT&lt;br /&gt;DECLARE @IxName SYSNAME&lt;br /&gt;DECLARE @IxID INT&lt;br /&gt;&lt;br /&gt;-- Loop through all indexes&lt;br /&gt;OPEN cIX&lt;br /&gt;FETCH NEXT FROM cIX INTO @IxTable, @IxTableID, @IxName, @IxID&lt;br /&gt;WHILE (@@FETCH_STATUS = 0)&lt;br /&gt;BEGIN&lt;br /&gt;   DECLARE @IXSQL NVARCHAR(4000) SET @IXSQL = ''&lt;br /&gt;   SET @IXSQL = 'CREATE '&lt;br /&gt;&lt;br /&gt;   -- Check if the index is unique&lt;br /&gt;   IF (INDEXPROPERTY(@IxTableID, @IxName, 'IsUnique') = 1)&lt;br /&gt;      SET @IXSQL = @IXSQL + 'UNIQUE '&lt;br /&gt;   -- Check if the index is clustered&lt;br /&gt;   IF (INDEXPROPERTY(@IxTableID, @IxName, 'IsClustered') = 1)&lt;br /&gt;      SET @IXSQL = @IXSQL + 'CLUSTERED '&lt;br /&gt;&lt;br /&gt;   SET @IXSQL = @IXSQL + 'INDEX ' + @IxName + ' ON ' + @IxTable + '('&lt;br /&gt;&lt;br /&gt;   -- Get all columns of the index&lt;br /&gt;   DECLARE cIxColumn CURSOR FOR &lt;br /&gt;      SELECT SC.Name&lt;br /&gt;      FROM Sys.Index_Columns IC&lt;br /&gt;         JOIN Sys.Columns SC ON IC.Object_ID = SC.Object_ID AND IC.Column_ID = SC.Column_ID&lt;br /&gt;      WHERE IC.Object_ID = @IxTableID AND Index_ID = @IxID&lt;br /&gt;      ORDER BY IC.Index_Column_ID&lt;br /&gt;&lt;br /&gt;   DECLARE @IxColumn SYSNAME&lt;br /&gt;   DECLARE @IxFirstColumn BIT SET @IxFirstColumn = 1&lt;br /&gt;&lt;br /&gt;   -- Loop throug all columns of the index and append them to the CREATE statement&lt;br /&gt;   OPEN cIxColumn&lt;br /&gt;   FETCH NEXT FROM cIxColumn INTO @IxColumn&lt;br /&gt;   WHILE (@@FETCH_STATUS = 0)&lt;br /&gt;   BEGIN&lt;br /&gt;      IF (@IxFirstColumn = 1)&lt;br /&gt;         SET @IxFirstColumn = 0&lt;br /&gt;      ELSE&lt;br /&gt;         SET @IXSQL = @IXSQL + ', '&lt;br /&gt;&lt;br /&gt;      SET @IXSQL = @IXSQL + @IxColumn&lt;br /&gt;&lt;br /&gt;      FETCH NEXT FROM cIxColumn INTO @IxColumn&lt;br /&gt;   END&lt;br /&gt;   CLOSE cIxColumn&lt;br /&gt;   DEALLOCATE cIxColumn&lt;br /&gt;&lt;br /&gt;   SET @IXSQL = @IXSQL + ')'&lt;br /&gt;   -- Print out the CREATE statement for the index&lt;br /&gt;   PRINT @IXSQL&lt;br /&gt;&lt;br /&gt;   FETCH NEXT FROM cIX INTO @IxTable, @IxTableID, @IxName, @IxID&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;CLOSE cIX&lt;br /&gt;DEALLOCATE cIX&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- Get all existing primary keys&lt;br /&gt;DECLARE cPK CURSOR FOR&lt;br /&gt;   SELECT TABLE_NAME, CONSTRAINT_NAME &lt;br /&gt;   FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS&lt;br /&gt;   ORDER BY TABLE_NAME&lt;br /&gt;&lt;br /&gt;DECLARE @PkTable SYSNAME&lt;br /&gt;DECLARE @PkName SYSNAME&lt;br /&gt;&lt;br /&gt;-- Loop through all the primary keys&lt;br /&gt;OPEN cPK&lt;br /&gt;FETCH NEXT FROM cPK INTO @PkTable, @PkName&lt;br /&gt;WHILE (@@FETCH_STATUS = 0)&lt;br /&gt;BEGIN&lt;br /&gt;   DECLARE @PKSQL NVARCHAR(4000) SET @PKSQL = ''&lt;br /&gt;   SET @PKSQL = 'ALTER TABLE ' + @PkTable + ' ADD CONSTRAINT ' + @PkName + ' PRIMARY KEY CLUSTERED ('&lt;br /&gt;&lt;br /&gt;   -- Get all columns for the current primary key&lt;br /&gt;   DECLARE cPKColumn CURSOR FOR&lt;br /&gt;      SELECT COLUMN_NAME &lt;br /&gt;      FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE&lt;br /&gt;      WHERE TABLE_NAME = @PkTable AND CONSTRAINT_NAME = @PkName&lt;br /&gt;      ORDER BY ORDINAL_POSITION&lt;br /&gt;   OPEN cPKColumn&lt;br /&gt;&lt;br /&gt;   DECLARE @PkColumn SYSNAME&lt;br /&gt;   DECLARE @PkFirstColumn BIT SET @PkFirstColumn = 1&lt;br /&gt;   -- Loop through all columns and append the sql statement&lt;br /&gt;   FETCH NEXT FROM cPKColumn INTO @PkColumn&lt;br /&gt;   WHILE (@@FETCH_STATUS = 0)&lt;br /&gt;   BEGIN&lt;br /&gt;      IF (@PkFirstColumn = 1)&lt;br /&gt;         SET @PkFirstColumn = 0&lt;br /&gt;      ELSE&lt;br /&gt;         SET @PKSQL = @PKSQL + ', '&lt;br /&gt;&lt;br /&gt;      SET @PKSQL = @PKSQL + @PkColumn&lt;br /&gt;&lt;br /&gt;      FETCH NEXT FROM cPKColumn INTO @PkColumn&lt;br /&gt;   END&lt;br /&gt;   CLOSE cPKColumn&lt;br /&gt;   DEALLOCATE cPKColumn&lt;br /&gt;&lt;br /&gt;   SET @PKSQL = @PKSQL + ')'&lt;br /&gt;   -- Print the primary key statement&lt;br /&gt;   PRINT @PKSQL&lt;br /&gt;&lt;br /&gt;   FETCH NEXT FROM cPK INTO @PkTable, @PkName&lt;br /&gt;END&lt;br /&gt;CLOSE cPK&lt;br /&gt;DEALLOCATE cPK&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-2231896232463437486?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/2231896232463437486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=2231896232463437486' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2231896232463437486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2231896232463437486'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/04/generate-create-index-scripts-for.html' title='Generate Create Index Scripts for a Database'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-2980807880994362800</id><published>2009-04-03T11:25:00.003-04:00</published><updated>2009-04-03T11:28:55.186-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Security'/><title type='text'>Common SQL Server Security Issues and Solutions</title><content type='html'>This article is from Paul S Randal on securing SQL Server. This is a nice article on &lt;span class="Apple-style-span" style="font-style: italic;"&gt;how to secure SQL Server. &lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;a href="http://technet.microsoft.com/en-us/magazine/2009.05.sql.aspx"&gt;http://technet.microsoft.com/en-us/magazine/2009.05.sql.aspx &lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-2980807880994362800?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/2980807880994362800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=2980807880994362800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2980807880994362800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2980807880994362800'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/04/common-sql-server-security-issues-and.html' title='Common SQL Server Security Issues and Solutions'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-391152395624317890</id><published>2009-04-02T17:11:00.035-04:00</published><updated>2009-04-03T14:57:02.801-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><title type='text'>Show/Hide divs and swap images with SkinID using Javascript</title><content type='html'>&lt;div&gt;The following example shows 2 ways of using javascript to show/hide divs (or any elements) on the click event of an image and also to swap the image that uses a skin id. Since skins are applied on the server side, you cannot change SkinID on client side using javascript. Though this is a crude way of doing it, it worked for developing my website since this functionality is used on only one page. I am sure there are more better and easier ways to do it, but these examples can be used in a simple website that uses asp.net or HTML.&lt;br /&gt;&lt;br /&gt;&lt;strong style="font-weight: bold;"&gt;&lt;u&gt;Example 1: To Show only one div at a time.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;ASP.Net Code&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;pre class="postCode"&gt;&amp;lt;div id="divContent"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;h2&amp;gt;&amp;lt;a href="#" id="lnk1" onclick="return toggle('div1')"&amp;gt;What is Test?&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;&amp;lt;div id="div1" style="display:none"&amp;gt;&lt;br /&gt;   &amp;lt;p&amp;gt;Test Test Test Test Test Test Test&lt;br /&gt;   Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;   Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;   Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;   Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;   Test Test Test Test Test&amp;lt;/p&amp;gt;&lt;br /&gt;   &amp;lt;p&amp;gt;Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;   Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;   Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;   Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;   Test Test Test Test Test Test Test Test Test Test Test Test Test Test&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;h2&amp;gt;&amp;lt;a href="#" id="lnk8" onclick="return toggle('div8')"&amp;gt;What is Sample?&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;&amp;lt;div id="div8" style="display:none"&amp;gt;&lt;br /&gt;   &amp;lt;p&amp;gt;Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;   Sample Sample Sample Sample Sample Sample Sample Sample Sample &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;u&gt;&lt;strong&gt;JavaScript Code:&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;pre class="postCode"&gt;&lt;br /&gt;function toggle(divID)&lt;br /&gt;{&lt;br /&gt;   var divToShow = document.getElementById(divID); &lt;br /&gt;   var divUL = document.getElementById('dvfaq');&lt;br /&gt; var divs = divUL.getElementsByTagName('DIV');&lt;br /&gt; for(var i = 0; i &lt; divs.length; i++)&lt;br /&gt;   {&lt;br /&gt;     divs[i].style.display = 'none';&lt;br /&gt;     if(divToShow.style.display == 'none')&lt;br /&gt;     {&lt;br /&gt;      divToShow.style.display = 'block';&lt;br /&gt;     }&lt;br /&gt;   }&lt;br /&gt;   return false;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong style="font-weight: bold;"&gt;&lt;u&gt;Example 2: To Show multiple divs at a time and click to open and close.&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;ASP.Net Code&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;pre class="postCode"&gt;&lt;br /&gt;&amp;lt;a id="lnk0" href="#" onclick="return toggle('div0', 'lnk0')"&amp;gt;&lt;br /&gt;Q: What is Test? &amp;lt;asp:Image ID="imgToggle" SkinID="ArrowClose"&lt;br /&gt;style="display: inline" runat="server" /&amp;gt;&amp;lt;asp:Image ID="Image27"&lt;br /&gt;SkinID="ArrowOpen" style="display: none" runat="server" /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div id="div0" style="display:none"&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;A: Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test&lt;br /&gt;Test Test Test Test Test Test &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;a id="lnk1" href="#" onclick="return toggle('div1', 'lnk1')"&amp;gt;&lt;br /&gt;Q: What is Sample? &amp;lt;asp:Image ID="Image1" SkinID="ArrowClose"&lt;br /&gt;style="display: inline" runat="server" /&amp;gt;&amp;lt;asp:Image ID="Image28"&lt;br /&gt;SkinID="ArrowOpen" style="display: none" runat="server" /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div id="div1" style="display:none"&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt; Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;Sample Sample Sample Sample Sample Sample Sample&lt;br /&gt;Sample Sample Sample Sample &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;JavaScript Code:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre class="postCode"&gt;&lt;br /&gt;function toggle(divID, imgID)&lt;br /&gt;{&lt;br /&gt;var divToShow = document.getElementById(divID);&lt;br /&gt;if(divToShow.style.display == 'none')&lt;br /&gt;{&lt;br /&gt;  divToShow.style.display = 'block';&lt;br /&gt;}&lt;br /&gt;else if(divToShow.style.display == 'block')&lt;br /&gt;{&lt;br /&gt;  divToShow.style.display = 'none';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;var imgToShow = document.getElementById(imgID).getElementsByTagName('img')[0];&lt;br /&gt;var imgToHide = document.getElementById(imgID).getElementsByTagName('img')[1];&lt;br /&gt;&lt;br /&gt;if(imgToShow.style.display == 'none')&lt;br /&gt;{   &lt;br /&gt;imgToShow.style.display = 'inline';&lt;br /&gt;imgToHide.style.display = 'none';&lt;br /&gt;}&lt;br /&gt;else if(imgToShow.style.display == 'inline')&lt;br /&gt;{   &lt;br /&gt;imgToShow.style.display = 'none';   &lt;br /&gt;imgToHide.style.display = 'inline';&lt;br /&gt;}&lt;br /&gt;return false;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Skin Code:&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;pre class="postCode"&gt;&lt;br /&gt;&amp;lt;asp:Image runat="server" SkinID="ArrowClose" ImageUrl="images/arrowClose.gif"&lt;br /&gt;width="9" height="9" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:Image runat="server" SkinID="ArrowOpen" ImageUrl="images/arrowOpen.gif"&lt;br /&gt;width="9" height="9" /&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-391152395624317890?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/391152395624317890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=391152395624317890' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/391152395624317890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/391152395624317890'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/04/showhide-divs-and-swap-images-with.html' title='Show/Hide divs and swap images with SkinID using Javascript'/><author><name>Poo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-588279966334861218</id><published>2009-04-01T11:07:00.004-04:00</published><updated>2009-04-03T15:09:57.032-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server MIgration'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft Access'/><title type='text'>Migrating Access Database to SQL Server</title><content type='html'>&lt;span xmlns=""&gt;&lt;span style="font-family:Comic Sans MS;"&gt;I recently received a call from one of my friend asking me, what is the easiest way to migrate a database from ACCESS to SQL Server? I was curious on answering his question and just went for a search in internet to find it was much simple than what I expected. This article describes the steps to migrate a Access database to SQL Server.&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Comic Sans MS;"&gt;To Migrate Access to SQL Server database, download the tool &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=D842F8B4-C914-4AC7-B2F3-D25FFF4E24FB&amp;amp;displaylang=en"&gt;SQL Server Migration Assistant for Access&lt;/a&gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Comic Sans MS;"&gt;Install &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=D842F8B4-C914-4AC7-B2F3-D25FFF4E24FB&amp;amp;displaylang=en"&gt;SQL Server Migration Assistant for Access&lt;/a&gt;&lt;span style="color:black;"&gt; on local computer&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Comic Sans MS;"&gt;&lt;span style="color:black;"&gt;You need to have the access database closed while migrating to SQL Server.&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Comic Sans MS;"&gt;Goto Start-&gt;;Programs-&gt;;Microsoft SQL Server Migration Assistant 2008 for Access-&gt;;Microsoft SQL Server Migration Assistant 2008 for Access from the computer where it's installed. You will see the welcome screen.&lt;br /&gt;&lt;/span&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 200px; DISPLAY: block; HEIGHT: 132px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5319741876109255922" border="0" alt="" src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SdOFDRZDJPI/AAAAAAAACAg/QNC1FoUjUcE/s200/1.JPG" /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Comic Sans MS;"&gt;Click Next, Create a new project by entering the Name of the project and it's location. &lt;/span&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 200px; DISPLAY: block; HEIGHT: 132px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5319741916993695474" border="0" alt="" src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SdOFFpsqLvI/AAAAAAAACAo/REk8eHbWQ_w/s200/2.JPG" /&gt;&lt;span style="font-family:Comic Sans MS;"&gt;Click Next, You will be taken to a screen to add the Access database. Click on Add Databases button to specify the folder where your access database resides.&lt;br /&gt;&lt;/span&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 200px; DISPLAY: block; HEIGHT: 132px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5319741951990107426" border="0" alt="" src="http://1.bp.blogspot.com/_ZOMrIctR-AE/SdOFHsEdDSI/AAAAAAAACAw/d3q-3y_FoZg/s200/3.JPG" /&gt;&lt;span style="font-family:Comic Sans MS;"&gt;Click Next, Here you will have option to migrate only data and/or the queries too. Here, we are migrating both data and the queries.&lt;br /&gt;&lt;/span&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 200px; DISPLAY: block; HEIGHT: 132px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5319741986762955602" border="0" alt="" src="http://4.bp.blogspot.com/_ZOMrIctR-AE/SdOFJtm8m1I/AAAAAAAACA4/aAp_44_DFZg/s200/4.JPG" /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Comic Sans MS;"&gt;Click Next, You will see the SQL Server connection Screen. Here specify the SQL Server instance where you want to move your Access database along with the destination Database name and credentials.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 200px; DISPLAY: block; HEIGHT: 132px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5319742021879408498" border="0" alt="" src="http://4.bp.blogspot.com/_ZOMrIctR-AE/SdOFLwbXJ3I/AAAAAAAACBA/IBZu86ayVF4/s200/5.JPG" /&gt; &lt;p&gt;&lt;span style="font-family:Comic Sans MS;"&gt;Click Next to Link tables. If you want to use your existing Access applications with SQL Server, you can link your original Access tables to the migrated SQL Server tables. Linking modifies your Access database so that your queries, forms, reports, and data access pages use the data in the SQL Server database instead of the data in your Access database. &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 200px; DISPLAY: block; HEIGHT: 132px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5319742055258506258" border="0" alt="" src="http://3.bp.blogspot.com/_ZOMrIctR-AE/SdOFNsxjxBI/AAAAAAAACBI/bMnK1bfJqFg/s200/6.JPG" /&gt;&lt;span style="font-family:Comic Sans MS;"&gt;Click Next to start Migration.&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 200px; DISPLAY: block; HEIGHT: 132px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5319742102056529378" border="0" alt="" src="http://3.bp.blogspot.com/_ZOMrIctR-AE/SdOFQbHE7eI/AAAAAAAACBQ/Zmt5MerzBOk/s200/7.JPG" /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Comic Sans MS;"&gt;You will see the objects and queries to be migrated. Here If there are any errors or discrepencies will also notified. &lt;/span&gt;&lt;br /&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 200px; DISPLAY: block; HEIGHT: 128px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5319742148625319906" border="0" alt="" src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SdOFTIl8R-I/AAAAAAAACBY/aE3jwAhBcH4/s200/8.JPG" /&gt;&lt;span style="font-family:Comic Sans MS;"&gt;Click Ok to complete migration. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 200px; DISPLAY: block; HEIGHT: 132px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5319742201246185250" border="0" alt="" src="http://4.bp.blogspot.com/_ZOMrIctR-AE/SdOFWMnu9yI/AAAAAAAACBg/wyKYCa-aWI8/s200/9.JPG" /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Comic Sans MS;"&gt;Now, you can open your SQL Server database to see that the Access tables and Queries are migrated. The Queries will be migrated as Views and you can use them as you did in the Access tables. The migration task is simple than expected. Now the next task that you will learn from me on this is HOW TO MIGRATE ACCESS REPORTS TO SQL SERVER? &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-588279966334861218?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/588279966334861218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=588279966334861218' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/588279966334861218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/588279966334861218'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/04/migrating-access-database-to-sql-server.html' title='Migrating Access Database to SQL Server'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ZOMrIctR-AE/SdOFDRZDJPI/AAAAAAAACAg/QNC1FoUjUcE/s72-c/1.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-1233730190836592131</id><published>2009-03-28T12:31:00.002-04:00</published><updated>2009-03-28T12:33:28.462-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Databases'/><title type='text'>Database Size Info</title><content type='html'>&lt;span xmlns=""&gt;&lt;p&gt;declare @dbname sysname&lt;br /&gt;&lt;/p&gt;&lt;p&gt;set nocount on&lt;br /&gt;&lt;/p&gt;&lt;p&gt;if @dbname is not null and @dbname not in (select name from sysdatabases (nolock))&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  begin&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    raiserror('Incorrect database name. ', 16, 1)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  end&lt;br /&gt;&lt;/p&gt;&lt;p&gt;create table #datafilestats&lt;br /&gt;&lt;/p&gt;&lt;p&gt;(    dbname varchar(25),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    flag bit default 0,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    Fileid tinyint,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    [FileGroup] tinyint,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    TotalExtents dec (8, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    UsedExtents dec (8, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    [Name] varchar(50),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    [FileName] sysname )&lt;br /&gt;&lt;/p&gt;&lt;p&gt;declare @string sysname, @dbname1 sysname&lt;br /&gt;&lt;/p&gt;&lt;p&gt;set @string = ''&lt;br /&gt;&lt;/p&gt;&lt;p&gt;if @dbname is not null&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    set @dbname1 = @dbname&lt;br /&gt;&lt;/p&gt;&lt;p&gt;else&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    set @dbname1 = ''&lt;br /&gt;&lt;/p&gt;&lt;p&gt;set @dbname = ''&lt;br /&gt;&lt;/p&gt;&lt;p&gt;while 1=1&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    begin&lt;br /&gt;&lt;/p&gt;&lt;p&gt;      select top 1 @dbname = name from master..sysdatabases where name &amp;gt; @dbname --order by name asc      &lt;br /&gt;&lt;/p&gt;&lt;p&gt;      if @@rowcount = 0&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        break&lt;br /&gt;&lt;/p&gt;&lt;p&gt;      set @string = 'use ' + @dbname + ' DBCC SHOWFILESTATS with no_infomsgs'&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    insert into #datafilestats (Fileid, [FileGroup] , TotalExtents , UsedExtents , [Name] , [FileName]) exec (@string)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  update #datafilestats set dbname = @dbname, flag = 1 where flag = 0&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    update #datafilestats set TotalExtents = (select sum(TotalExtents)*8*8192.0/1048576.0 from #datafilestats where dbname = @dbname)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        where flag = 1 and Fileid = 1 and FileGroup = 1 and dbname = @dbname&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    update #datafilestats set UsedExtents = (select sum(UsedExtents)*8*8192.0/1048576.0 from #datafilestats where dbname = @dbname)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        where flag = 1 and Fileid = 1 and FileGroup = 1 and dbname = @dbname&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    end&lt;br /&gt;&lt;/p&gt;&lt;p&gt;create table #sizeinfo &lt;br /&gt;&lt;/p&gt;&lt;p&gt;( db_name varchar(30) not null primary key clustered,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  total dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  data dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  data_used dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  [data (%)] dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  data_free dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  [data_free (%)] dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  log dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  log_used dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  [log (%)] dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  log_free dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  [log_free (%)] dec (7, 1),&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  status dec (7, 1) )    &lt;br /&gt;&lt;/p&gt;&lt;p&gt;insert #sizeinfo (db_name, log, [log (%)], status ) exec ('dbcc sqlperf(logspace) with no_infomsgs')&lt;br /&gt;&lt;/p&gt;&lt;p&gt;update #sizeinfo set&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  data = d.TotalExtents from #datafilestats d join #sizeinfo s on d.dbname = s.db_name where d.flag = 1 and d.Fileid = 1 and d.FileGroup = 1&lt;br /&gt;&lt;/p&gt;&lt;p&gt;update #sizeinfo set&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  data_used = d.UsedExtents from #datafilestats d join #sizeinfo s on d.dbname = s.db_name where d.flag = 1 and d.Fileid = 1 and d.FileGroup = 1&lt;br /&gt;&lt;/p&gt;&lt;p&gt;update #sizeinfo set&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  total = (data + log)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;update #sizeinfo set&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    [data (%)] = (data_used * 100.0 / data)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;update #sizeinfo set&lt;br /&gt;&lt;/p&gt;&lt;p&gt;     data_free = (data - data_used)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;update #sizeinfo set&lt;br /&gt;&lt;/p&gt;&lt;p&gt;     [data_free (%)] = (100 - [data (%)])&lt;br /&gt;&lt;/p&gt;&lt;p&gt;update #sizeinfo set&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    log_used = (log * [log (%)] / 100.0)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;update #sizeinfo set&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    log_free = (log - log_used)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;update #sizeinfo set&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    [log_free (%)] = (log_free * 100.0 / log)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;print ''&lt;br /&gt;&lt;/p&gt;&lt;p&gt;if @dbname1 = ''&lt;br /&gt;&lt;/p&gt;&lt;p&gt;begin&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  print 'Database size report on ' + @@servername + ' as of ' + convert(varchar(30), getdate(), 100) + char(10)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    select db_name,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         total,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         data,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         data_used,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         [data (%)],&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         data_free,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         [data_free (%)],&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         log,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         log_used,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         [log (%)],&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         log_free,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         [log_free (%)]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    from #sizeinfo order by db_name asc compute sum(total)    &lt;br /&gt;&lt;/p&gt;&lt;p&gt;end&lt;br /&gt;&lt;/p&gt;&lt;p&gt;else&lt;br /&gt;&lt;/p&gt;&lt;p&gt;begin&lt;br /&gt;&lt;/p&gt;&lt;p&gt;print 'Database size report on ' + @@servername + '.' + @dbname1 + ' as of ' + convert(varchar(30), getdate(), 100) + char(10)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    select db_name,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         total,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         data,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         data_used,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         [data (%)],&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         data_free,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         [data_free (%)],&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         log,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         log_used,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         [log (%)],&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         log_free,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;         [log_free (%)]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    from #sizeinfo where db_name = @dbname1    &lt;br /&gt;&lt;/p&gt;&lt;p&gt;end&lt;br /&gt;&lt;/p&gt;&lt;p&gt;go&lt;br /&gt;&lt;/p&gt;&lt;p&gt;drop table #datafilestats &lt;br /&gt;&lt;/p&gt;&lt;p&gt;drop table #sizeinfo&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-1233730190836592131?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/1233730190836592131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=1233730190836592131' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1233730190836592131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1233730190836592131'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/database-size-info.html' title='Database Size Info'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-110082461458030424</id><published>2009-03-26T10:31:00.001-04:00</published><updated>2009-03-26T14:22:11.590-04:00</updated><title type='text'>Job Schedule Information for SQL Server 2005</title><content type='html'>&lt;div&gt;SELECT&lt;/div&gt;&lt;div&gt;   @@servername as [Server], msdb.dbo.sysjobs.name as [Name]&lt;/div&gt;&lt;div&gt;  , CASE&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysjobs.enabled = 0 THEN 'Disabled'&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysjobs.job_id IS NULL THEN 'Unscheduled'&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysschedules.freq_type = 0x1 -- OneTime&lt;/div&gt;&lt;div&gt;           THEN&lt;/div&gt;&lt;div&gt;               'Once on '&lt;/div&gt;&lt;div&gt;             + CONVERT(&lt;/div&gt;&lt;div&gt;                          CHAR(10)&lt;/div&gt;&lt;div&gt;                        , CAST( CAST( msdb.dbo.sysschedules.active_start_date AS VARCHAR ) AS DATETIME )&lt;/div&gt;&lt;div&gt;                        , 102 -- yyyy.mm.dd&lt;/div&gt;&lt;div&gt;                      )&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysschedules.freq_type = 0x4 -- Daily&lt;/div&gt;&lt;div&gt;           THEN 'Daily'&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysschedules.freq_type = 0x8 -- weekly&lt;/div&gt;&lt;div&gt;           THEN&lt;/div&gt;&lt;div&gt;               CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.freq_recurrence_factor = 1&lt;/div&gt;&lt;div&gt;                       THEN 'Weekly on '&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.freq_recurrence_factor &gt; 1&lt;/div&gt;&lt;div&gt;                       THEN 'Every '&lt;/div&gt;&lt;div&gt;                          + CAST( msdb.dbo.sysschedules.freq_recurrence_factor AS VARCHAR )&lt;/div&gt;&lt;div&gt;                          + ' weeks on '&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;             + LEFT(&lt;/div&gt;&lt;div&gt;                         CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp;  1 =  1 THEN 'Sunday, '    ELSE '' END&lt;/div&gt;&lt;div&gt;                       + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp;  2 =  2 THEN 'Monday, '    ELSE '' END&lt;/div&gt;&lt;div&gt;                       + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp;  4 =  4 THEN 'Tuesday, '   ELSE '' END&lt;/div&gt;&lt;div&gt;                       + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp;  8 =  8 THEN 'Wednesday, ' ELSE '' END&lt;/div&gt;&lt;div&gt;                       + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp; 16 = 16 THEN 'Thursday, '  ELSE '' END&lt;/div&gt;&lt;div&gt;                       + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp; 32 = 32 THEN 'Friday, '    ELSE '' END&lt;/div&gt;&lt;div&gt;                       + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp; 64 = 64 THEN 'Saturday, '  ELSE '' END&lt;/div&gt;&lt;div&gt;                     , LEN(&lt;/div&gt;&lt;div&gt;                                CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp;  1 =  1 THEN 'Sunday, '    ELSE '' END&lt;/div&gt;&lt;div&gt;                              + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp;  2 =  2 THEN 'Monday, '    ELSE '' END&lt;/div&gt;&lt;div&gt;                              + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp;  4 =  4 THEN 'Tuesday, '   ELSE '' END&lt;/div&gt;&lt;div&gt;                              + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp;  8 =  8 THEN 'Wednesday, ' ELSE '' END&lt;/div&gt;&lt;div&gt;                              + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp; 16 = 16 THEN 'Thursday, '  ELSE '' END&lt;/div&gt;&lt;div&gt;                              + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp; 32 = 32 THEN 'Friday, '    ELSE '' END&lt;/div&gt;&lt;div&gt;                              + CASE WHEN msdb.dbo.sysschedules.freq_interval &amp;amp; 64 = 64 THEN 'Saturday, '  ELSE '' END&lt;/div&gt;&lt;div&gt;                          ) - 1  -- LEN() ignores trailing spaces&lt;/div&gt;&lt;div&gt;                   )&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysschedules.freq_type = 0x10 -- monthly&lt;/div&gt;&lt;div&gt;           THEN&lt;/div&gt;&lt;div&gt;               CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.freq_recurrence_factor = 1&lt;/div&gt;&lt;div&gt;                       THEN 'Monthly on the '&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.freq_recurrence_factor &gt; 1&lt;/div&gt;&lt;div&gt;                       THEN 'Every '&lt;/div&gt;&lt;div&gt;                          + CAST( msdb.dbo.sysschedules.freq_recurrence_factor AS VARCHAR )&lt;/div&gt;&lt;div&gt;                          + ' months on the '&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;             + CAST( msdb.dbo.sysschedules.freq_interval AS VARCHAR )&lt;/div&gt;&lt;div&gt;             + CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.freq_interval IN ( 1, 21, 31 ) THEN 'st'&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.freq_interval IN ( 2, 22     ) THEN 'nd'&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.freq_interval IN ( 3, 23     ) THEN 'rd'&lt;/div&gt;&lt;div&gt;                   ELSE 'th'&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysschedules.freq_type = 0x20 -- monthly relative&lt;/div&gt;&lt;div&gt;           THEN&lt;/div&gt;&lt;div&gt;               CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.freq_recurrence_factor = 1&lt;/div&gt;&lt;div&gt;                       THEN 'Monthly on the '&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.freq_recurrence_factor &gt; 1&lt;/div&gt;&lt;div&gt;                       THEN 'Every '&lt;/div&gt;&lt;div&gt;                          + CAST( msdb.dbo.sysschedules.freq_recurrence_factor AS VARCHAR )&lt;/div&gt;&lt;div&gt;                          + ' months on the '&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;             + CASE msdb.dbo.sysschedules.freq_relative_interval&lt;/div&gt;&lt;div&gt;                   WHEN 0x01 THEN 'first '&lt;/div&gt;&lt;div&gt;                   WHEN 0x02 THEN 'second '&lt;/div&gt;&lt;div&gt;                   WHEN 0x04 THEN 'third '&lt;/div&gt;&lt;div&gt;                   WHEN 0x08 THEN 'fourth '&lt;/div&gt;&lt;div&gt;                   WHEN 0x10 THEN 'last '&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;             + CASE msdb.dbo.sysschedules.freq_interval&lt;/div&gt;&lt;div&gt;                   WHEN  1 THEN 'Sunday'&lt;/div&gt;&lt;div&gt;                   WHEN  2 THEN 'Monday'&lt;/div&gt;&lt;div&gt;                   WHEN  3 THEN 'Tuesday'&lt;/div&gt;&lt;div&gt;                   WHEN  4 THEN 'Wednesday'&lt;/div&gt;&lt;div&gt;                   WHEN  5 THEN 'Thursday'&lt;/div&gt;&lt;div&gt;                   WHEN  6 THEN 'Friday'&lt;/div&gt;&lt;div&gt;                   WHEN  7 THEN 'Saturday'&lt;/div&gt;&lt;div&gt;                   WHEN  8 THEN 'day'&lt;/div&gt;&lt;div&gt;                   WHEN  9 THEN 'week day'&lt;/div&gt;&lt;div&gt;                   WHEN 10 THEN 'weekend day'&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysschedules.freq_type = 0x40&lt;/div&gt;&lt;div&gt;           THEN 'Automatically starts when SQLServerAgent starts.'&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysschedules.freq_type = 0x80&lt;/div&gt;&lt;div&gt;           THEN 'Starts whenever the CPUs become idle'&lt;/div&gt;&lt;div&gt;       ELSE ''&lt;/div&gt;&lt;div&gt;   END&lt;/div&gt;&lt;div&gt; + CASE&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysjobs.enabled = 0 THEN ''&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysjobs.job_id IS NULL THEN ''&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysschedules.freq_subday_type = 0x1 OR msdb.dbo.sysschedules.freq_type = 0x1&lt;/div&gt;&lt;div&gt;           THEN ' at '&lt;/div&gt;&lt;div&gt;             + CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time =      0 THEN '12:00'&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time = 120000 THEN '12:00'&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time &lt;&gt;&lt;div&gt;                       THEN STUFF(&lt;/div&gt;&lt;div&gt;                                     LEFT( CAST ( msdb.dbo.sysschedules.active_start_time AS VARCHAR ), 3 )&lt;/div&gt;&lt;div&gt;                                   , 2&lt;/div&gt;&lt;div&gt;                                   , 0&lt;/div&gt;&lt;div&gt;                                   , ':'&lt;/div&gt;&lt;div&gt;                                 )&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time &lt;&gt;&lt;div&gt;                       THEN STUFF(&lt;/div&gt;&lt;div&gt;                                     LEFT( CAST ( msdb.dbo.sysschedules.active_start_time AS VARCHAR ), 4 )&lt;/div&gt;&lt;div&gt;                                   , 3&lt;/div&gt;&lt;div&gt;                                   , 0&lt;/div&gt;&lt;div&gt;                                   , ':'&lt;/div&gt;&lt;div&gt;                                 )&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time &lt;&gt;&lt;div&gt;                       THEN STUFF(&lt;/div&gt;&lt;div&gt;                                     LEFT( CAST ( msdb.dbo.sysschedules.active_start_time - 120000 AS VARCHAR ), 3 )&lt;/div&gt;&lt;div&gt;                                   , 2&lt;/div&gt;&lt;div&gt;                                   , 0&lt;/div&gt;&lt;div&gt;                                   , ':'&lt;/div&gt;&lt;div&gt;                                 )&lt;/div&gt;&lt;div&gt;                   ELSE STUFF(&lt;/div&gt;&lt;div&gt;                                 LEFT( CAST ( msdb.dbo.sysschedules.active_start_time - 120000 AS VARCHAR ), 4 )&lt;/div&gt;&lt;div&gt;                               , 3&lt;/div&gt;&lt;div&gt;                               , 0&lt;/div&gt;&lt;div&gt;                               , ':'&lt;/div&gt;&lt;div&gt;                             )&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;             + CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time &lt;&gt;&lt;div&gt;                   ELSE ' PM'&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysschedules.freq_subday_type IN ( 0x2, 0x4, 0x8 )&lt;/div&gt;&lt;div&gt;           THEN ' every '&lt;/div&gt;&lt;div&gt;             + CAST( msdb.dbo.sysschedules.freq_subday_interval AS VARCHAR )&lt;/div&gt;&lt;div&gt;             + CASE freq_subday_type&lt;/div&gt;&lt;div&gt;                   WHEN 0x2 THEN ' second'&lt;/div&gt;&lt;div&gt;                   WHEN 0x4 THEN ' minute'&lt;/div&gt;&lt;div&gt;                   WHEN 0x8 THEN ' hour'&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;             + CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.freq_subday_interval &gt; 1 THEN 's'&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;       ELSE ''&lt;/div&gt;&lt;div&gt;   END&lt;/div&gt;&lt;div&gt; + CASE&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysjobs.enabled = 0 THEN ''&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysjobs.job_id IS NULL THEN ''&lt;/div&gt;&lt;div&gt;       WHEN msdb.dbo.sysschedules.freq_subday_type IN ( 0x2, 0x4, 0x8 )&lt;/div&gt;&lt;div&gt;           THEN ' between '&lt;/div&gt;&lt;div&gt;             + CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time =      0 THEN '12:00'&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time = 120000 THEN '12:00'&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time &lt;&gt;&lt;div&gt;                       THEN STUFF(&lt;/div&gt;&lt;div&gt;                                     LEFT( CAST ( msdb.dbo.sysschedules.active_start_time AS VARCHAR ), 3 )&lt;/div&gt;&lt;div&gt;                                   , 2&lt;/div&gt;&lt;div&gt;                                   , 0&lt;/div&gt;&lt;div&gt;                                   , ':'&lt;/div&gt;&lt;div&gt;                                 )&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time &lt;&gt;&lt;div&gt;                       THEN STUFF(&lt;/div&gt;&lt;div&gt;                                     LEFT( CAST ( msdb.dbo.sysschedules.active_start_time AS VARCHAR ), 4 )&lt;/div&gt;&lt;div&gt;                                   , 3&lt;/div&gt;&lt;div&gt;                                   , 0&lt;/div&gt;&lt;div&gt;                                   , ':'&lt;/div&gt;&lt;div&gt;                                 )&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time &lt;&gt;&lt;div&gt;                       THEN STUFF(&lt;/div&gt;&lt;div&gt;                                     LEFT( CAST ( msdb.dbo.sysschedules.active_start_time - 120000 AS VARCHAR ), 3 )&lt;/div&gt;&lt;div&gt;                                   , 2&lt;/div&gt;&lt;div&gt;                                   , 0&lt;/div&gt;&lt;div&gt;                                   , ':'&lt;/div&gt;&lt;div&gt;                                 )&lt;/div&gt;&lt;div&gt;                   ELSE STUFF(&lt;/div&gt;&lt;div&gt;                                 LEFT( CAST ( msdb.dbo.sysschedules.active_start_time - 120000 AS VARCHAR ), 4 )&lt;/div&gt;&lt;div&gt;                               , 3&lt;/div&gt;&lt;div&gt;                               , 0&lt;/div&gt;&lt;div&gt;                               , ':'&lt;/div&gt;&lt;div&gt;                             )&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;             + CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_start_time &lt;&gt;&lt;div&gt;                   ELSE ' PM'&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;             + ' and '&lt;/div&gt;&lt;div&gt;             + CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_end_time =      0 THEN '12:00'&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_end_time = 120000 THEN '12:00'&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_end_time &lt;&gt;&lt;div&gt;                       THEN STUFF(&lt;/div&gt;&lt;div&gt;                                     LEFT( CAST ( msdb.dbo.sysschedules.active_end_time AS VARCHAR ), 3 )&lt;/div&gt;&lt;div&gt;                                   , 2&lt;/div&gt;&lt;div&gt;                                   , 0&lt;/div&gt;&lt;div&gt;                                   , ':'&lt;/div&gt;&lt;div&gt;                                 )&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_end_time &lt;&gt;&lt;div&gt;                       THEN STUFF(&lt;/div&gt;&lt;div&gt;                                     LEFT( CAST ( msdb.dbo.sysschedules.active_end_time AS VARCHAR ), 4 )&lt;/div&gt;&lt;div&gt;                                   , 3&lt;/div&gt;&lt;div&gt;                                   , 0&lt;/div&gt;&lt;div&gt;                                   , ':'&lt;/div&gt;&lt;div&gt;                                 )&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_end_time &lt;&gt;&lt;div&gt;                       THEN STUFF(&lt;/div&gt;&lt;div&gt;                                     LEFT( CAST ( msdb.dbo.sysschedules.active_end_time - 120000 AS VARCHAR ), 3 )&lt;/div&gt;&lt;div&gt;                                   , 2&lt;/div&gt;&lt;div&gt;                                   , 0&lt;/div&gt;&lt;div&gt;                                   , ':'&lt;/div&gt;&lt;div&gt;                                 )&lt;/div&gt;&lt;div&gt;                   ELSE STUFF(&lt;/div&gt;&lt;div&gt;                                 LEFT( CAST ( msdb.dbo.sysschedules.active_end_time - 120000 AS VARCHAR ), 4 )&lt;/div&gt;&lt;div&gt;                               , 3&lt;/div&gt;&lt;div&gt;                               , 0&lt;/div&gt;&lt;div&gt;                               , ':'&lt;/div&gt;&lt;div&gt;                             )&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;             + CASE&lt;/div&gt;&lt;div&gt;                   WHEN msdb.dbo.sysschedules.active_end_time &lt;&gt;&lt;div&gt;                   ELSE ' PM'&lt;/div&gt;&lt;div&gt;               END&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;       ELSE ''&lt;/div&gt;&lt;div&gt;   END AS Schedule&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;FROM         msdb.dbo.sysjobs INNER JOIN&lt;/div&gt;&lt;div&gt;                      msdb.dbo.sysjobschedules ON msdb.dbo.sysjobs.job_id = msdb.dbo.sysjobschedules.job_id INNER JOIN&lt;/div&gt;&lt;div&gt;                      msdb.dbo.sysschedules ON msdb.dbo.sysjobschedules.schedule_id = msdb.dbo.sysschedules.schedule_id&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-110082461458030424?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/110082461458030424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=110082461458030424' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/110082461458030424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/110082461458030424'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/job-schedule-information-for-sql-server.html' title='Job Schedule Information for SQL Server 2005'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-8705748872915031007</id><published>2009-03-25T12:18:00.001-04:00</published><updated>2009-03-25T12:18:02.411-04:00</updated><title type='text'>Database Details</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;create table #dbdetails(name varchar(30), fileid int,filename varchar(1000), filegroup varchar(50), size varchar(30), maxsize  varchar(30), growth varchar(30), usage varchar(30))&lt;br /&gt;&lt;/p&gt;&lt;p&gt;insert into #dbdetails&lt;br /&gt;&lt;/p&gt;&lt;p&gt;EXEC sp_MSforeachdb 'USE [?]; EXEC sp_helpfile;'&lt;br /&gt;&lt;/p&gt;&lt;p&gt;select * from #dbdetails&lt;br /&gt;&lt;/p&gt;&lt;p&gt;drop table #dbdetails&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-8705748872915031007?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/8705748872915031007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=8705748872915031007' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8705748872915031007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8705748872915031007'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/database-details.html' title='Database Details'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-8535768376590177457</id><published>2009-03-24T14:54:00.002-04:00</published><updated>2009-03-24T14:59:31.300-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Jobs'/><title type='text'>Job Status Script</title><content type='html'>&lt;span xmlns=""&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;select b.name,a.step_name,&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;c.message,&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;case  c.run_status when 0 then 'Failed'&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;when 1 then 'Succeeded'&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;when 2 then 'Retry'&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;when 3 then 'Canceled'&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;when 4 then 'In progress'&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;else 'NO STATUS' END as status&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;,substring (right (stuff (' ', 1, 1, '000000') + convert(varchar(6),c.run_time), 6), 1, 2)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            +    ':'&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            + substring (&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            right (stuff (' ', 1, 1, '000000') + convert(varchar(6), c.run_time), 6) ,3 ,2)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            +    ':'&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            + substring (&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            right (stuff (' ', 1, 1, '000000') + convert(varchar(6),c.run_time), 6) ,5 ,2) as run_time&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;,substring (right (stuff (' ', 1, 1, '00000000') + convert(varchar(8),c.run_date), 8), 1, 4)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            +    '/'&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            + substring (&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            right (stuff (' ', 1, 1, '00000000') + convert(varchar(8), c.run_date), 8) ,5 ,2)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            +    '/'&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            + substring (&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;            right (stuff (' ', 1, 1, '00000000') + convert(varchar(8),c.run_date), 8) ,7 ,2) as run_date&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;from msdb..sysjobsteps a, msdb..sysjobhistory c,msdb..sysjobs b&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;where a.step_id=c.step_id and a.job_id=c.job_id&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;and&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;a.last_run_date=c.run_date&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;and&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;a.last_run_time=c.run_time&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=" ;font-family:Comic Sans MS;font-size:10pt;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;and a.job_id=b.job_id&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-8535768376590177457?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/8535768376590177457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=8535768376590177457' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8535768376590177457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8535768376590177457'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/job-status-script.html' title='Job Status Script'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5924439898351369103</id><published>2009-03-23T13:19:00.001-04:00</published><updated>2009-03-23T13:19:48.996-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Replication'/><title type='text'>Script to Validate Subscribers for all articles and publication</title><content type='html'>declare @pubdb nvarchar(50)&lt;br /&gt;declare @artobj nvarchar(100)&lt;br /&gt;declare @owner nvarchar(50)&lt;br /&gt;declare @params nvarchar(100)&lt;br /&gt;declare @cnt1 nvarchar(50)&lt;br /&gt;declare @cmd nvarchar(1000)&lt;br /&gt;declare @cmd1 nvarchar(1000)&lt;br /&gt;DECLARE pub_validate CURSOR FOR&lt;br /&gt;select publisher_db,source_owner,source_object from distribution.dbo.MSarticles&lt;br /&gt;open pub_validate&lt;br /&gt;fetch next from pub_validate into @pubdb,@owner,@artobj&lt;br /&gt;while @@fetch_status=0&lt;br /&gt;begin&lt;br /&gt;select @cmd = 'select @cnt=count(*) from '+@pubdb+'.'+@owner+'.'+@artobj&lt;br /&gt;select @params=N'@cnt varchar(100) OUTPUT'&lt;br /&gt;exec sp_executesql @cmd,@params,@cnt=@cnt1 output&lt;br /&gt;--select @cnt1&lt;br /&gt;select @cmd1='use '+@pubdb+CHAR(10)+'go'+CHAR(10)+'sp_table_validation @table='+@artobj+',@expected_rowcount='+@cnt1&lt;br /&gt;select @cmd1&lt;br /&gt;--exec sp_executesql @cmd1&lt;br /&gt;fetch next from pub_validate into @pubdb,@owner,@artobj&lt;br /&gt;end&lt;br /&gt;close pub_validate&lt;br /&gt;deallocate pub_validate&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5924439898351369103?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5924439898351369103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5924439898351369103' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5924439898351369103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5924439898351369103'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/script-to-validate-subscribers-for-all.html' title='Script to Validate Subscribers for all articles and publication'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-3830844526830948311</id><published>2009-03-23T11:40:00.000-04:00</published><updated>2009-03-23T11:41:29.129-04:00</updated><title type='text'>Cross-Domain Windows Authentication for SQL Server databases</title><content type='html'>There are many acquisitions these days and the DBA and sysadmins have a great tasks of doing a cross-domain authentication to their servers and databases. System admins have various options to connect interdomain where as DBA has to look up for it. Here is a solution that one can try using to access databases in cross-domain platform with windows authentication.&lt;br /&gt;Consider one of the servers is in new york domain and Second is in boston domain. newyork domain can't talk to  boston domain and vice versa..The idea is to make the windows user in newyork domain access database in boston domain using the same windows credentials. This can be achieved by following steps below.&lt;br /&gt; 1. Create a SQL login named sqluser in the secondary server and copy the sid of the login.&lt;br /&gt;2. Create a login in the primary named sqluser with sid captured.&lt;br /&gt; CREATE LOGIN sqluser with PASSWORD='sqluser1', SID = 0xB0B50710A1D1394D8E1B26CFA25AA3BE&lt;br /&gt;--- copied from secondary server.&lt;br /&gt;Assign the datareader permissions to primary server.&lt;br /&gt;3. This user will be replicated to the secondary readonly db through log backup, being sid matches between the user and login named sqluser, it works.&lt;br /&gt; It’s simple, no downtime required.&lt;br /&gt; Windows Authentication: (user named newyork\sqluser)&lt;br /&gt; It’s the same but we may have to work thru some tricky steps. Reason behind was that Windows domain account will have a unique SID value.&lt;br /&gt; 1. Create a windows login named newyork\sqluser  in the secondary server. Copy the sid.&lt;br /&gt; 2. Create a login in the primary named sqluser with sid captured&lt;br /&gt; CREATE LOGIN sqluser with PASSWORD='sqluser123', SID = 0x01050000000000051500000071416F0BD9618A1FC22E626EC6190003&lt;br /&gt; it results with the below error..&lt;br /&gt; Msg 15419, Level 16, State 1, Line 1&lt;br /&gt;Supplied parameter sid should be binary(16).&lt;br /&gt; 3. Basic and logic helps here. Create a login named sqluser in the Primary with the datareader permissions.&lt;br /&gt;&lt;br /&gt;CREATE LOGIN sqluser with PASSWORD='sqluser123'&lt;br /&gt; 4. Now the user named sqluser is replicated to the secondary readonly db but stands as a orphaned user. It’s not in sync with the windows login(newyork\sqluser).&lt;br /&gt; 5. whats the next option.. how do we bring the sid in sync now.&lt;br /&gt;   Use SQLCMD with DAC session on primary server&lt;br /&gt; c:\&gt; SQLCMD -A -d master&lt;br /&gt;-A - options opens DAC(admin session)&lt;br /&gt; SQLCMD&gt;&lt;br /&gt; Enable the allow updates option using sp_configure and update the sid of the sqluser login in sys.sysusers table with sid of windows login(newyork\sqluser)&lt;br /&gt; This query results with an error because updates can be happened only when db is in single user mode with sql 2005.&lt;br /&gt; C:\&gt;sqlcmd -A&lt;br /&gt;1&gt; sp_configure 'allow updates'&lt;br /&gt;2&gt; go&lt;br /&gt;name                                minimum     maximum     config_value run_value&lt;br /&gt;----------------------------------- ----------- ----------- ------------ -----------&lt;br /&gt;allow updates                                 0           1            1           1&lt;br /&gt;1&gt; update sys.sysusers set sid =  0xB0B50710A1D1394D8E1B26CFA25AA3BE where name like 'sqluser'&lt;br /&gt;2&gt; Go&lt;br /&gt;Msg 259, Level 16, State 1, Server servername, Line 1&lt;br /&gt;Ad hoc updates to system catalogs are not allowed.&lt;br /&gt;1&gt;exit&lt;br /&gt; sid can be captured in sys.sysxlgns table also which are similar to sysxlogins in SQL 2000. It can be viewed only when you open a session using DAC. In order to update the system tables we have to bring sql server in single user mode.&lt;br /&gt;&lt;br /&gt;sqlservr -m -- helps you to bring sql server in single user mode.&lt;br /&gt; Repeat step 5 but sql server should be started with single user mode.&lt;br /&gt; C:\&gt;sqlcmd -A&lt;br /&gt;1&gt; use demo;&lt;br /&gt;2&gt; go&lt;br /&gt;Changed database context to 'Demo'.&lt;br /&gt;1&gt; update sys.sysusers set sid = 0xD67EDAA0627B944F997EB9C552DEE47A where name like 'sqluser';&lt;br /&gt;2&gt; go&lt;br /&gt;(1 rows affected)&lt;br /&gt;Warning: System table ID 27 has been updated directly in database ID 6 and cache coherence may not have been maintained. SQL Server should be restarted.&lt;br /&gt; Now it works. recycle the SQL.Log backup of primary database will update the sid of the sys.sysusers in the secondary db. Now the windows user will have the datareader permissions on the table..&lt;br /&gt; Now newyork\sqluser will have readonly access to secondary db&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-3830844526830948311?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/3830844526830948311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=3830844526830948311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3830844526830948311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3830844526830948311'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/cross-domain-windows-authentication-for.html' title='Cross-Domain Windows Authentication for SQL Server databases'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4254962537185895318</id><published>2009-03-18T12:52:00.002-04:00</published><updated>2009-03-18T12:53:56.552-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Replication'/><title type='text'>Validating Replication Subscriber using TSQL</title><content type='html'>&lt;span xmlns=""&gt;&lt;p&gt;Last post from me on SQL Server replication was on How to validate subscribers in SQL Server Replication. This article shows how the same can be done using TSQL.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sp_publication_validation:&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;    This system stored procedure does a validation for each and all articles in the specified publication in transactional replication. This stored procedure is executed against the publication database. The following is the syntax for this stored procedure.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sp_publication_validation [ @publication = ] 'publication'&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @rowcount_only = ] type_of_check_requested ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @full_or_fast = ] full_or_fast ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @shutdown_agent = ] shutdown_agent ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @publisher = ] 'publisher' ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@publication is the name of the publication.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@rowcount_only is whether to return only the row count for the table.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    0 for perform a SQL Server 7.0 compatible check sum&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    1 for perform rowcount only&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    2 for perform a row count and binary check sum.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@full_or_fast is used to calculate the row count.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    0 does full count using count(*)&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    1 does a count using rows column in sysindexes table. Since this table is not updated frequently this might be wrong sometimes.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    2 does a count using rows column in sysindexes table if there is a difference then it does a full count.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@shutdown_agent Specifies whether to shutdown distribution agent immediately after completing the validation.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@publisher specifies a non-sql server publisher.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;You need to have sysadmin or db_owner role in the publication database to execute stored procedure.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sp_article_validation:&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    &lt;/strong&gt;This system stored procedure does a validation for each article individually in the specified publication in transactional replication. This stored procedure is executed against the publication database. The following is the syntax for this stored procedure.&lt;strong&gt;&lt;br /&gt;    &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sp_article_validation [ @publication = ] 'publication'&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @article = ] 'article' ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @rowcount_only = ] type_of_check_requested ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @full_or_fast = ] full_or_fast ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @shutdown_agent = ] shutdown_agent ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @subscription_level = ] subscription_level ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @reserved = ] reserved ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @publisher = ] 'publisher' ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@publication is the name of the publication in which the article exists.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@article is the name of the article to validate.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@rowcount_only specifies if only the rowcount for the table is returned.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    0 for perform a rowcount and a Microsoft SQL Server 7.0 compatible checksum.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    1 for perform a rowcount check only.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    2 for perform a rowcount and binary checksum.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@full_or_fast is the method used to calculate the rowcount.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    0 does full count using count(*)&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    1 does a count using rows column in sysindexes table. Since this table is not updated frequently this might be wrong sometimes.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    2 does a count using rows column in sysindexes table if there is a difference then it does a full count.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@shutdown_agent Specifies whether to shutdown distribution agent immediately after completing the validation.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@subscription_level specifies whether or not the validation is picked up by a set of subscribers. If 0,    validation is applied to all Subscribers. If 1, validation is only applied to a subset of the Subscribers specified by calls to    sp_marksubscriptionvalidation in the current open transaction.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@reserved identified for informational purposes only.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@publisher specifies a non-Microsoft SQL Server Publisher.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;You need to have SELECT ALL permissions on the source table for the article being validated&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sp_table_validation:&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    &lt;/strong&gt;This system stored procedure does a validation for each table individually in the specified publication in transactional replication. This stored procedure is executed against the publication database. The following is the syntax for this stored procedure.&lt;strong&gt;&lt;br /&gt;    &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sp_table_validation [ @table = ] 'table'&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @expected_rowcount = ] type_of_check_requested OUTPUT]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @expected_checksum = ] expected_checksum OUTPUT]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @rowcount_only = ] rowcount_only ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @owner = ] 'owner' ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @full_or_fast = ] full_or_fast ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @shutdown_agent = ] shutdown_agent ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @table_name = ] table_name ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    [ , [ @column_list = ] 'column_list' ]&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@table is the name of the table to be validated.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@expected_rowcount specifies whether to return the expected number of rows in the table. If NULL, the actual rowcount is returned as an output parameter. If a value is provided, that value is checked against the actual rowcount to identify any differences.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@expected_checksum specifies whether to return the expected checksum for the table. If NULL, the actual checksum is returned as an output parameter. If a value is provided, that value is checked against the actual checksum to identify any differences.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@rowcount_only specifies what type of checksum or rowcount to perform.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    0 for perform a rowcount and a Microsoft SQL Server 7.0 compatible checksum.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    1 for perform a rowcount check only.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    2 for perform a rowcount and binary checksum.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@owner is the name of the owner of the table.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@full_or_fast is the method used to calculate the rowcount.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    0 does full count using count(*)&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    1 does a count using rows column in sysindexes table. Since this table is not updated frequently this might be wrong sometimes.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;    2 does a count using rows column in sysindexes table if there is a difference then it does a full count.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@shutdown_agent Specifies whether to shutdown distribution agent immediately after completing the validation.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@table_name  is the table name of the view used for output messages.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;@column_list is the list of columns that should be used in the checksum function.&lt;/strong&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4254962537185895318?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4254962537185895318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4254962537185895318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4254962537185895318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4254962537185895318'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/validating-replication-subscriber-using.html' title='Validating Replication Subscriber using TSQL'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-6594019075086288273</id><published>2009-03-16T18:44:00.003-04:00</published><updated>2009-03-16T22:32:51.253-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Others'/><title type='text'>My Interview in MVP Summit</title><content type='html'>&lt;span xmlns=""&gt;&lt;p&gt;Mike Nash from c-sharpconsulting interviewed me for a short duration of 2 minutes during the MVP summit. The link for the video is given below.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.c-sharpcorner.com/UploadFile/mahesh/Vs03122009175026PM/Vs.aspx"&gt;http://www.c-sharpcorner.com/UploadFile/mahesh/Vs03122009175026PM/Vs.aspx &lt;/a&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-6594019075086288273?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/6594019075086288273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=6594019075086288273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6594019075086288273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6594019075086288273'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/my-interview-in-mvp-summit.html' title='My Interview in MVP Summit'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-7843055513886372690</id><published>2009-03-16T00:21:00.003-04:00</published><updated>2009-03-16T00:26:39.948-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Replication'/><title type='text'>How to validate subscribers in SQL Server Replication</title><content type='html'>&lt;span xmlns=""&gt;&lt;p&gt;    There have been many SQL Server DBAs who would like to compare the row count between tables in replication Publisher and Subscriber. SQL Server provides an easy way of doing this and is known as validation subscribers in replication which involves doing a row count between the table that is published and the ones that are subscribed to it.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    To Validate subscribers, you need to do the following.&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Launch replication monitor.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Right click the publisher for which you want to validate the row count and click validate subscriptions.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Choose the subscribers that you want to validate, by default it chooses all subscribers for that publication.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;You will be provided with the validation options.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select the validation option that best suits you. It is advisable to choose, "Compute a fast row count: If differences are found, compute an actual row count"&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Click ok.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Click ok.&lt;br /&gt;&lt;/div&gt;&lt;p&gt;Now you will be able to see the row count match are mismatch between the publisher and the subscriber, when you double click the subscriber. The next article would be how to perform the same validation using TSQL.&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-7843055513886372690?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/7843055513886372690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=7843055513886372690' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7843055513886372690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7843055513886372690'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/how-to-validate-subscribers-in-sql.html' title='How to validate subscribers in SQL Server Replication'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-2367225146788112825</id><published>2009-03-15T23:45:00.003-04:00</published><updated>2009-03-15T23:56:46.333-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Tools'/><title type='text'>tablediff utility</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"   style=" ;font-family:'Comic Sans MS';font-size:12px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormalCxSpFirst"&gt;&lt;span style="mso-tab-count:1"&gt;            &lt;/span&gt;Tablediff is an inbuilt SQL Server utility that is used to compare data between two tables across same or different servers. This utility is invoked from command prompt and is usually found in C:\Program Files\Microsoft SQL Server\100\COM folder. The best use of this utility is exhibited when you use it to compare tables that are involved in replication. The following tasks can be performed with the utility.&lt;br /&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l0 level1 lfo1;tab-stops:      list .5incolor:black;"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;A row      by row comparison between a source table in an instance of Microsoft SQL      Server acting as a replication Publisher and the destination table at one      or more instances of SQL Server acting as replication Subscribers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l0 level1 lfo1;tab-stops:      list .5incolor:black;"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;Perform      a fast comparison by only comparing row counts and schema.&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l0 level1 lfo1;tab-stops:      list .5incolor:black;"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;Perform      column-level comparisons.&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l0 level1 lfo1;tab-stops:      list .5incolor:black;"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;Generate      a Transact-SQL script to fix discrepancies at the destination server to      bring the source and destination tables into convergence.&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l0 level1 lfo1;tab-stops:      list .5incolor:black;"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;Log      results to an output file or into a table in the destination database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class="MsoNormalCxSpMiddle"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;Tablediff has various arguments that can be passed to it to get the desired results. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle"&gt;The parameters are discussed as follows.&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-sourceserver&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;source_server_name&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;[&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;\&lt;/span&gt;&lt;/strong&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;instance_name&lt;/span&gt;&lt;/em&gt;]&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The name of the source server. You need to specify the source instance name to this argument.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-sourcedatabase&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;source_database&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The name of the source database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-sourcetable&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;source_table_name&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The name of the source table being compared.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-sourceschema&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;source_schema_name&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The schema owner of the source table. By default, the table owner is&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;dbo&lt;/span&gt;&lt;/strong&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-sourcepassword&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;source_password&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The password for the login used to connect to the source server using SQL Server Authentication.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;/span&gt;-sourceuser&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;source_login&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The login used to connect to the source server using SQL Server Authentication. If&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;source_login&lt;/span&gt;&lt;/em&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;is not supplied, the utility uses Windows Authentication to connect to the source server. Whenever possible, use Windows Authentication.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-sourcelocked&lt;/span&gt;&lt;/strong&gt;&lt;span style=" Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The source table is locked during the comparison using the TABLOCK and HOLDLOCK table hints.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-destinationserver&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;destination_server_name&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;[&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;\&lt;/span&gt;&lt;/strong&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;instance_name&lt;/span&gt;&lt;/em&gt;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The name of the destination server. You need to specify the source instance name to this argument.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-destinationdatabase&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;subscription_database&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The name of the destination database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-destinationtable&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;destination_table&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The name of the destination table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-destinationschema&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;destination_schema_name&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The schema owner of the destination table. By default, the table owner is &lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;dbo&lt;/span&gt;&lt;/strong&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-destinationpassword&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;destination_password&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The password for the login used to connect to the destination server using SQL Server Authentication.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;/span&gt;-destinationuser&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;destination_login&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The login used to connect to the destination server using SQL Server Authentication. If&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;destination_login&lt;/span&gt;&lt;/em&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;is not supplied, the utility uses Windows Authentication to the server. When possible, use Windows Authentication.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-destinationlocked&lt;/span&gt;&lt;/strong&gt;&lt;span style=" Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The destination table is locked during the comparison using the TABLOCK and HOLDLOCK table hints.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpFirst"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-b&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;large_object_bytes&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;;font-weight:normal;mso-bidi-font-weight:boldfont-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;span style="mso-tab-count:1"&gt;            &lt;/span&gt;The number of bytes to compare for large object data type columns, which includes: text, ntext, image, varchar(max), nvarchar(max) andvarbinary(max). large_object_bytes defaults to the size of the column. Any data above large_object_bytes will not be compared.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-bf&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;b&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;em&gt;&lt;span style=" Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;number_of_statements&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The number of Transact-SQL statements to write to the current Transact-SQL script file when the&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;-f&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;option is used. When the number of Transact-SQL statements exceeds&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;number_of_statements&lt;/span&gt;&lt;/em&gt;, a new Transact-SQL script file is created.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-c&lt;/span&gt;&lt;/strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;Compare column-level differences.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-dt&lt;/span&gt;&lt;/strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;Drop the result table specified by&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;table_name&lt;/span&gt;&lt;/em&gt;, if the table already exists.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-et&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;table_name&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;Specifies the name of the result table to create. If this table already exists,&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;-DT&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;must be used or the operation will fail.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-f&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;[&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;file_name&lt;/span&gt;&lt;/em&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;Generates a Transact-SQL script to synchronize table that are being compared. You can optionally specify a name and path for the generated Transact-SQL script file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-o&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;output_file_name&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;The full name and path of the output file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-q&lt;/span&gt;&lt;/strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;Perform a fast comparison by only comparing row counts and schema.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-rc&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;number_of_retries&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;Number of times that the utility retries a failed operation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-ri&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;b&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;retry_interval&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;Interval, in seconds, to wait between retries.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-strict&lt;/span&gt;&lt;/strong&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;Source and destination schema are strictly compared.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;-t&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;connection_timeouts&lt;/span&gt;&lt;/em&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto"&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;Is the connection timeout period, in seconds, for connections to the source server and destination server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpFirst"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Restrictions:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;span style="mso-tab-count:1"&gt;            &lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt;The source table in the comparison must contain at least one primary key, identity, or ROWGUID column. When you use the&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;;font-family:&amp;quot;;color:black;"&gt;-strict&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt;option, the destination table must also have a primary key, identity, or ROWGUID column.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpLast"&gt;The Transact-SQL script generated to bring the destination table into convergence does not include the following data types:&lt;br /&gt;&lt;/p&gt;  &lt;ul type="disc" style="list-style-position:outside"&gt;  &lt;li class="MsoNormalCxSpFirst"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l2 level1 lfo2;tab-stops:      list .5incolor:black;"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;varchar(max)&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l2 level1 lfo2;tab-stops:      list .5incolor:black;"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;nvarchar(max)&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l2 level1 lfo2;tab-stops:      list .5incolor:black;"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;varbinary(max)&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;b&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="      Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l2 level1 lfo2;tab-stops:      list .5incolor:black;"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;timestamp&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l2 level1 lfo2;tab-stops:      list .5incolor:black;"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;xml&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;b&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="      Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l2 level1 lfo2;tab-stops:      list .5incolor:black;"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;text&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l2 level1 lfo2;tab-stops:      list .5incolor:black;"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;ntext&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormalCxSpMiddle"  style="mso-margin-top-alt:auto;      margin-bottom:1.9pt;mso-add-space:auto;mso-list:l2 level1 lfo2;tab-stops:      list .5incolor:black;"&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;image&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class="MsoNormalCxSpMiddle"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Permissions Needed:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpLast" style="margin-left:.5in;mso-add-space:auto; text-indent:-.25in;mso-list:l1 level1 lfo3"&gt;&lt;span style="font-family:&amp;quot;Comic Sans MS&amp;quot;;mso-fareast-font-family: &amp;quot;Comic Sans MS&amp;quot;;mso-bidi-Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;&lt;span style="mso-list: Ignore"&gt;1.&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;font-size:9.0pt;"&gt;You need select permissions on the tables being compared.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto;text-indent:-.25in;mso-list:l1 level1 lfo3"&gt;&lt;span style="font-family:&amp;quot;Comic Sans MS&amp;quot;;mso-fareast-font-family: &amp;quot;Comic Sans MS&amp;quot;;mso-bidi-Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;span style="mso-list:Ignore"&gt;2.&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;To use the&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;-et&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;option, you must be a member of the&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;db_owner&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;fixed database role, or at least have CREATE TABLE permission in the subscription database and ALTER permission on the destination owner schema at the destination server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto;text-indent:-.25in;mso-list:l1 level1 lfo3"&gt;&lt;span style="font-family:&amp;quot;Comic Sans MS&amp;quot;;mso-fareast-font-family: &amp;quot;Comic Sans MS&amp;quot;;mso-bidi-Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;span style="mso-list:Ignore"&gt;3.&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;To use the&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;-dt&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;option, you must be a member of the&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;db_owner&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;fixed database role, or at least have ALTER permission on the destination owner schema at the destination server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:6.25pt;margin-left: .5in;mso-add-space:auto;text-indent:-.25in;mso-list:l1 level1 lfo3"&gt;&lt;span style="font-family:&amp;quot;Comic Sans MS&amp;quot;;mso-fareast-font-family: &amp;quot;Comic Sans MS&amp;quot;;mso-bidi-Comic Sans MS&amp;quot;;font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;&lt;span style="mso-list:Ignore"&gt;4.&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="Comic Sans MS&amp;quot;; font-family:&amp;quot;;font-size:9.0pt;color:black;"&gt;To use the&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;-o&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;or&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="Comic Sans MS&amp;quot;font-family:&amp;quot;;"&gt;-f&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;options, you must have write permissions to the specified file directory location.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-2367225146788112825?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/2367225146788112825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=2367225146788112825' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2367225146788112825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2367225146788112825'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/tablediff-utility.html' title='tablediff utility'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-3171229784064953783</id><published>2009-03-05T17:51:00.003-05:00</published><updated>2009-03-05T17:54:42.769-05:00</updated><title type='text'>Disabling Windows Authentication in SQL Server????????</title><content type='html'>I have seen lot of people asking in forums "Can I disable windows authentication in SQL Server and have only SQL Authentication?". The obvious answer that he/she is going to get is "NO". For SQL server experts, they know the reason why it cannot be disabled but when a person asks this kind of question we have to understand that he/she is in infact stage of learning SQL Server.  The reason why Windows Authentication cannot be disabled is that SQL Server runs as a SERVICE in Windows Operating System and the service runs under a Windows Local/Domain account.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-3171229784064953783?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/3171229784064953783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=3171229784064953783' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3171229784064953783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3171229784064953783'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/disabling-windows-authentication-in-sql.html' title='Disabling Windows Authentication in SQL Server????????'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5789062897473891439</id><published>2009-03-02T11:59:00.014-05:00</published><updated>2009-03-06T14:16:55.145-05:00</updated><title type='text'>MVP Summit 2009 Photos</title><content type='html'>&lt;div&gt;I have posted the few photos that we took during the MVP Summit in my picasa. Please have a look of those photos.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://picasaweb.google.com/sugeshkr/MVPSummit2009#"&gt;http://picasaweb.google.com/sugeshkr/MVPSummit2009#&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5789062897473891439?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5789062897473891439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5789062897473891439' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5789062897473891439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5789062897473891439'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/mvp-summit-2009-photos.html' title='MVP Summit 2009 Photos'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-8565903759222239042</id><published>2009-03-02T11:58:00.000-05:00</published><updated>2009-03-02T11:59:04.386-05:00</updated><title type='text'>MVP Summit 2009</title><content type='html'>This is my first MVP summit and it has been till now the most exciting event that i have attended on my professional journey. The event started with the registration, went on with keynotes from Toby Richards, Rich Kaplan from Microsoft and then a great networking with fellow MVPs around the globe. I have not dreamt of meeting people like Steve Jones, Andy Warren, Itzik Ben and have a discussion on the SQL Server and activities that we do to make it a great technology.&lt;br /&gt;             The scecond day of the event is now starting with the sessions on SQL Server and I am excited in attending all the session on SQL Server. Let me keep you updated as the event goes on. Happy Reading.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-8565903759222239042?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/8565903759222239042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=8565903759222239042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8565903759222239042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8565903759222239042'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/03/mvp-summit-2009.html' title='MVP Summit 2009'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-2218908404768000330</id><published>2009-01-14T12:02:00.002-05:00</published><updated>2009-01-14T12:03:04.330-05:00</updated><title type='text'>Introduction to SQL Server Trace Flags</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;&lt;span style="mso-tab-count:1"&gt;               &lt;/span&gt;This article takes you to describing about the Trace Flags and its usage in SQL Server.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; font-weight: bold; "&gt;Common Terms Used:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;&lt;span style="mso-tab-count:1"&gt;                &lt;/span&gt;DBCC TRACEON&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Georgia"&gt;&lt;span style="mso-tab-count:1"&gt;                &lt;/span&gt;DBCC TRACEOFF&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Georgia"&gt;&lt;span style="mso-tab-count:1"&gt;                &lt;/span&gt;DBCC TRACESTATUS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;&lt;span style="mso-tab-count:1"&gt;                &lt;/span&gt;Trace flags can be enabled at session level or global level.&lt;span style="mso-spacerun:yes"&gt;  &lt;/span&gt;Session level trace flags are available and active for that connection whereas Global Trace flags are available and active throughout the server.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;&lt;span style="mso-tab-count:1"&gt;                &lt;/span&gt;Global Trace flag is enabled at server level at startup with a –T parameter used in it.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;&lt;span style="mso-tab-count:1"&gt;                &lt;/span&gt;Session level Trace flags are enabled using DBCC TRACEON command, we can find the trace that are active using the DBCC TRACESTATUS command and can be disabled using DBCC TRACEOFF command.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse;mso-table-layout-alt:fixed;mso-padding-alt:  0in 5.4pt 0in 5.4pt"&gt;  &lt;tbody&gt;&lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;mso-border-alt:   solid windowtext .5pt;background:silver;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial;color:navy"&gt;Trace flag&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border:solid windowtext 1.0pt;   border-left:none;mso-border-top-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;background:   silver;padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial;color:navy"&gt;Description&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:1;height:38.25pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:38.25pt" num=""&gt;&lt;span style="orphans: 2;text-align:auto;widows: 2;   -webkit-border-horizontal-spacing: 0px;-webkit-border-vertical-spacing: 0px;   -webkit-text-decorations-in-effect: none;-webkit-text-size-adjust: auto;   -webkit-text-stroke-width: 0"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;-1&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:38.25pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Sets trace flags for all client connections,   rather than for a single client connection. Because trace flags set using the   -T command-line option automatically apply to all connections, this trace   flag is used only when setting trace flags using DBCC TRACEON and DBCC   TRACEOFF.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:2;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;106&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables line number information for syntax   errors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:3;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;107&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Interprets numbers with a decimal point as float   instead of decimal.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:4;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;205&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Report when a statistics-dependent stored   procedure is being recompiled as a result of AutoStat.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:5;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;206&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Provides backward compatibility for the setuser   statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:6;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;208&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;SET QUOTED IDENTIFIER ON.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:7;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;242&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Provides backward compatibility for correlated   subqueries where non-ANSI-standard results are desired.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:8;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;243&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;The behavior of SQL Server is now more consistent   because nullability checks are made at run time and a nullability violation   results in the command terminating and the batch or transaction process   continuing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:9;height:76.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:76.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;244&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:76.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables checking for allowed interim constraint   violations. By default, SQL Server checks for and allows interim constraint   violations. An interim constraint violation is caused by a change that   removes the violation such that the constraint is met, all within a single   statement and transaction. SQL Server checks for interim constraint   violations for self-referencing DELETE statements, INSERT, and multirow   UPDATE statements. This checking requires more work tables. With this trace   flag you can disallow interim constraint violations, thus requiring fewer   work tables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:10;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;257&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Will invoke a print algorithm on the XML output   before returning it to make the XML result more readable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:11;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;260&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints the versioning information about extended   stored procedure dlls.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:12;height:38.25pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:38.25pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;302&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:38.25pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints information about whether the statistics   page is used, the actual selectivity (if available), and what SQL Server   estimated the physical and logical I/O would be for the indexes. Trace flag   302 should be used with trace flag 310 to show the actual join ordering.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:13;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;310&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints information about join order. Index   selection information is also available in a more readable format using SET   SHOWPLAN_ALL, as described in the SET statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:14;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;325&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints information about the cost of using a   nonclustered index or a sort to process an ORDER BY clause.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:15;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;326&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints information about the estimated and actual   cost of sorts.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:16;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;330&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Enables full output when using the SET   SHOWPLAN_ALL option, which gives detailed information about joins.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:17;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;506&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Enforces SQL-92 standards regarding null values   for comparisons between variables and parameters. Any comparison of variables   and parameters that contain a NULL always results in a NULL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:18;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;652&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables read ahead for the server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:19;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;653&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables read ahead for the current connection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:20;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;809&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Limits the amount of Lazy Write activity in SQL   Server 2000.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:21;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1180&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Forces allocation to use free pages for text or   image data and maintain efficiency of storage.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:22;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1200&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints lock information (the process ID and type   of lock requested).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:23;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1204&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Returns the type of lock participating in the   deadlock and the current command affect by the deadlock.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:24;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1205&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Returns more detailed information about the   command being executed at the time of a deadlock.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:25;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1206&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Used to complement flag 1204 by displaying other   locks held by deadlock parties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:26;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1609&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Turns on the unpacking and checking of remote   procedure call (RPC) information in Open Data Services. Used only when   applications depend on the old behavior.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:27;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1704&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints information when a temporary table is   created or dropped.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:28;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1807&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Allows you to configure SQL Server with   network-based database files.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:29;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;2505&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prevents DBCC TRACEON 208, SPID 10 errors from   appearing in the error log.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:30;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;2508&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables parallel non-clustered index checking   for DBCC CHECKTABLE.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:31;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;2509&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Used with DBCC CHECKTABLE.html to see the total   count of ghost records in a table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:32;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;2528&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables parallel checking of objects by DBCC   commands.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:33;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;2701&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Sets the @@ERROR system function to 50000 for   RAISERROR messages with severity levels of 10 or less. When disabled, sets   the @@ERROR system function to 0 for RAISERROR messages with severity levels   of 10 or less.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:34;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3104&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Causes SQL Server to bypass checking for free   space.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:35;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3111&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Cause LogMgr::ValidateBackedupBlock to be skipped   during backup and restore operations.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:36;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3205&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables hardware compression for tape drivers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:37;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3222&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables the read ahead that is used by the   recovery operation during roll forward operations.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:38;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3502&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints a message to the log at the start and end   of each checkpoint.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:39;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3503&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Indicates whether the checkpoint at the end of   automatic recovery was skipped for a database (this applies only to read-only   databases).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:40;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3602&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Records all error and warning messages sent to   the client.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:41;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3604&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Sends trace output to the client. Used only when   setting trace flags with DBCC TRACEON and DBCC TRACEOFF.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:42;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3605&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Sends trace output to the error log. (If you   start SQL Server from the command prompt, the output also appears on the   screen.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:43;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3607&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Skips automatic recovery (at startup) for all   databases.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:44;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3608&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Skips automatic recovery (at startup) for all   databases except the &lt;b&gt;master&lt;/b&gt; database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:45;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3609&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Skips the creation of the &lt;b&gt;tempdb&lt;/b&gt; database   at startup. Use this trace flag if the device or devices on which &lt;b&gt;tempdb&lt;/b&gt; resides   are problematic or problems exist in the &lt;b&gt;model&lt;/b&gt; database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:46;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3626&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Turns on tracking of the CPU data for the   sysprocesses table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:47;height:38.25pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:38.25pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3640&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:38.25pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Eliminates the sending of DONE_IN_PROC messages   to the client for each statement in a stored procedure. This is similar to   the session setting of SET NOCOUNT ON, but when set as a trace flag, every   client session is handled this way.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:48;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;4022&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Bypasses automatically started procedures.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:49;height:51.0pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:51.0pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;4030&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:51.0pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints both a byte and ASCII representation of   the receive buffer. Used when you want to see what queries a client is   sending to SQL Server. You can use this trace flag if you experience a   protection violation and want to determine which statement caused it.   Typically, you can set this flag globally or use SQL Server Enterprise   Manager. You can also use DBCC INPUTBUFFER.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:50;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;4031&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints both a byte and ASCII representation of   the send buffers (what SQL Server sends back to the client). You can also use   DBCC OUTPUTBUFFER.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:51;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;4032&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Traces the SQL commands coming in from the   client. The output destination of the trace flag is controlled with the   3605/3604 trace flags.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:52;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;7300&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Retrieves extended information about any error   you encounter when you execute a distributed query.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:53;height:38.25pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:38.25pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;7501&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:38.25pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Dynamic cursors are used by default on   forward-only cursors. Dynamic cursors are faster than in earlier versions and   no longer require unique indexes. This flag disables the dynamic cursor   enhancements and reverts to version 6.0 behavior.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:54;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;7502&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables the caching of cursor plans for extended   stored procedures.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:55;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;7505&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Enables version 6.x handling of return codes when   calling dbcursorfetchex and the resulting cursor position follows the end of   the cursor result set.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:56;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;7525&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Reverts to the SQL Server 7.0 behavior of closing   nonstatic cursors regardless of the SET CURSOR_CLOSE_ON_COMMIT state in SQL   Server 2000.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:57;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;8202&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Replicates all UPDATE commands as DELETE/INSERT   pairs at the publisher.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:58;height:25.5pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;8206&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Supports stored procedure execution with a user   specified owner name for SQL Server subscribers or without owner   qualification for heterogeneous subscribers in SQL Server 2000.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:59;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;8207&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Enables singleton updates for Transactional   Replication, released with SQL Server 2000 Service Pack 1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:60;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;8599&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Allows you to use a savepoint within a   distributed transaction.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:61;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;8679&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prevents the SQL Server optimizer from using a   Hash Match Team operator.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:62;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;8687&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Used to disable query parallelism.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:63;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;8721&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Dumps information into the error log when   AutoStat has been run.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:64;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;8783&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Allows DELETE, INSERT, and UPDATE statements to   honor the SET ROWCOUNT ON setting when enabled.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:65;height:12.75pt"&gt;   &lt;td width="10%" style="width:10.4%;border:solid windowtext 1.0pt;border-top:   none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:solid windowtext .5pt;   mso-border-right-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;   height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;8816&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Logs every two-digit year conversion to a   four-digit year.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:66;height:12.75pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;260&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" nowrap="" valign="bottom" style="width:89.6%;border-top:none;   border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prints versioning information about extended   Stored procedured dynamic link libraries&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:67;height:12.75pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:12.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1204&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="top" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   background:white;padding:0in 5.4pt 0in 5.4pt;height:12.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Returns the resources and types of locks   participating in a deadlock and also the current command affected.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:68;height:76.5pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:76.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1211&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:76.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables lock escalation based on memory   pressure, or based on number of locks. The SQL Server Database Engine will   not escalate row or page locks to table locks.Using this trace flag can   generate excessive numbers of locks. This can slow the performance of the   Database Engine, or cause 1204 errors (unable to allocate lock resource)   because of insufficient memory. If both trace flag 1211 and 1224 are set,   1211 takes precedence over 1224. However, because trace flag 1211 prevents   escalation in every case, even under memory pressure, we recommend that you   use 1224. This helps avoid "out-of-locks" errors when many locks   are being used.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:69;height:25.5pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1222&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Returns the resources and types of locks that are   participating in a deadlock and also the current command affected, in an XML   format that does not comply with any XSD schema.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:70;height:127.5pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:127.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;1224&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:127.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables lock escalation based on the number of   locks. However, memory pressure can still activate lock escalation. The   Database Engine escalates row or page locks to table (or partition) locks if   the amount of memory used by lock objects exceeds one of the following   conditions:Forty percent of the memory that is used by Database Engine,   exclusive of memory allocation using Address Windowing Extension (AWE). This   is applicable only when the locks parameter of sp_configure is set to 0.Forty   percent of the lock memory that is configured by using the locks parameter of   sp_configure. If both trace flag 1211 and 1224 are set, 1211 takes precedence   over 1224. However, because trace flag 1211 prevents escalation in every   case, even under memory pressure, we recommend that you use 1224. This helps   avoid "out-of-locks" errors when many locks are being used.Lock   escalation to the table- or HoBT-level granularity can also be controlled by   using the LOCK_ESCALATION option of the ALTER TABLEstatement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:71;height:114.75pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:114.75pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;2528&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:114.75pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables parallel checking of objects by DBCC   CHECKDB, DBCC CHECKFILEGROUP, and DBCC CHECKTABLE. By default, the degree of   parallelism is automatically determined by the query processor. The maximum   degree of parallelism is configured just like that of parallel queries. For   more information, see max degree of parallelism Option.Parallel DBCC should   typically be left enabled. For DBCC CHECKDB, the query processor reevaluates   and automatically adjusts parallelism with each table or batch of tables   checked. Sometimes, checking may start when the server is almost idle. An   administrator who knows that the load will increase before checking is   complete may want to manually decrease or disable parallelism.Disabling   parallel checking of DBCC can cause DBCC to take much longer to complete and   if DBCC is run with the TABLOCK feature enabled and parallelism set off,   tables may be locked for longer periods of time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:72;height:38.25pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:38.25pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3205&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:38.25pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;By default, if a tape drive supports hardware   compression, either the DUMP or BACKUP statement uses it. With this trace   flag, you can disable hardware compression for tape drivers. This is useful   when you want to exchange tapes with other sites or tape drives that do not   support compression.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:73;height:51.0pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:51.0pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3226&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:51.0pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;By default, every successful backup operation   adds an entry in the SQL Server error log and in the system event log. If you   create very frequent log backups, these success messages accumulate quickly,   resulting in huge error logs in which finding other messages is   problematic.With this trace flag, you can suppress these log entries. This is   useful if you are running frequent log backups and if none of your scripts   depend on those entries.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:74;height:51.0pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:51.0pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3608&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:51.0pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Prevents SQL Server from automatically starting   and recovering any database except the master database. Databases will be   started and recovered when accessed. Some features, such as snapshot   isolation and read committed snapshot, might not work. Use for Moving System   Databases and Moving User Databases. Do not use during normal operation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:75;height:25.5pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;3625&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Limits the amount of information returned in   error messages. For more information, see Metadata Visibility Configuration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:76;height:51.0pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:51.0pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;4616&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:51.0pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Makes server-level metadata visible to   application roles. In SQL Server, an application role cannot access metadata   outside its own database because application roles are not associated with a   server-level principal. This is a change of behavior from earlier versions of   SQL Server. Setting this global flag disables the new restrictions, and   allows for application roles to access server-level metadata.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:77;height:89.25pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:89.25pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;6527&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:89.25pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Disables generation of a memory dump on the first   occurrence of an out-of-memory exception in CLR integration. By default, SQL   Server generates a small memory dump on the first occurrence of an   out-of-memory exception in the CLR. The behavior of the trace flag is as   follows:If this is used as a startup trace flag, a memory dump is never   generated. However, a memory dump may be generated if other trace flags are   used.If this trace flag is enabled on a running server, a memory dump will   not be automatically generated from that point on. However, if a memory dump   has already been generated due to an out-of-memory exception in the CLR, this   trace flag will have no effect.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:78;mso-yfti-lastrow:yes;height:25.5pt"&gt;   &lt;td width="10%" nowrap="" style="width:10.4%;border:solid windowtext 1.0pt;   border-top:none;mso-border-left-alt:solid windowtext .5pt;mso-border-bottom-alt:   solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:   0in 5.4pt 0in 5.4pt;height:25.5pt" num=""&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;7806&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="89%" valign="bottom" style="width:89.6%;border-top:none;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;   mso-border-bottom-alt:solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;   padding:0in 5.4pt 0in 5.4pt;height:25.5pt"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana;   mso-bidi-font-family:Arial"&gt;Enables a dedicated administrator connection   (DAC) on SQL Server Express. By default, no DAC resources are reserved on SQL   Server Express. For more information, see Using a Dedicated Administrator   Connection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Georgia"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-2218908404768000330?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/2218908404768000330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=2218908404768000330' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2218908404768000330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2218908404768000330'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/01/introduction-to-sql-server-trace-flags_14.html' title='Introduction to SQL Server Trace Flags'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-9095764431907275729</id><published>2009-01-04T20:29:00.003-05:00</published><updated>2009-01-04T20:56:35.413-05:00</updated><title type='text'>Policy Based Management in SQL Server 2008</title><content type='html'>This article discusses the new feature named Policy Based Management in SQL Server 2008. Policy Based Management is an extensive management configuration that can be used to manage servers, databases and objects. Policy Based framework provides a way to define policies that apply to servers, databases and objects. With Policy based Management framework, you can enforce consistent policies across all servers.&lt;br /&gt;&lt;br /&gt;Terms used in Policy Based Framework:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Facet:&lt;/strong&gt; Is a management area within policy based environment.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Condition:&lt;/strong&gt; Defines the permitted state of one or more properties in a defined facet.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Policy:&lt;/strong&gt; Contains a single condition that is to be enforced.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Category:&lt;/strong&gt; Contains one or more policies that you want to enforce.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Target:&lt;/strong&gt; Defines the servers, databases or other database objects for which the polices are to be enforced.&lt;br /&gt;&lt;br /&gt;Listed below is the evaluation modes that are available in Policy Based Management in SQL Server 2008.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;On Demand&lt;/strong&gt; - Evaluates the policy only when you directly execute the policy.(Manual)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;On Change: Prevent&lt;/strong&gt; - When nested triggers are enabled, uses data definition language (DDL) triggers to prevent policy violations by detecting changes that violate policy and rolling them back.(Automatic)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;On Change: Log Only&lt;/strong&gt; - Evaluates a policy when a relevant change is made and logs policy violations in the event logs.(Automatic)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;On Schedule&lt;/strong&gt; - Uses SQL Server Agent jobs to periodically evaluate policies. Logs policy violations in the event logs and generates a report.(Automatic)&lt;br /&gt;&lt;br /&gt;Policies that are executed automatically are executed under the member of a sysadmin role and hence are written to the event logs. Policies that are executed manually are executed under the context of the current user. This user needs permission of ALTER TRACE to write to event logs.&lt;br /&gt;&lt;br /&gt;Permission Needed to Configure Policy Based Management: You need PolicyAdministratorRole role in msdb database to configure Policy Based Management Settings.&lt;br /&gt;&lt;br /&gt;SQL Server stores policy related data in msdb database. You must backup this database after changes to conditions, policies and categories.&lt;br /&gt;&lt;br /&gt;SQL Server 2008 has predefined policies and they are listed below.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Asymmetric Key Encryption Algorithm :&lt;/strong&gt;&lt;br /&gt;Checks whether asymmetric keys were created by using 1024-bit or stronger encryption. As a best practice, you should use RSA 1024-bit or stronger encryption to create asymmetric keys for data encryption.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Backup And Data File Location:&lt;br /&gt;&lt;/strong&gt;Checks whether database files are on devices separate from the backup files. As a best practice, you should put the database and backups on separate backup devices.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CmdExec Rights Secured&lt;br /&gt;&lt;/strong&gt;Checks an instance of SQL Server 2000 to determine whether only members of the sysadmin server role can run CmdExec and ActiveX Script job steps, which is a recommended best practice.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Data And Log File Location&lt;br /&gt;&lt;/strong&gt;Checks whether data and log files are placed on separate logical drives. As a best practice, placing the files on separate drives allows the I/O activity to occur at the same time for both the data and log files.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Database Auto Close&lt;br /&gt;&lt;/strong&gt;Checks whether the AUTO_CLOSE option is set to OFF. When AUTO_CLOSE is set to ON, this option can cause performance degradation on frequently accessed databases because of the increased overhead of opening and closing the database after each connection. AUTO_CLOSE also flushes the procedure cache after each connection.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Database Auto Shrink&lt;br /&gt;&lt;/strong&gt;Checks whether the AUTO_SHRINK database option is set to OFF. Because frequently shrinking and expanding a database can lead to fragmentation on the storage device.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Database Collation&lt;br /&gt;&lt;/strong&gt;Checks whether user-defined databases are defined by using a database collation that is the same as the collation for the master and model databases, which is a recommended best practice. Otherwise, collation conflicts can occur that might prevent code from executing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Database Page Status&lt;br /&gt;&lt;/strong&gt;Checks for user databases that have the database status set to Suspect. The Database Engine marks a database as Suspect when it reads a database page that contains an 824 error. Error 824 indicates that a logical consistency error was detected during a read operation, and it frequently indicates data corruption caused by a faulty I/O subsystem component.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Database Page Verification&lt;br /&gt;&lt;/strong&gt;Checks whether the PAGE_VERIFY database option is set to CHECKSUM. This recommended best practice helps provide a high level of data-file integrity by forcing the Database Engine to calculate a checksum over the contents of the whole page and store the value in the page header when a page is written to disk. When the page is read from disk, the checksum is recomputed and compared to the checksum value that is stored in the page header.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;File Growth For SQL Server 2000&lt;br /&gt;&lt;/strong&gt;Checks an instance of SQL Server 2000 for data files that are 1 gigabyte or larger and are set to autogrow by a percentage instead of a fixed size. As a recommended best practice, large databases should class=SpellE&gt;autogrow by a fixed size. Otherwise, growing a data file by a percentage can cause performance problems with SQL Server because of progressively larger growth increments.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Guest Permissions&lt;br /&gt;&lt;/strong&gt;Checks whether the guest user has permission to access a user database. As a best practice, you should revoke the guest user permission to access a database if it is not required.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Last Successful Backup Date&lt;br /&gt;&lt;/strong&gt;Checks to ensure that a database has recent backups. Scheduling regular backups protects a database against data loss.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Public Not Granted Server Permissions&lt;br /&gt;&lt;/strong&gt;Checks whether the public server role has server permissions. Every login that is created on the server is a member of the public server role and will have server permissions.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Read-Only Database Recovery Model&lt;br /&gt;&lt;/strong&gt;Checks for read-only user databases that have recovery set to Full. As a best practice, these databases should use the Simple recovery model because they aren’t frequently updated.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server 32-Bit Affinity Mask Overlap&lt;br /&gt;&lt;/strong&gt;Checks whether the 32-bit instance of SQL Server has one or more processors that are assigned to be used with both the Affinity Mask and Affinity I/O Mask options. Enabling a CPU with both the affinity mask and the affinity I/O mask can slow performance by forcing the processor to be overused.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server 64-Bit Affinity Mask Overlap&lt;br /&gt;&lt;/strong&gt;Checks whether the 64-bit instance of SQL Server has one or more processors that are assigned to be used with both the Affinity Mask and Affinity I/O Mask options. Enabling a CPU with both the affinity mask and the affinity I/O mask can slow performance by forcing the processor to be overused.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Affinity Mask&lt;br /&gt;&lt;/strong&gt;Checks whether the Affinity Mask option is set to 0. This is the default value, which dynamically controls CPU affinity. Using the default value is a recommended best practice.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Blocked Process Threshold&lt;br /&gt;&lt;/strong&gt;Checks the Blocked Process Threshold option, and ensures it is set to 0 (disabled) or to a value higher than or equal to 5 (seconds). Setting the Blocked Process Threshold option to a value from 1 through 4 can cause the deadlock monitor to run constantly, and this state is desirable only when you are troubleshooting.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Default Trace&lt;br /&gt;&lt;/strong&gt;Determine whether the Default Trace option is disabled. When this option is enabled, default tracing provides information about configuration and DDL changes to the SQL Server Database Engine.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Dynamic Locks&lt;br /&gt;&lt;/strong&gt;Checks whether the Locks option is set to 0. This is the default value, which dynamically controls locks. Using the default value is a recommended best practice.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Lightweight Pooling&lt;br /&gt;&lt;/strong&gt;Checks whether the Lightweight Pooling option is set to 0. This is the default value, which prevents SQL Server from using lightweight pooling. Using the default value is a recommended best practice.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Login Mode&lt;br /&gt;&lt;/strong&gt;Checks the login security configuration to ensure Windows authentication is being used. Using Windows authentication is a recommended best practice because this mode uses the Kerberos security protocol, provides support for account lockout, and supports password expiration. For Windows Server 2003 and Windows Server 2008, Windows authentication also provides password policy enforcement in terms of complexity validation for strong passwords.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Max Degree Of Parallelism&lt;br /&gt;&lt;/strong&gt;Checks whether the Max Degree Of Parallelism (MAXDOP) option is set to a value greater than 8. Because setting this option to a value larger than 8 often causes unwanted resource consumption and performance degradation, you’ll usually want to reduce the value to 8 or less.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Max Worker Threads For SQL Server 2005 And Above&lt;br /&gt;&lt;/strong&gt;Checks the Max Worker Threads Server option for potentially incorrect settings. Setting the Max Worker Threads option to a small value might prevent enough threads from servicing incoming client requests in a timely manner. Setting the option to a large value can waste address space, because each active thread consumes 512 KB on 32-bit servers and up to 4 MB on 64-bit servers. For instances of SQL Server 2005 and SQL Server 2008, you should set this option to 0, which allows SQL Server to automatically determine the correct number of active worker threads based on user requests.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Network Packet Size&lt;br /&gt;&lt;/strong&gt;Determines whether the network packet size of any logged-in user is more than 8060 bytes. As a best practice, the network packet size should not exceed 8060 bytes. Otherwise, SQL Server performs different memory allocation operations, and this can cause an increase in the virtual address space that is not reserved for the buffer pool.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Password Expiration&lt;br /&gt;&lt;/strong&gt;Checks whether password expiration is enabled for each SQL Server login. As a best practice, you should enable password expiration for all SQL Server logins using ALTER LOGIN. Additionally, if SQL Server authentication is not required in your environment, you should enable only Windows authentication.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Password Policy&lt;br /&gt;&lt;/strong&gt;Checks whether the Enforce Password policy is enabled for each SQL Server login. As a best practice, you should enable the Enforce Password policy for all the SQL Server logins by using ALTER LOGIN.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server System Tables Updatable&lt;br /&gt;&lt;/strong&gt;Checks whether system tables for SQL Server 2000 can be updated. As a best practice, you shouldn’t allow updates to system tables.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Symmetric Key Encryption For User Databases&lt;br /&gt;&lt;/strong&gt;Checks whether encryption keys that have a length of less than 128 bytes do not use the RC2 or RC4 encryption algorithm. As a best practice, you should use AES 128 bit or larger to create symmetric keys for data encryption. If AES is not supported by your operating system, you should use 3DES encryption.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Symmetric Key For master Database&lt;br /&gt;&lt;/strong&gt;Checks for user-created symmetric keys in the master database.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Symmetric Key For System Databases&lt;br /&gt;&lt;/strong&gt;Checks for user-created symmetric keys in the msdb, model, and tempdb databases. As a best practice, you should not create symmetric keys in the system databases.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Trustworthy Database&lt;br /&gt;&lt;/strong&gt;Checks whether the dbo role for a database is assigned to the sysadmin fixed server role and the database has its trustworthy bit set to ON. As a best practice, you should turn off the trustworthy bit or revoke sysadmin permissions from the dbo database role. Otherwise, a privileged database user can elevate privileges to the sysadmin role and then create and run unsafe assemblies that could compromise the system.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Windows Event Log Cluster Disk Resource Corruption Error&lt;br /&gt;&lt;/strong&gt;Checks the system event log for EventId 1066. This error can occur when a device is malfunctioning and also as a result of SCSI host adapter configuration issues.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Windows Event Log Device Driver Control Error&lt;br /&gt;&lt;/strong&gt;Checks the system event log for EventId 11. This error can be caused by a corrupt device driver, a hardware problem, faulty cabling, or connectivity issues.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Windows Event Log Device Not Ready Error&lt;br /&gt;&lt;/strong&gt;Checks the system event log for EventId 15. This error can be caused by SCSI host adapter configuration issues or related problems.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Windows Event Log Disk Defragmentation&lt;br /&gt;&lt;/strong&gt;Checks the system event log for EventId 55. This error occurs when the Disk Defragmenter tool cannot move a particular data element and as a result Chkdsk.exe is scheduled to run.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Windows Event Log Failed I_O Request Error&lt;br /&gt;&lt;/strong&gt;Checks the system event log for EventId 50. This error is caused by a failed I/O request.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Windows Event Log I_O Delay Warning&lt;br /&gt;&lt;/strong&gt;Checks the event log for error message 833. This message indicates that SQL Server has issued a read or write request from disk, and that the request has taken longer than 15 seconds to return. You can troubleshoot this error by examining the system event log for hardware-related error messages. Look also for hardware-specific logs.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Windows Event Log I_O Error During Hard Page Fault Error&lt;br /&gt;&lt;/strong&gt;Checks the system event log for EventId 51. This error is caused by an error during a hard page fault.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Windows Event Log Read Retry Error&lt;br /&gt;&lt;/strong&gt;Checks the event log for SQL Server error message 825. This message indicates that SQL Server was unable to read data from the disk on the first try. You’ll need to check the disks, disk controllers, array cards, and disk drivers.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Windows Event Log Storage System I_O Timeout Error&lt;br /&gt;&lt;/strong&gt;Checks the system event log for EventId 9. This message indicates that an I/O time-out has occurred in the storage system.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Windows Event Log System Failure Error&lt;br /&gt;&lt;/strong&gt;Checks for the system event log for EventId 6008. This event indicates an unexpected system shutdown.&lt;br /&gt;&lt;br /&gt;Next topic will be How to configure Policay Based management in SQL Server 2008 with illustration.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-9095764431907275729?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/9095764431907275729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=9095764431907275729' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/9095764431907275729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/9095764431907275729'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2009/01/policy-based-management-in-sql-server.html' title='Policy Based Management in SQL Server 2008'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-7989436072802120476</id><published>2008-12-29T13:47:00.002-05:00</published><updated>2008-12-29T13:50:29.574-05:00</updated><title type='text'>Script to fix Orphans user in all Databases</title><content type='html'>SET NOCOUNT ON&lt;br /&gt;create table #fix_orphanusers(dbname varchar(50),username varchar(50),userid uniqueidentifier)&lt;br /&gt;&lt;br /&gt;insert into #fix_orphanusers&lt;br /&gt;Exec SP_MSForEachDB 'select ''?'' as DBName, name AS UserName, sid AS UserSIDfrom ?..sysuserswhere issqluser = 1 and(sid is not null and sid &lt;&gt; 0x0)and suser_sname(sid) is nullorder by name'&lt;br /&gt;&lt;br /&gt;declare @dbname varchar(50)&lt;br /&gt;declare @username varchar(50)&lt;br /&gt;declare @cmd varchar(4000)&lt;br /&gt;&lt;br /&gt;DECLARE fixoprhans_cursor CURSOR FOR&lt;br /&gt;SELECT dbname,username from #fix_orphanusers&lt;br /&gt;&lt;br /&gt;open fixoprhans_cursor&lt;br /&gt;fetch next from fixoprhans_cursor into @dbname,@username&lt;br /&gt;&lt;br /&gt;while @@fetch_status=0&lt;br /&gt;begin&lt;br /&gt; select @cmd = 'use &lt;a href="mailto:"&gt;'+@dbname+char(10)+'go'+char(10)+'sp_change_users_login&lt;/a&gt; ''update_one'','+''''+@username+''''+','+''''+@username+''''+char(10)+'go'&lt;br /&gt;exec @cmd&lt;br /&gt;fetch next from fixoprhans_cursor into @dbname,@username&lt;br /&gt;end&lt;br /&gt;close fixoprhans_cursor&lt;br /&gt;deallocate fixoprhans_cursor&lt;br /&gt;&lt;br /&gt;drop table #fix_orphanusers&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-7989436072802120476?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/7989436072802120476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=7989436072802120476' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7989436072802120476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7989436072802120476'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/12/script-to-fix-orphans-user-in-all.html' title='Script to fix Orphans user in all Databases'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4045243853720406183</id><published>2008-12-23T11:11:00.029-05:00</published><updated>2009-01-02T11:07:08.041-05:00</updated><title type='text'>Installing SQL Server 2008</title><content type='html'>&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;This article introduces how to install SQL Server 2008 RTM. With SQL Server 2008, you have new setup architecture and various options that can be used to easily guide you through for successful installation.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;1. Once you click the setup executable you will be taken to the screen shown below. This gives various options and information on SQL Server installation. You can check the SQL Server 2008 software and hardware requirements, books online, documentation, etc&lt;/span&gt;&lt;/span&gt;&lt;img src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SVEN8LOWJnI/AAAAAAAABdc/cx3-I8OlvwU/s200/1.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5283019165338576498" /&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;2. Click next and you will be taken to the installation options, you can choose t&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;he type of installation to be  performed, you will also have options for upgrading&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;from previous versions of SQL Server.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://3.bp.blogspot.com/_ZOMrIctR-AE/SVEOa62A8gI/AAAAAAAABdk/yxHpsjB_GYg/s200/2.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5283019693517500930" /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;3. You can also perform edition upgrades, repair on current installation and&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt; remove nodes from SQL server cluster using the installation setup.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://4.bp.blogspot.com/_ZOMrIctR-AE/SVEO8EhA1SI/AAAAAAAABds/pOaryrUaNLM/s200/3.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5283020263049450786" /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;4. Advanced link has options with which you can create configuration file to&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt; perform a unattended installation and also advanced cluster configurations.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://4.bp.blogspot.com/_ZOMrIctR-AE/SVEPrArkA2I/AAAAAAAABd0/zVvGe7Vbp6k/s200/4.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5283021069473809250" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Once you click the installation and perform a new installation, it will ask for the&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Processor Type information. Choose the right processor type information and the&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;setup executable file path.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://4.bp.blogspot.com/_ZOMrIctR-AE/SVEQSJJAsJI/AAAAAAAABd8/2Dwc2gFOASo/s200/5.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5283021741759705234" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Click next, you will be taken to SQL Server installation tasks.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;img src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SVEQuGUKJ6I/AAAAAAAABeE/6tlTWBXmwmE/s200/6.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 52px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5283022222037493666" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Installation checks and installs setup support files if needed.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SVERWHGuJtI/AAAAAAAABeM/FsR3Wh34gvQ/s200/7.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5283022909444335314" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Click install in Setup Support files screen to proceed with the installation.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://3.bp.blogspot.com/_ZOMrIctR-AE/SVER5MFHLVI/AAAAAAAABeU/AMv_sn5G4_c/s200/8.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 149px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5283023512075185490" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Specify the edition which you wish to install and enter the product key in it.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://4.bp.blogspot.com/_ZOMrIctR-AE/SVESsJKA97I/AAAAAAAABec/q-R6vQ6JKfg/s200/9.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 149px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5283024387463772082" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Accept license agreement and click next to proceed.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://3.bp.blogspot.com/_ZOMrIctR-AE/SVETlfuqucI/AAAAAAAABek/Ra9h4Uq09uQ/s200/10.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5283025372775627202" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);  line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Select all the features that you would like to install in you server.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://1.bp.blogspot.com/_ZOMrIctR-AE/SV4tU7f16dI/AAAAAAAABxU/upU2kitKlZE/s200/11.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286712850171423186" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Choose the instance name if named instance or leave it as default. Also mention&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;details of the installation root directory, this is where SQL server binaries will be&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;installed&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://4.bp.blogspot.com/_ZOMrIctR-AE/SV4uH20YJ1I/AAAAAAAABxc/kcbo7dReO7Q/s200/12.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286713725088704338" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Check and review the disk space requirements and click next to proceed if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;everything is fine.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://3.bp.blogspot.com/_ZOMrIctR-AE/SV4viuJo4QI/AAAAAAAABxk/gFHjkB_U4Ms/s200/13.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 151px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286715286130057474" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Specify Services account for all SQL server services, it’s advised to use domain accounts rather than using local or system accounts.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SV4xq0mKT6I/AAAAAAAABxs/i9vG1GkdYaY/s200/14.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 149px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286717624322510754" /&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;img src="http://3.bp.blogspot.com/_ZOMrIctR-AE/SV4yQDHeejI/AAAAAAAABx0/ejiO4qZchcU/s200/15.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286718263875500594" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Select the type of authentication mode for SQL Server security.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://4.bp.blogspot.com/_ZOMrIctR-AE/SV4zdxAwuNI/AAAAAAAABx8/QGRXI2fOayw/s200/16.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 151px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286719599045294290" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Choose the default paths for data and log files for system, user and tempdb databases.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SV40Ywdu1-I/AAAAAAAAByE/_pElAIjYixc/s200/17.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 152px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286720612510652386" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Choose option to enable FILESTREAM (this is to be discussed as a separate topic in other blog entry)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://1.bp.blogspot.com/_ZOMrIctR-AE/SV41O8dpaKI/AAAAAAAAByM/KU-Ugw1qRUA/s200/18.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286721543444457634" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Configure for error and reporting while installation.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SV42YxCSwsI/AAAAAAAAByU/MMDamSBCkCc/s200/19.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286722811687256770" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Check for the installation rules and if all succeeds then click next to complete installation.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SV43_KKVavI/AAAAAAAAByc/jCL4VHb82lk/s200/20.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286724570778528498" /&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51);   line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Verify the details given for the SQL server installation, if need be make changes before proceeding to next step.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://3.bp.blogspot.com/_ZOMrIctR-AE/SV44ue2xu1I/AAAAAAAAByk/UVXu-z2p6Ac/s200/21.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 151px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286725383787494226" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 19px; "&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;Check for installation progress.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SV45lrfPb6I/AAAAAAAABys/XMXCBm1Sle8/s200/22.bmp" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5286726332071243682" /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;SQL Server has been installed. Hope you had a wonderful experience installing SQL Server 2008. Lets discuss other features and theories from next blog.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4045243853720406183?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4045243853720406183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4045243853720406183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4045243853720406183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4045243853720406183'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/12/installing-sql-server-2008.html' title='Installing SQL Server 2008'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ZOMrIctR-AE/SVEN8LOWJnI/AAAAAAAABdc/cx3-I8OlvwU/s72-c/1.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5462619715517383611</id><published>2008-12-17T12:00:00.001-05:00</published><updated>2008-12-17T12:01:40.335-05:00</updated><title type='text'>SQL 2005 SP3 released</title><content type='html'>Microsoft has released Service pack 3 for SQL Server 2005. The downlad details are given below.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=ae7387c3-348c-4faa-8ae5-949fdfbe59c4&amp;amp;displaylang=en&amp;amp;tm"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=ae7387c3-348c-4faa-8ae5-949fdfbe59c4&amp;amp;displaylang=en&amp;amp;tm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5462619715517383611?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5462619715517383611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5462619715517383611' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5462619715517383611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5462619715517383611'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/12/sql-2005-sp3-released.html' title='SQL 2005 SP3 released'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4078787917526515321</id><published>2008-09-17T11:21:00.002-04:00</published><updated>2008-09-17T11:24:32.886-04:00</updated><title type='text'>Tools, Tools and More Tools........................</title><content type='html'>I have been writing articles and scripts in my blog and website frequently. But there has been a lean patch for almost a month now. The reason was i was busy thinking on building on some useful tools that DBA can use on thier routine work life. As a result of it, I have come up with my own tool set and will be launching them one by one ASAP. I am not good in programming but have taken help of my few best friends that I have in that area. So you all can expect more interesting stuff from this blog and my website sooner. And your feedbacks on the tools that we are going to develop is what we expect from you. Many thanks. Keep reading.........&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4078787917526515321?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4078787917526515321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4078787917526515321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4078787917526515321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4078787917526515321'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/09/tools-tools-and-more-tools.html' title='Tools, Tools and More Tools........................'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-3784688800291142560</id><published>2008-08-16T14:54:00.001-04:00</published><updated>2008-08-16T14:55:37.628-04:00</updated><title type='text'>Life of being a DBA</title><content type='html'>&lt;span style="color:#3333ff;"&gt;There has been enough said about being a DBA in a critical production environment in many websites, blogs and interviews. But today was the day that I had a taste of it. I had to join a web meeting to do a production migration early morning around 5:45AM. And all was expected to go well and the task to be completed within 4 hours. This meant that the expected time to complete the task was 4 hours which included testing the application after migration.&lt;br /&gt;&lt;br /&gt;            Unfortunate enough, the migration went well through all the steps and I was expecting a HAPPY SATURDAY as usual until we realized that we had a problem starting one of our services. That was a simple service that should have started without any issues from all sides. But things were going the other way what seemed to be simple became one of the complex tasks to handle and was bugging me for almost 3 hours.&lt;br /&gt;I had to make my mind work at rapid pace to get things faster but with no luck. At last all I had to do to bring the service up and running was one of the funniest things. I had to reboot the server to have it running. Yes the simplest MicroSoft solution got rid of what seemed to be the complex issue.&lt;br /&gt;&lt;br /&gt;            I took almost 3 hours for us to take such a decision. Now I realize that being a DBA is not the easiest tasks that I could consider moving forward. I had literally gone through 4 hours for a simple task that got mine.&lt;br /&gt;           &lt;br /&gt;            Life of being a DBA is something that people should love as if it’s part of their wholesome life. I love being a DBA in any cause and still love it more, more and more to go.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-3784688800291142560?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/3784688800291142560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=3784688800291142560' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3784688800291142560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3784688800291142560'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/08/life-of-being-dba.html' title='Life of being a DBA'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5020706544763570945</id><published>2008-08-15T21:30:00.004-04:00</published><updated>2008-08-15T21:37:25.830-04:00</updated><title type='text'>Data Partitioning</title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;strong&gt;Introduction:&lt;/strong&gt;&lt;br /&gt;This article takes introduces you to the concept of data partitioning in SQL server 2005. It also gives you an example of how to start from the scratch and also how to partition an already existing table.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;strong&gt;Data Partitioning:&lt;/strong&gt;&lt;br /&gt;Partitioning is a very powerful feature in SQL Server 2005. It means that you can horizontally partition the data in your table, thus deciding in which filegroup each row must be placed.&lt;br /&gt;This allows you to operate on a partition even with performance critical operation, such as reindexing, without affecting the others. In addition, during restore, as soon a partition is available; all the data in that partition are available for quering, even if the restore is not yet fully completed.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;strong&gt;Illustration of Data Partitioning:&lt;/strong&gt;&lt;br /&gt;Before proceeding with the steps that are given below, create a database called datapart in your server. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;1. Create the file groups in which you are going to place the data&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Alter database datapart add filegroup data_part&lt;br /&gt;Alter database datapart add filegroup data_part1 &lt;/span&gt;&lt;/div&gt;&lt;span style="color:#ff0000;"&gt;&lt;div&gt;&lt;br /&gt;&lt;/span&gt;2. Create the files in which you are going to place the data and assign them to the filegroups&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Alter database datapart add file (name = 'part1',&lt;br /&gt;filename = 'f:\sugesh\data\part1.ndf') to filegroup data_part&lt;br /&gt;Alter database datapart add file (name = 'part2',&lt;br /&gt;filename = 'f:\sugesh\data\part2.ndf') to filegroup data_part1 &lt;/span&gt;&lt;/div&gt;&lt;span style="color:#ff0000;"&gt;&lt;div&gt;&lt;br /&gt;&lt;/span&gt;3. Create a partition function that partitions the table data in interval of 500 which means that the values below 500 will be placed in partition 1 and others in partition 2.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;create partition function part(int) as range right for values (500) &lt;/span&gt;&lt;/div&gt;&lt;span style="color:#ff0000;"&gt;&lt;div&gt;&lt;br /&gt;&lt;/span&gt;4. Create a partition scheme so that you can associate the partition function to the filegroups&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;create partition scheme part as partition part to (data_part, data_part1)&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;5. Create a table to test our data partitioning&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;create table datapart(name varchar(10), part int) on part(part)&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;6. Insert values into the tables to the right and left of your partition value.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;insert into datapart values('sugesh',0)&lt;br /&gt;insert into datapart values('kumar',499)&lt;br /&gt;insert into datapart values('sugesh',500)&lt;br /&gt;insert into datapart values('sugesh',10000)&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;7. Select the values from the table along with the partition file id to find where the data has been placed and confirm if the data has been placed as per data partition defined.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;select *, $partition.part(part) from datapart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5234922446034539298" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SKYuOpabkyI/AAAAAAAABJ0/ebCmXhJoClw/s200/dpart_image002.jpg" border="0" /&gt; &lt;p&gt;The values 1 and 2 that you see in the last column in the figure given above is the partition id field and as you see all values below 500 are placed in partition 1 and others in partition 2.&lt;br /&gt;Now, what’s up for us next? I have been asked by some of my colleagues, friends and few others that, is it possible to partition a table that already has rows in it. Yes of course, given below are the steps that I have used to partition the data that we have in a table with the data partition feature in SQL Server 2005.&lt;/p&gt;&lt;p&gt;1. Create a table without specifying any data partition in the table.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;create table datapart1(name varchar(10), part int) on part(part) &lt;/span&gt;&lt;/p&gt;&lt;p&gt;2. Insert values into your table such that the values are split across your partitions.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;insert into datapart1 values('sugesh',499)&lt;br /&gt;insert into datapart1 values('sugesh',999) &lt;/span&gt;&lt;/p&gt;&lt;p&gt;3. Create a partition function that partitions the table data in interval of 500 which means that the values below 500 will be placed in partition 1 and others in partition 2.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;create partition function part(int) as range right for values (500)&lt;/span&gt; &lt;/p&gt;&lt;p&gt;4. Create a partition scheme so that you can associate the partition function to the filegroups&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Create partition scheme part as partition part to (data_part, data_part1)&lt;/span&gt; &lt;/p&gt;&lt;p&gt;5. Insert all the value that you have in the table into a backup table&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;select * into datapart1_2007jun25 from datapart1 &lt;/span&gt;&lt;/p&gt;&lt;p&gt;6. Drop and re-create the table specifying the data partitioning that needs to be used.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;drop table datapart1&lt;br /&gt;go&lt;br /&gt;create table datapart1(name varchar(10), part int) on part(part)&lt;/span&gt; &lt;/p&gt;&lt;p&gt;7. insert the values into the table that you have created with data partitioning from the backup table that has the original values&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;insert into datapart1&lt;br /&gt;select * from datapart1_2007jun25&lt;/span&gt; &lt;/p&gt;&lt;p&gt;8. Select the values from the table along with the partition file id to find where the data has been placed and confirm if the data has been placed as per data partition defined.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;select *, $partition.part(part) from datapart1&lt;/p&gt;&lt;/span&gt;&lt;img id="BLOGGER_PHOTO_ID_5234922934967527154" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_ZOMrIctR-AE/SKYurG1I5vI/AAAAAAAABJ8/EhKcLiM_sT0/s200/dpart_image004.jpg" border="0" /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Alternate Suggestions:&lt;br /&gt;&lt;/strong&gt;Though there are other options of using the alter table…. Split partition, alter table…..switch partition they can’t be effectively used for a table that already has large number of rows in it with clustered and non-clustered indexes. This solution of mine worked a way to get them around.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Conclusion:&lt;br /&gt;&lt;/strong&gt;I hope you have enjoyed learning the way of partitioning the data in SQL Server 2005. The simplest way to partition the data and improve the performance of reads and writes for larges tables. Your opinions, views and suggestions are always welcome. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5020706544763570945?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5020706544763570945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5020706544763570945' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5020706544763570945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5020706544763570945'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/08/data-partitioning.html' title='Data Partitioning'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ZOMrIctR-AE/SKYuOpabkyI/AAAAAAAABJ0/ebCmXhJoClw/s72-c/dpart_image002.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-2333759740041487687</id><published>2008-08-13T12:57:00.001-04:00</published><updated>2008-08-13T12:57:45.022-04:00</updated><title type='text'>Clustering SQL Server Integration Services</title><content type='html'>&lt;span style="font-family:georgia;color:#3333ff;"&gt;Until the release of SQL Server 2005 SP2, Clustering SQL Server Integration Services was a bit complex task But Microsoft made it a very simple task with the release of Service Pack 2. Given below are the steps to be followed to cluster SSIS.&lt;br /&gt;&lt;br /&gt;1.      Install SSIS in all node of cluster.&lt;br /&gt;2.      Move to %Program Files%\Microsoft SQL Server\90\DTS\Binn&lt;br /&gt;3.      Look for the file MsDtsSrvr.ini.xml&lt;br /&gt;4.      Look up for the Server Name class, Change it to point to the SQL Server Virtual Name&lt;br /&gt;5.      Restart SQL Server Integration services&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-2333759740041487687?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/2333759740041487687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=2333759740041487687' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2333759740041487687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2333759740041487687'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/08/clustering-sql-server-integration.html' title='Clustering SQL Server Integration Services'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-664409163161356761</id><published>2008-08-07T08:02:00.002-04:00</published><updated>2008-08-07T08:04:38.480-04:00</updated><title type='text'>SQL Server 2008 RTM</title><content type='html'>&lt;span style="color:#3333ff;"&gt;Microsoft has come up with SQL Server 2008 release. SQL Server 2008 RTM was released on Aug 6th 2008 and is available for all customers and users. &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/Presspass/press/2008/aug08/08-06SQLServer2008PR.mspx"&gt;&lt;span style="color:#3333ff;"&gt;http://www.microsoft.com/Presspass/press/2008/aug08/08-06SQLServer2008PR.mspx&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-664409163161356761?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/664409163161356761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=664409163161356761' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/664409163161356761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/664409163161356761'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/08/sql-server-2008-rtm.html' title='SQL Server 2008 RTM'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-7212098684860580505</id><published>2008-08-05T17:44:00.000-04:00</published><updated>2008-08-05T17:45:18.697-04:00</updated><title type='text'>Unusual Backup Error in SQL Server</title><content type='html'>You might be wondering what is happening in your SQL Server when you see the error message given below. Its all simple, you need not panic.&lt;br /&gt;Error Number: 18272&lt;br /&gt;Error Message: I/O error on backup or restore restart-checkpoint file '%1'. Operating system error %2. The statement is proceeding but is non-restartable.&lt;br /&gt;                This happens when SQL server is not able to find the default backup directory. SQL Server needs to create a checkpoint file when a BACKUP or RESTORE operation happens. This happens when the RESTART option is specified. WITH RESTART tells SQL Server to start from the point where the operation was last aborted. When SQL Server searches for the file and its not available then this error is thrown.&lt;br /&gt;How to avoid this error:&lt;br /&gt;&lt;br /&gt;1.        Check the default backup directory for the SQL Server and see if exists, if not create it.&lt;br /&gt;2.       Verify if the backup directory has enough space in it.&lt;br /&gt;3.       Verify if SQL Server service account has permissions to read and write into that directory.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-7212098684860580505?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/7212098684860580505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=7212098684860580505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7212098684860580505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7212098684860580505'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/08/unusual-backup-error-in-sql-server.html' title='Unusual Backup Error in SQL Server'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-1954533896011908230</id><published>2008-08-01T22:39:00.004-04:00</published><updated>2008-11-06T22:44:44.808-05:00</updated><title type='text'>Introduction to Notification Services</title><content type='html'>I have been a Core Server Side SQL Server DBA for more than half a decade. This was the first application side task that I handled from the SQL Server front. I would like to thank my friends Chakravarthy and Poornima for giving me this wonderful opportunity to work on Notification Services. I don’t claim that this document would give you all that are needed to work with Notification Services. It just gives you a brief idea of what it is and how you can create a simple notification service application.&lt;br /&gt;&lt;br /&gt;And before going into the discussion, let me say that Notification services is removed from SQL Server 2008 and though Microsoft Supports it in SQL 2005 it comes under the Support of Reporting Services feature and is not taken as an independent feature.&lt;br /&gt;&lt;br /&gt;Microsoft Notification Services can be used to generate notifications and send it to the users. Notifications sent can be either event driven or scheduled. All subscribers who have subscribed for the subscription will be notified on the event.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Key Terms in Notification Services:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Instance Configuration File (ICF):&lt;/strong&gt; This file contains parameter details for the Notification service instance. This is the primary file that is used to create the notification services.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Application Definition File (ACF):&lt;/strong&gt; This File contains details of the application settings like the events, rules, subscribers, subscriptions, notification to be generated, etc.&lt;br /&gt;&lt;br /&gt;Both of these files will be dealt in detail in the coming sections.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Subscriber:&lt;/strong&gt; A person or application that subscribers to receive notifications.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Subscription:&lt;/strong&gt; It’s the information that needs to be sent to the subscribers.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Event:&lt;/strong&gt; It’s the piece of information that has to be captured and sent to the subscribers.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Notification: &lt;/strong&gt;Notification is the message that contains the information related to the subscription.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Generator:&lt;/strong&gt; It governs the rule processing for the notification services.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Distributor:&lt;/strong&gt; It governs the notification formatting and delivery. It looks for notifications on a configured interval and sends the notifications to the subscribers in the event of an occurrence of the same.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Subscription Device:&lt;/strong&gt; A subscription device can be anything like a e-mail, Phone, Message, File, etc&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Notification Service Architecture: &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Below is the simple architecture of how Notification service.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;img id="BLOGGER_PHOTO_ID_5229744732692483122" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_ZOMrIctR-AE/SJPJIEIbDDI/AAAAAAAABJE/pWCtG63H47M/s200/ns_1.JPG" border="0" /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;1. Subscribers subscribe to events.&lt;br /&gt;2. Events are captured by the application.&lt;br /&gt;3. Service matches subscriptions to the events.&lt;br /&gt;4. Notification service generates a notification.&lt;br /&gt;5. Notification Service formats and sends the notification to the subscribers.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Detailed Architecture of Notification Services.&lt;/strong&gt;&lt;/p&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5229745016018730706" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SJPJYjmqftI/AAAAAAAABJM/xTLz52crgd4/s200/ns_2.JPG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;p&gt;&lt;br /&gt;1. Notification Services stores subscriber and subscription information on databases that are created for it. (A Notification service creates 2 databases when services are installed, we will be covering those in detail when we create the service). We can create a subscription management application using a programming language to manage subscriber and subscriptions. This provides the better subscription management for the subscriber (end users) to add/edit/view their subscription data.&lt;br /&gt;2. Using the event providers that are defined in the Definition File, NS mines the database for events and stores the event data in the application database. There are various event providers that are available in NS. This event provider monitors a directory for XML event data. Using this event provider, you can drop XML event files in the directory, and the event provider reads the XML events and submits them to the application database. Another Advantage of Event providers is they can be run by the event provider host component, or they can run independently of Notification Services which gives it more robustness.&lt;br /&gt;3. SQL Queries are written to get the necessary information passed to the notification services. Then generator matches the subscriptions and the events and generates notifications. According to the need of the application the administrator can configure how frequent this generator should run. This makes the application more efficient in time sensitive notifications.&lt;br /&gt;4. The distributor distributes the notification after proper formatting using the content formatter described.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Creating a Sample Notification Service Application:&lt;br /&gt;&lt;/strong&gt;We are going to create a sample notification service application once you create the application you will find the following.&lt;br /&gt;1. NS$instancename Services in the services applet.&lt;br /&gt;2. InstanceNameApplicationName database in SQL Server.&lt;br /&gt;3. InstanceNameNSMain database in SQL Server.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Steps to be followed:&lt;br /&gt;&lt;/strong&gt;1. Create an ICF file.&lt;br /&gt;2. Create an ADF File.&lt;br /&gt;3. Login to SQL Server management Studio, Right click Notification Services to create a new notification services instance.&lt;br /&gt;4. Browse to the click ICF file and click OK&lt;br /&gt;5. If it succeeds then you will see the above service and database created in the server.&lt;br /&gt;6. Right click the Notification Service Instance Name, Goto Tasks-&gt;Register.&lt;br /&gt;7. Check the “Create Windows Service” giving proper credentials and click OK.&lt;br /&gt;8. Confirm this succeeds.&lt;br /&gt;9. Right click Instance and select enable.&lt;br /&gt;10. Right click Instance and select Start.&lt;/p&gt;&lt;p&gt;This starts SQL Server Notification Service and your notification service application starts to collect the events defined in the ADF file. I will cover how to use Notification Service to create and send notifications to subscribers in my next article on Notification Services.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-1954533896011908230?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/1954533896011908230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=1954533896011908230' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1954533896011908230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1954533896011908230'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/08/introduction-to-notification-services.html' title='Introduction to Notification Services'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ZOMrIctR-AE/SJPJIEIbDDI/AAAAAAAABJE/pWCtG63H47M/s72-c/ns_1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-2246847687999059976</id><published>2008-07-31T13:21:00.002-04:00</published><updated>2008-07-31T13:27:14.547-04:00</updated><title type='text'>Performance Counter for SQL Server</title><content type='html'>&lt;p&gt;&lt;span style="color:#3333ff;"&gt;Few of my friends who wish to do a performance tuning in their servers, they asked me what are the counters that they should check that gave me an idea to prepare this document and publish across.  &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#3333ff;"&gt;&lt;strong&gt;Disk Related Counters:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Object Name: Physical Disk&lt;br /&gt;Counters:&lt;br /&gt;&lt;em&gt;Current Queue Length:&lt;/em&gt;&lt;/strong&gt;  Sustained high queue for a period of time means that the  IO subsystem has a problem.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Average Queue Length:&lt;/em&gt;&lt;/strong&gt; If the Average Queue Length for the disk is high more than 2. Then this indicates a potential IO subsystem problem. This would also make the disk sec/read and disk sec/write high.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Disk Sec/Read:&lt;/em&gt;&lt;/strong&gt; This counter should measure not more than 15ms in normal situation. Continuous values of more than 20ms indicate that the disks have a problem.&lt;br /&gt;Under these conditions, consider the following&lt;br /&gt;Move the files to additional drives.&lt;br /&gt;Check for proper indexing on the tables.&lt;br /&gt;Check for the CPU and memory counters to find any other potential bottlenecks.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Disk Sec/Writes:&lt;/em&gt;&lt;/strong&gt; This counter should measure not more than 15ms in normal situation. Continuous values of more than 20ms indicate that the disks have a problem.&lt;br /&gt;Under these conditions, consider the following&lt;br /&gt;Move the files to additional drives.&lt;br /&gt;Check for proper indexing on the tables.&lt;br /&gt;Check for the CPU and memory counters to find any other potential bottlenecks.&lt;br /&gt;Placing transactional log files in separate drives to remove additional pressure on the drives&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Memory/Cache:&lt;br /&gt;Object Name: Memory:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Counters:&lt;br /&gt;&lt;em&gt;Page Faults/Sec:&lt;/em&gt;&lt;/strong&gt; Page faults occur when the page that is not requested is not found in the memory. There are 2 types of page faults. Hard page faults and Soft page faults. Hard page faults require a disk access and where as Soft page faults are ones where the page is found elsewhere in the memory. High number of page faults/sec indicates that there is a problem with memory used by SQL Server. Use this counter in correlation with SQL Server:Memory Manager counters to check if there is a memory pressure.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Pages/Sec:&lt;/em&gt;&lt;/strong&gt; This counter is the actual value of the Hard faults and should be used in correlation with Page Faults/Sec and SQL Server memory Manager counters to find the memory pressure.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;CPU:&lt;br /&gt;Object Name: Processor&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Counters:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;%User Time:&lt;/em&gt;&lt;/strong&gt; SQL Server runs in User mode. Privilege mode is used by Operating system to access hardware and memory components. This counter should have a value more than 70%. If it has a value less than that check the %privileged time and %processor time counters to see if there is a problem with the processor.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;%Privileged Time:&lt;/em&gt;&lt;/strong&gt; Operating system moves thread to Privileged mode to access services. This counter should value less than 20%.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;%Processor Time:&lt;/em&gt;&lt;/strong&gt; This counter tells the percentage of the time that CPU is executing over a period. Ideally it should value less than 70%.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Interrupts/Sec:&lt;/em&gt;&lt;/strong&gt; Interrupts/sec is the average rate, in incidents per second, at which the processor received and serviced hardware interrupts.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;System:Object Name: System&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Counters:&lt;br /&gt;&lt;em&gt;Processor Queue Length:&lt;/em&gt;&lt;/strong&gt;  Is the number threads that are waiting to be processed by the processor. This counter is calculated by the actual value divided by the number of processors. Ideally value should be less than 2. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;SQL Server:&lt;br /&gt;Object Name: Access Methods&lt;br /&gt;Counters:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Forwarded Records/Sec:&lt;/em&gt;&lt;/strong&gt; Number of records fetched through forwarded record pointers. Tables with NO clustered index can.  If you start out with a short row, and update the row creating a wider row, the row may no longer fit on the data page.  A pointer will be put in its place and the row will be forwarded to another page.&lt;br /&gt;Can be avoided by:&lt;br /&gt;Using default values&lt;br /&gt;Using Char instead of Varchar. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Full Scans/Sec:&lt;/em&gt;&lt;/strong&gt; Either table or Index in fully scanned. This could be caused because of wrong or unhelpful indexes.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Page Splits/Sec:&lt;/em&gt;&lt;/strong&gt; Number of page splits occurring as the result of index pages overflowing.  Normally, this is associated with leaf pages of clustered indexes and non-clustered indexes. This can be avoided by having proper fill factor.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Object Name:  Memory Manager&lt;br /&gt;Counters:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Memory Grants Pending:&lt;/em&gt;&lt;/strong&gt; Memory is needed to process each user request. If enough memory is not available then the user request waits for memory which cause performance hitch in executing the query.&lt;br /&gt;This can be avoided by the following&lt;br /&gt;Adding more memory to the server&lt;br /&gt;Adding memory to SQL Server&lt;br /&gt;Creating proper Indexes &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Object Name: Buffer Manager&lt;br /&gt;Counters:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Buffer Cache Hit Ratio:&lt;/em&gt;&lt;/strong&gt; Percentage of time the pages requested are already in memory. It should be ideally more than 99% and if less than 95% indicates that SQL server has no enough memory and adding more memory would be beneficial.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Checkpoints/Sec:&lt;/em&gt;&lt;/strong&gt; Pages written to the disk during the Checkpoint process freeing up SQL cache. Memory pressure is indicated if this counter is more than 300 Secs.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Lazy Writes/Sec:&lt;/em&gt;&lt;/strong&gt; Pages written to the disk during the LazyWriter process freeing up SQL cache. Memory pressure is indicated if this counter is more than 300 Secs.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Page Life Expectancy:&lt;/em&gt;&lt;/strong&gt; This is one counter that I would love to monitor to check the memory pressure. This would give you the time in seconds the data pages reside in the SQL Server cache. If the value is low indicates the following problems.&lt;br /&gt;SQL Cache is cold(Discussed in Page Faults)&lt;br /&gt;Memory Problems&lt;br /&gt;Missing indexes.&lt;br /&gt;If Checkpoints/Sec, Lazywriter/Sec and Page life expectancy together is less than 300 seconds then it indicates the cause of memory pressure and your server needs more memory.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Object Name: Databases&lt;br /&gt;Counters:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Transactions/Sec:&lt;/em&gt;&lt;/strong&gt; Indicates the number of transaction that occur per second in the server.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Object Name: General StatisticsCounters:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;User Connections:&lt;/em&gt;&lt;/strong&gt; Number of connections made to the SLQ Server.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Object Name: Latches&lt;br /&gt;Counters:&lt;br /&gt;&lt;em&gt;Average Latch wait Time:&lt;/em&gt;&lt;/strong&gt; Latches are short term light weight synchronization object.  Latches are not held for the duration of a transaction. Typical latching operations during row transfers to memory, controlling modifications to row offset table, etc.&lt;br /&gt;            A high value here indicates potential problems with IO subsystem or Memory.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Object Name: Locks&lt;br /&gt;Counters&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Average Wait Time(ms), Lock Wait time(ms) and Lock waits/Sec:&lt;/strong&gt; All these counters are related to the locks held by the SQL Server. Transaction should be as short as possible and should hold locks only for a short time without blocking other user queries, A high value here would indicate the following.&lt;br /&gt;Memory Pressure&lt;br /&gt;IO Subsystem problem&lt;br /&gt;Improper indexes&lt;br /&gt;Improper SQL structures&lt;br /&gt;Improper placement of files in the disk subsystem&lt;br /&gt;Incorrect usage of SQL Isolation levels &lt;/p&gt;&lt;p&gt;These are the major counters that I would wish to check. Apart from this you can also check the following counters.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;Object Name                                             Counter Name&lt;/strong&gt;&lt;br /&gt;SQL Statistics                                           Compilations/sec&lt;br /&gt;SQL Statistics                                           Recompilations/sec&lt;br /&gt;SQL Statistics                                           Batch Requests/sec&lt;br /&gt;SQL Server: Buffer Manager                 Readahead pages/sec&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-2246847687999059976?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/2246847687999059976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=2246847687999059976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2246847687999059976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/2246847687999059976'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/07/performance-counter-for-sql-server.html' title='Performance Counter for SQL Server'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-383879030763117050</id><published>2008-07-28T09:57:00.022-04:00</published><updated>2008-11-06T22:44:45.394-05:00</updated><title type='text'>SQL Server Security Bulletin</title><content type='html'>&lt;span style="color:#3333ff;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;strong&gt;Introduction:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This document analyzes the information given in the Microsoft bulletin regarding the Security patch that needs to be applied in all SQL Servers version 7 and above.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Scope of the Document:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Information regarding the Bulletin&lt;br /&gt;2. Are we affected?&lt;br /&gt;3. Deployment Plans and Guidance&lt;br /&gt;4. Other points to ponder&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Bulletin Information:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Bulletin URL: &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.microsoft.com/technet/security/bulletin/MS08-040.mspx"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;http://www.microsoft.com/technet/security/bulletin/MS08-040.mspx&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/941203#appliesto"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;http://support.microsoft.com/kb/941203#appliesto&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="color:#3333ff;"&gt;&lt;br /&gt;&lt;br /&gt;Software Affected: SQL Server 7, 2000 and 2005 (32 bit and 64 bit) and (GDR and QFE releases)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_ZOMrIctR-AE/SI3QbIGgOsI/AAAAAAAABIE/Y5_wM7Gqhpo/s1600-h/1.JPG"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5228063906896820930" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_ZOMrIctR-AE/SI3QbIGgOsI/AAAAAAAABIE/Y5_wM7Gqhpo/s200/1.JPG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;&lt;span style="font-family:georgia;"&gt;The bulletin describes that a security patch has been released for known vulnerabilities in SQL Server and its components. The known vulnerabilities are listed below.&lt;br /&gt;&lt;br /&gt;Memory Page Reuse Vulnerability - CVE-2008-0085&lt;br /&gt;Convert Buffer Overrun - CVE-2008-0086&lt;br /&gt;SQL Server Memory Corruption Vulnerability - CVE-2008-0107&lt;br /&gt;SQL Server Buffer Overrun Vulnerability - CVE-2008-0106&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;strong&gt;Memory Page Reuse Vulnerability:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;With this vulnerability, a database user with access can read other user’s data with custom applications as SQL Server does not initialize the memory pages before reallocating memory to users.&lt;br /&gt;&lt;br /&gt;Microsoft has not received any information from customers or other users stating that their system is exploited using this vulnerability and information regarding this vulnerability was brought up through responsible disclosure.&lt;br /&gt;&lt;br /&gt;Installing this security path creates a new system stored procedure sp_clean_db_free_space that can be used to clear the residual pages in the memory. This procedure cleans up all files in the database.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Mitigation Factor:&lt;/strong&gt; Only users with database access can exploit this vulnerability.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Any other Workarounds:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Microsoft Suggests to have the configuration option “Common Criteria Compliance” set to 1. But enabling this option would result in performance degradation of the system and application. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color:#3333ff;"&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;strong&gt;Convert Buffer Overrun Vulnerability:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This vulnerability exists in SQL convert function that allows authenticated user to gain elevated control over the system.&lt;br /&gt;&lt;br /&gt;Microsoft has not received any information from customers or other users stating that their system is exploited using this vulnerability and information regarding this vulnerability was brought up through responsible disclosure.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Mitigation Factor:&lt;/strong&gt; Only users with database access can exploit this vulnerability.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Any other Workarounds:&lt;/strong&gt; None&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Memory Corruption Vulnerability:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This vulnerability exists in SQL server that allows authenticated user to gain elevated control over the system.&lt;br /&gt;&lt;br /&gt;Microsoft has not received any information from customers or other users stating that their system is exploited using this vulnerability and information regarding this vulnerability was brought up through responsible disclosure.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Mitigation Factor:&lt;/strong&gt; Only users with database access can exploit this vulnerability.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Any other Workarounds:&lt;/strong&gt; None&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Server Buffer Overrun Vulnerability:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This vulnerability exists in SQL Server function that allows authenticated user to gain elevated control over the system.&lt;br /&gt;&lt;br /&gt;Microsoft has not received any information from customers or other users stating that their system is exploited using this vulnerability and information regarding this vulnerability was brought up through responsible disclosure.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Mitigation Factor:&lt;/strong&gt; Users with database access can exploit this vulnerability. With SQL Server 2005, services by default run on non-admin accounts. Also SQL Server 2005 prompts for a domain account for services.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Any other Workarounds:&lt;/strong&gt; None&lt;br /&gt;&lt;br /&gt;Are we affected?&lt;br /&gt;&lt;br /&gt;We can use Microsoft Baseline Security Analyzer (MBSA 2.1) to determine the vulnerabilities in the System. MBSA 2.1 detects these vulnerabilities and reports of any other missing security updates too.&lt;br /&gt;&lt;br /&gt;Download URL: &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;a href="http://technet.microsoft.com/en-us/security/cc184923.aspx"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;http://technet.microsoft.com/en-us/security/cc184923.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;br /&gt;&lt;br /&gt;Deployment Plan and Known Issues:&lt;br /&gt;&lt;br /&gt;Deployment Instructions are available in &lt;/span&gt;&lt;a href="http://www.microsoft.com/technet/security/bulletin/MS08-040.mspx"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;http://www.microsoft.com/technet/security/bulletin/MS08-040.mspx&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="color:#3333ff;"&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Download links and impact instructions for SQL Server&lt;/strong&gt;&lt;/span&gt; &lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_ZOMrIctR-AE/SI3WQ7-KCuI/AAAAAAAABIc/tHiXdZur8_A/s1600-h/2.JPG"&gt;&lt;span style="font-family:georgia;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5228070328911661794" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_ZOMrIctR-AE/SI3WQ7-KCuI/AAAAAAAABIc/tHiXdZur8_A/s200/2.JPG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_ZOMrIctR-AE/SI3QowgaphI/AAAAAAAABIM/5ue9XSYeYFQ/s1600-h/2.JPG"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;strong&gt;Verification after Installation:&lt;/strong&gt; Executing the query “Select @@version” should result with the version number given below. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_ZOMrIctR-AE/SI3WdPYmJEI/AAAAAAAABIk/SFa_E-O3Lkc/s1600-h/3.JPG"&gt;&lt;span style="font-family:georgia;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5228070540281259074" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_ZOMrIctR-AE/SI3WdPYmJEI/AAAAAAAABIk/SFa_E-O3Lkc/s200/3.JPG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;&lt;a href="http://1.bp.blogspot.com/_ZOMrIctR-AE/SI3Q5WLQLSI/AAAAAAAABIU/-RbZFiWMW9E/s1600-h/3.JPG"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;div&gt;Also the information can be found in the log file on the directory listed below. SQL Server 2000 - %WINDIR%\SQLHotfix SQL Server 2005 - %PROGRAMFILES%\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color:#3333ff;"&gt;&lt;div&gt;&lt;span style="font-family:georgia;"&gt;&lt;strong&gt;Known Issues:&lt;/strong&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;There are few known issues with this update as listed below. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;1. Dependent services remain in stopped state even though SQL Services are started. We have to check and verify that all dependent services are started.&lt;br /&gt;2. SQL Server services or components that are in disabled state will be updated. This security patch update requires that all services to be enabled and running so that the installer detects them and applies the necessary patches.&lt;br /&gt;3. Upon unsuccessful completion, we need to reboot the system so that the changes are rolled back. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/953743/"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;953743&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt; (http://support.microsoft.com/kb/953743/) Supported method for applying updates to SQL Server 7.0&lt;br /&gt;&lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/953742/"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;953742&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt; (http://support.microsoft.com/kb/953742/) SQL Server 2000 and MSDE 2000 installers stop dependent services&lt;br /&gt;&lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/953741/"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;953741&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt; (http://support.microsoft.com/kb/953741/) SQL Server 2005 installers stop dependent services&lt;br /&gt;&lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/953740/"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;953740&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt; (http://support.microsoft.com/kb/953740/) How to identify and enable disabled SQL Server instances in SQL Server 2000&lt;br /&gt;&lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/953739/"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;953739&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt; (http://support.microsoft.com/kb/953739/) SQL Server 2005 installers do not update an instance of the SQL Server service that is in a&lt;br /&gt;disabled state.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Other Points to Ponder:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This patch is included in SP3 of SQL Server 2005 which is scheduled to release in Third Quarter of 2008. By the time earning freeze is over, we should be having SP3 on which we can schedule to install so that this patch too is applied.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://blogs.technet.com/dataplatforminsider/archive/2008/04/15/sql-server-2005-sp3-coming-soon.aspx"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;http://blogs.technet.com/dataplatforminsider/archive/2008/04/15/sql-server-2005-sp3-coming-soon.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://blogs.technet.com/beatrice/archive/2008/04/16/sql-2005-sp3-announced.aspx"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;http://blogs.technet.com/beatrice/archive/2008/04/16/sql-2005-sp3-announced.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://blogs.technet.com/dataplatforminsider/archive/2008/01/25/microsoft-sql-server-2008-roadmap-clarification.aspx"&gt;&lt;span style="font-family:georgia;color:#3333ff;"&gt;http://blogs.technet.com/dataplatforminsider/archive/2008/01/25/microsoft-sql-server-2008-roadmap-clarification.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-383879030763117050?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/383879030763117050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=383879030763117050' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/383879030763117050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/383879030763117050'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/07/introduction-this-document-analyzes.html' title='SQL Server Security Bulletin'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ZOMrIctR-AE/SI3QbIGgOsI/AAAAAAAABIE/Y5_wM7Gqhpo/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5690954215915323938</id><published>2008-07-23T11:19:00.005-04:00</published><updated>2008-07-23T11:45:24.145-04:00</updated><title type='text'>Configuring Peer-to-Peer Replication</title><content type='html'>I wanted to give a step by step illustatration here too for Peer-to-Peer replicatio. But unfortunately I had almost 26 screenshots in the article and all the images were not able to fit to the size limit of 1024MB. So I am giving you the link to my website where the original article resides. Thanks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=articles/P2P_replication_GUI.html"&gt;http://www.sql-articles.com/index.php?page=articles/P2P_replication_GUI.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5690954215915323938?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5690954215915323938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5690954215915323938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5690954215915323938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5690954215915323938'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/07/configuring-peer-to-peer-replication.html' title='Configuring Peer-to-Peer Replication'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-1342789384730857538</id><published>2008-07-19T21:59:00.001-04:00</published><updated>2008-07-19T22:04:52.820-04:00</updated><title type='text'>Moving System Databases - SQL Server 2005</title><content type='html'>&lt;span style="color:#330099;"&gt;There are lots of articles, Links and sites that describe how to move system databases from the SQL default location to the location described by the DBA but still lot of users find difficult while moving them and land up in trouble. So I thought of wiriting an article for moving the databases so that the users can use the same and enjoy the task.&lt;br /&gt;&lt;br /&gt;Tasks for moving system databases:&lt;br /&gt;&lt;br /&gt;1.Moving tempdb databases.&lt;br /&gt;&lt;br /&gt;a.) Execute the script below.&lt;br /&gt;&lt;br /&gt;USE master;&lt;br /&gt;GO&lt;br /&gt;alter database tempdb MODIFY FILE (NAME = tempdev,FILENAME='NEW PATH');&lt;br /&gt;GO&lt;br /&gt;alter database tempdb MODIFY FILE (NAME = templog,FILENAME='NEW PATH');&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;b.) Restart services.&lt;br /&gt;c.) Confirm path of database files.&lt;br /&gt;&lt;br /&gt;2. Moving model and msdb databases.&lt;br /&gt;&lt;br /&gt;a.) Execute the script below.&lt;br /&gt;&lt;br /&gt;USE master;&lt;br /&gt;GO&lt;br /&gt;alter database msdb MODIFY FILE (NAME = MSDBData,FILENAME='NEW PATH');&lt;br /&gt;go&lt;br /&gt;alter database msdb MODIFY FILE (NAME = MSDBLog,FILENAME='NEW PATH');&lt;br /&gt;go&lt;br /&gt;&lt;br /&gt;USE master;&lt;br /&gt;GO&lt;br /&gt;alter database model MODIFY FILE (NAME = modeldev,FILENAME='NEW PATH');&lt;br /&gt;go&lt;br /&gt;alter database model MODIFY FILE (NAME = modellog,FILENAME='NEW PATH');&lt;br /&gt;go&lt;br /&gt;&lt;br /&gt;b.) Stop services&lt;br /&gt;c.) Copy the files to the new location&lt;br /&gt;d.) Restart services.&lt;br /&gt;e.) Confirm path of database files.&lt;br /&gt;&lt;br /&gt;3.) Moving master database:&lt;br /&gt;&lt;br /&gt;a.) Edit the startup parameters to reflect the new path for –d, –l and -e parameters.&lt;br /&gt;b.) Stop the services.&lt;br /&gt;c.) Move the master and resource database files to the new location&lt;br /&gt;d.) Change the sql port to different one than usual to avoid excess connections and create an alias with that port&lt;br /&gt;e.) Start the services using NET START MSSQLSERVER /f /T3608 (*MSSQLSERVER is for default instance, if you have installed named instance then you need to use NET START MSSQL$Instancename /f /T3608)&lt;br /&gt;f.) Execute the script given below from sqlcmd&lt;br /&gt;&lt;br /&gt;USE master;&lt;br /&gt;GO&lt;br /&gt;alter database mssqlsystemresource MODIFY FILE (NAME = data,FILENAME='NEW PATH\mssqlsystemresource.mdf');&lt;br /&gt;go&lt;br /&gt;alter database mssqlsystemresource MODIFY FILE (NAME = log,FILENAME='NEW PATH\mssqlsystemresource.ldf');&lt;br /&gt;go&lt;br /&gt;alter database mssqlsystemresource set READ_ONLY;&lt;br /&gt;go&lt;br /&gt;&lt;br /&gt;g.) Stop the services&lt;br /&gt;h.) Change the port back to 1433&lt;br /&gt;i.) Remove the alias&lt;br /&gt;j.) Start sql services.&lt;br /&gt;k.) Confirm if the data files and log files reside on desired path. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-1342789384730857538?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/1342789384730857538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=1342789384730857538' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1342789384730857538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1342789384730857538'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/07/moving-system-databases-sql-server-2005.html' title='Moving System Databases - SQL Server 2005'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-8013579229014707026</id><published>2008-07-16T16:18:00.000-04:00</published><updated>2008-07-16T16:19:54.824-04:00</updated><title type='text'>How Addicted to Blogging Are You?</title><content type='html'>&lt;a style="DISPLAY: block; PADDING-LEFT: 17px; FONT-SIZE: 30px; BACKGROUND: url(http://www.oneplusyou.com/q/img/bb_badges/blog_addiction.jpg) no-repeat; WIDTH: 286px; COLOR: #d64b32; PADDING-TOP: 50px; FONT-FAMILY: Times New Roman, sans-serif; HEIGHT: 128px; TEXT-DECORATION: none" href="http://www.oneplusyou.com/bb/blog_addiction"&gt;85%&lt;span style="DISPLAY: none"&gt;How Addicted to Blogging Are You?&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-8013579229014707026?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/8013579229014707026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=8013579229014707026' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8013579229014707026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8013579229014707026'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/07/how-addicted-to-blogging-are-you.html' title='How Addicted to Blogging Are You?'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-532409490031744466</id><published>2008-07-14T12:20:00.001-04:00</published><updated>2008-07-14T12:22:36.508-04:00</updated><title type='text'>Short Cut Keys for SQL Server 2000 and 2005</title><content type='html'>&lt;span style="color:#330099;"&gt;I have always googled out for finding any shortcut key to be used in SQL Server that gave me an idea to post this. I have gathered all the SQL Server 2000 and 2005 shortcuts with the help of books online and internet and posted it in our website which can be accessed from the link below.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#330099;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=articles/shortcut_keys.htm"&gt;&lt;span style="color:#330099;"&gt;http://www.sql-articles.com/index.php?page=articles/shortcut_keys.htm&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-532409490031744466?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/532409490031744466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=532409490031744466' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/532409490031744466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/532409490031744466'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/07/short-cut-keys-for-sql-server-2000-and.html' title='Short Cut Keys for SQL Server 2000 and 2005'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4004673902241081402</id><published>2008-07-10T14:06:00.002-04:00</published><updated>2008-07-10T14:09:22.841-04:00</updated><title type='text'>SQL Server 2008 in August</title><content type='html'>&lt;span style="color:#000066;"&gt;Microsoft has announced that SQL Server 2008 will be in August price list.  This means that SQL Server 2008 RTM will be launched as scheduled in Q3 2008. The blog entry from dataplatforminsider confirms this from Microsoft.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000066;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://blogs.technet.com/dataplatforminsider/archive/2008/07/09/sql-server-2008-available-on-august-price-list.aspx"&gt;&lt;span style="color:#000066;"&gt;http://blogs.technet.com/dataplatforminsider/archive/2008/07/09/sql-server-2008-available-on-august-price-list.aspx&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4004673902241081402?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4004673902241081402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4004673902241081402' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4004673902241081402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4004673902241081402'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/07/sql-server-2008-in-august.html' title='SQL Server 2008 in August'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5548586521390817632</id><published>2008-07-09T17:51:00.003-04:00</published><updated>2008-07-09T18:28:27.939-04:00</updated><title type='text'>Thank You - My Friends</title><content type='html'>&lt;span style="color:#000066;"&gt;These are the mails, messages that i got as wishes for my MVP. Thank you friend. With all your prayers and wishes, I would like to grow.&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:Trebuchet MS;color:#000066;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#000066;"&gt;&lt;strong&gt;My Ex-Managers and Ex-Leads: &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Thiyagarajan Jayaraman: (My Project Director @ Hexaware) &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Congratulations Sugesh. Wish I never lost you. Happy to know that you have not stopped because of the setback. Hope you would not let such things happen again.&lt;br /&gt;&lt;br /&gt;Wish you all the best. Thank you for remembering to keep me informed&lt;br /&gt;regards&lt;br /&gt;Thiyagu&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;Eyalarasan: (My Team Lead @ CITIGROUP)&lt;br /&gt;&lt;br /&gt;Hi Sugesh,&lt;br /&gt;&lt;br /&gt;Congratz!&lt;br /&gt;&lt;br /&gt;Just went through the site (www.sql-articles.com).. great!&lt;br /&gt;&lt;br /&gt;You guys are doing great job... My hearty wishes!!&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Eyal.s&lt;br /&gt;***************************************************************************&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000066;"&gt;&lt;strong&gt;Colleagues(Ex and Current):&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Sriram Srinivasan &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Great News!!! Congratulations now you have to further work hard to retain the title.&lt;br /&gt;&lt;br /&gt;All the best&lt;br /&gt;-------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#000066;"&gt;&lt;em&gt;Ajay&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Hi Sugesh,&lt;br /&gt;&lt;br /&gt;Great buddy... Hearty Congratulations on your SUCCESS... Ofcourse this is just the beginning.... Nice to know that you are one among the valuable professional's of MS. and I am proud to tell others that I know a MVP... I was checking out your site and it's really excellent and informative...&lt;br /&gt;-------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#000066;"&gt;&lt;em&gt;Saravanan &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Hi Sugesh,&lt;br /&gt;&lt;br /&gt;My Hearty Congrats to you.&lt;br /&gt;&lt;br /&gt;I know that you are working as a SQL SERVER DBA, and did not have much information other than that.&lt;br /&gt;&lt;br /&gt;I am very happy to know that you have made into a number of handful people around the world.&lt;br /&gt;&lt;br /&gt;All the Best for your future endeavours&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Saravanan.S&lt;br /&gt;-------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#000066;"&gt;&lt;em&gt;Anandhi&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;congrates on this great achievement Sugesh.&lt;br /&gt;Hats off to you and All the very best for your future as well...&lt;br /&gt;-------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#000066;"&gt;&lt;em&gt;Roopa Jean: &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Hi Sugesh,&lt;br /&gt;congrats a billion Billion....&lt;br /&gt;hey wow so happy for the great acheivement....yes you deserve it....&lt;br /&gt;wish you many such acheivements in the fore coming days......&lt;br /&gt;cheers&lt;br /&gt;Roopa Jean&lt;br /&gt;-------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#000066;"&gt;&lt;em&gt;Shomi Basu (Current DBA in my project @ Hexaware)&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Dear Sugesh,&lt;br /&gt;&lt;br /&gt;Hope you remember me. Congratulations for your success and hope to see you even higher. Will bug you again and again for all my doubts.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Shomik&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Naresh C. (Current DBA in my project @ Hexaware)&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Congratulations Sugesh.&lt;br /&gt;***************************************************************************&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Friends: &lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Surabhya Rao:&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Hey Sugesh!&lt;br /&gt;&lt;br /&gt;Congrats man!! Chance illa....engayo poita...am sure lots of hard work must have gone into it! Very happy to know that all your efforts have got appreciated and acknowledged!!&lt;br /&gt;Very happy to hear this news...congrats once again!! Keep it up :)&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Surabhya.&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Sriram V(SSN): &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Sugesh,&lt;br /&gt;Congratulations and I have already bookmarked the sql-articles page. Good luck with ur efforts!!&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Chakravarthy Kailash:&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Machi i am so happy that as if i achieved it............ really so happy machi.......... congrats ........ and really you deserve it for all the hard work you have done so far................&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Viswanathan Swaminathan &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Hey Sugesh,&lt;br /&gt;Great to hear that you are one of the MVP. Congrats da!!!!&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Balakumar:&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Hey Sugesh,&lt;br /&gt;&lt;br /&gt;Way to go man...Congratulations and my Best wishes.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Bala&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Narendran Mohan: &lt;/em&gt;&lt;br /&gt;It is great to see you among the top contributors around the globe. Very proud of you...All the best and let this be one more stepping stone for you..&lt;br /&gt;&lt;br /&gt;With best regards,&lt;br /&gt;Naren&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Dalavai&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;This is simply great … Keep going buddy…congrats and all the best.&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Swetha &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Wow. Many congratulations Sugesh! That is a definitely a great achievement.&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Sasi:&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;I'm really proud to see this.. Keep going!! All the best Sugesh.&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Odaiyappan &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Congrats Sugesh, Keep going.&lt;br /&gt;&lt;br /&gt;Gone through those web pages of microsoft and ur sql site it is an excellent work, i am proud that i shared the class room with you at one point of my schooling.&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Samuel Ignatius:&lt;br /&gt;&lt;/em&gt;Hi Sugesh,&lt;br /&gt;&lt;br /&gt;many congrats, really good to hear that, specially when i know and have seen you that how much you desired to get this certification. keep in touch.&lt;br /&gt;&lt;br /&gt;regards&lt;br /&gt;Samuel&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Vinod Chidambaram &lt;/em&gt;&lt;br /&gt;Congrats da Sugu....Very very very happy for you da....God will be always with you...Celebrate this occasion and enjoy life.&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Srividhya Seshan&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Hi,&lt;br /&gt;Hearty Congratulations!!! I am sure you will hold it forever.Be an MVP everywhere. Wish you the very best always.&lt;br /&gt;Congrats Once again.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Srividhya.&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Rohini Bharath &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Hi Sugesh,&lt;br /&gt;&lt;br /&gt;Hearty Congratulationns!!!!!!!!My best wishes for your future achievements toooooooooo&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Dinesh&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Congrats da mama.&lt;br /&gt;All the very best. I explored the site a bit,looks clean n simple interface.&lt;br /&gt;Good job,convey my wishes to chakra and seth.&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;em&gt;Rekha &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Hey, Congratulations on your success! I feel happy to see a fellow student come so far in his professional life. I wish you success in whatever you do on your way to glory!&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#000066;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#000066;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5548586521390817632?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5548586521390817632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5548586521390817632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5548586521390817632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5548586521390817632'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/07/thank-you-my-friends.html' title='Thank You - My Friends'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-8552549702823941753</id><published>2008-07-01T14:45:00.002-04:00</published><updated>2008-07-01T14:48:57.899-04:00</updated><title type='text'>Awarded Microsoft MVP</title><content type='html'>&lt;span style="font-family:georgia;color:#000066;"&gt;I am coming with the happiest news of my professional career. For people who might know me for long this could be great news and for others it would be great to know this news.&lt;br /&gt;&lt;br /&gt;I am now proud to say that I am part of few Microsoft Most Valuable Professional’s (MVP's) around the globe. I have been awarded this for my contributions towards SQL server and will be holding this title for a year from now. (I am sure; I will be going for a renewal too, no giving back again).&lt;br /&gt;&lt;br /&gt;At this point, I would like to thank a few people who got me to this. The list might be small but these people mean a lot to me towards achieving this.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Krishna Gopalan&lt;/strong&gt; - My manager at Hexaware. When I joined Hexaware, i was in infant stage of working with SQL Server. He was the one who had trust in me giving variety of tasks involving lot of SQL Server and other Microsoft products helping me to achieve near expertise. I could still hear him saying "Sugesh, I know you are the right person to do this job". That was the level of confidence that he had on me. I can never forget the ISA implementation that I worked on with his guidance. The hard to understand infrastructure application. Without him, i wouldn't have made it right here.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Stephen Seth&lt;/strong&gt; - One of my best friends, He too works as a SQL Server DBA. i would literally pain him asking N number of questions and making comments out of everything so that we both were in right path of learning something that we were working on. Lot of my articles, scripts and comments has gone for his review before being published.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Vidhya Sagar and Deepak&lt;/strong&gt; - My collegaues @ CITIGROUP. These are other 2 guys who have been with me together through out this journey. When we started our website (www.sql-articles.com) they both backed me up in designing the website which a person would like to read things about SQL Server. The great news here is they too are MVPs now.&lt;br /&gt;&lt;br /&gt;And &lt;strong&gt;my parents and sister&lt;/strong&gt;, I have no words to thank them. They have always stood besides me on whatever i do. Without their constant support and encouragement i would not have really achieved anything out here.&lt;br /&gt;&lt;br /&gt;If i would have forgotten to name anyone here, please apologize me. Thanks for all others supporting me and would love to say&lt;br /&gt;a BIG thanks again.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://mvp.support.microsoft.com/profile=5888001B-22BC-4DFB-BEF1-F640063A9568"&gt;https://mvp.support.microsoft.com/profile=5888001B-22BC-4DFB-BEF1-F640063A9568&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-8552549702823941753?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/8552549702823941753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=8552549702823941753' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8552549702823941753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8552549702823941753'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/07/awarded-microsoft-mvp.html' title='Awarded Microsoft MVP'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-486461888523858586</id><published>2008-06-26T19:37:00.004-04:00</published><updated>2008-07-08T14:44:23.249-04:00</updated><title type='text'>Configuring Peer-to-Peer replication Using TSQL:</title><content type='html'>&lt;span style="font-family:verdana;color:#000066;"&gt;            This article brings you the easiest way to configure P2P replication using TSQL.  Also I assume that the database has been initialized in all nodes participating in the replication.&lt;br /&gt;&lt;br /&gt;1.      Configure Distributor:&lt;br /&gt;This script needs to be executed against all servers that participates in the replication.&lt;br /&gt;&lt;br /&gt;/* Check if distributor database already exists*/&lt;br /&gt;declare @svrname as sysname&lt;br /&gt;select @svrname = @@servername&lt;br /&gt;declare @cnt int&lt;br /&gt;Select @cnt=count(*) from sys.databases where name = 'distribution'&lt;br /&gt;If @cnt&gt;0&lt;br /&gt;begin&lt;br /&gt; Print 'distributor already exists'&lt;br /&gt;End&lt;br /&gt;Else&lt;br /&gt;Begin&lt;br /&gt;Exec sp_adddistributor @distributor=@svrname&lt;br /&gt;Exec sp_adddistributiondb @database='distribution',@security_mode=1&lt;br /&gt;End&lt;br /&gt;&lt;br /&gt;2.      Create Publication and Subscriber:&lt;br /&gt;This script needs to be executed against all the publisher databases involved in the P2P replication instances. There are few parameters that you might need to change in this script which will be noted so edit the parameters before executing.&lt;br /&gt;&lt;br /&gt;/*Add the publisher*/&lt;br /&gt;declare @svrname as sysname&lt;br /&gt;select @svrname = @@servername&lt;br /&gt;/* Add the publisher server now*/&lt;br /&gt;&lt;br /&gt;exec sp_adddistpublisher @publisher =@svrname,&lt;br /&gt;@distribution_db = N'distribution',&lt;br /&gt;@security_mode = 1,&lt;br /&gt;@publisher_type = N'MSSQLSERVER'&lt;br /&gt;&lt;br /&gt;/* Enable the database for publication*/&lt;br /&gt;declare @dbname varchar(30)&lt;br /&gt;declare @dbcheck sql_variant&lt;br /&gt;&lt;br /&gt;/* Check if the database is set as publication*/&lt;br /&gt;/*Set you database name*/&lt;br /&gt;select @dbname = '------' /***** Set Your Database Name Here**************/&lt;br /&gt;select @dbcheck = databasepropertyex(@dbname,'ispublished')&lt;br /&gt;select @dbcheck&lt;br /&gt;if @dbcheck = 0&lt;br /&gt;begin&lt;br /&gt;print 'Database not set as Publisher. Setting as Publisher'&lt;br /&gt;exec sp_replicationdboption @dbname=@dbname,&lt;br /&gt;@optname='publish',&lt;br /&gt;@value='true'&lt;br /&gt;end&lt;br /&gt;else&lt;br /&gt;begin&lt;br /&gt;print 'Database already set as Publisher'&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;/* Add the Publication now*/&lt;br /&gt;declare @pubname varchar(300)&lt;br /&gt;select @pubname = '---------' /********Add Publication Name Here***********/&lt;br /&gt;/*Execute this step against the database which you need to set as publication*/&lt;br /&gt;exec sp_addpublication @publication=@pubname,&lt;br /&gt;@restricted='false',&lt;br /&gt;@sync_method='native',&lt;br /&gt;@repl_freq='continuous',&lt;br /&gt;@allow_push='true',&lt;br /&gt;@allow_pull='true',&lt;br /&gt;@immediate_sync='true',&lt;br /&gt;@allow_sync_tran='false',&lt;br /&gt;@autogen_sync_procs='false',&lt;br /&gt;@retention=60,&lt;br /&gt;@independent_agent='true',&lt;br /&gt;@enabled_for_p2p='true',&lt;br /&gt;@status='active',&lt;br /&gt;@allow_initialize_from_backup='true'&lt;br /&gt;Go&lt;br /&gt;&lt;br /&gt;/* Add articles for this Publication*/&lt;br /&gt;/**********This step needs to be executed for each article in the publication***************/&lt;br /&gt;declare @artname varchar(300)&lt;br /&gt;declare @artins varchar(300)&lt;br /&gt;declare @artdel varchar(300)&lt;br /&gt;declare @artupd varchar(300)&lt;br /&gt;select @artname = '-------'/**********Add Article Name Here***************/&lt;br /&gt;select @artins = 'CALL [sp_MSins_'+@artname+']'&lt;br /&gt;select @artdel = 'CALL [sp_MSdel_'+@artname+']'&lt;br /&gt;select @artupd = 'CALL [sp_MSupd_'+@artname+']'&lt;br /&gt;&lt;br /&gt;/*Execute this step against the database which you need to set as publication*/&lt;br /&gt;declare @pubname varchar(300)&lt;br /&gt;select @pubname = '----------'/***********Add your publication name here*************/&lt;br /&gt;exec sp_addarticle @publication = @pubname,&lt;br /&gt;@article = @artname,&lt;br /&gt;@source_owner = N'dbo',&lt;br /&gt;@source_object = @artname,&lt;br /&gt;@type = N'logbased',&lt;br /&gt;@description = N'',&lt;br /&gt;@creation_script = N'',&lt;br /&gt;@pre_creation_cmd = N'none',&lt;br /&gt;@schema_option = 0x00000000000044F7,&lt;br /&gt;@identityrangemanagementoption = N'manual',&lt;br /&gt;@destination_table = @artname,&lt;br /&gt;@destination_owner = N'dbo',&lt;br /&gt;@status = 16,&lt;br /&gt;@vertical_partition = N'false',&lt;br /&gt;@ins_cmd = @artins,&lt;br /&gt;@del_cmd = @artdel,&lt;br /&gt;@upd_cmd = @artupd&lt;br /&gt;Go&lt;br /&gt;&lt;br /&gt;/*Add the Subscriber*/&lt;br /&gt;declare @pubname varchar(300)&lt;br /&gt;select @pubname = '----------'/***********Add your publication name here*************/&lt;br /&gt;declare @dbname varchar(30)&lt;br /&gt;select @dbname = '----------'/***********Add your Subscriber database name here*************/&lt;br /&gt;declare @subname varchar(30)&lt;br /&gt;select @subname = '----------'/***********Add your Subscriber Server name here*************/&lt;br /&gt;&lt;br /&gt;exec sp_addsubscription  @publication = @pubname,&lt;br /&gt;@subscriber = @subname,&lt;br /&gt;@destination_db = @dbname,&lt;br /&gt;@sync_type = 'replication support only'&lt;br /&gt;Go&lt;br /&gt;&lt;br /&gt;/*Add the Subscriber Agents*/&lt;br /&gt;declare @pubname varchar(300)&lt;br /&gt;select @pubname = '----------'/***********Add your publication name here*************/&lt;br /&gt;declare @dbname varchar(30)&lt;br /&gt;select @dbname = '----------'/***********Add your Subscriber database name here*************/&lt;br /&gt;declare @subname varchar(30)&lt;br /&gt;select @subname = '----------'/***********Add your Subscriber Server name here*************/&lt;br /&gt;&lt;br /&gt;exec sys.sp_addpushsubscription_agent&lt;br /&gt;@publication = @pubname,&lt;br /&gt;@subscriber = @subname,&lt;br /&gt;@subscriber_db = @dbname,&lt;br /&gt;@subscriber_security_mode = 1,&lt;br /&gt;@frequency_type = 64,&lt;br /&gt;@frequency_interval = 1,&lt;br /&gt;@frequency_relative_interval = 1,&lt;br /&gt;@frequency_recurrence_factor = 0,&lt;br /&gt;@frequency_subday = 4,&lt;br /&gt;@frequency_subday_interval = 5,&lt;br /&gt;@active_start_time_of_day = 0,&lt;br /&gt;@active_end_time_of_day = 235959,&lt;br /&gt;@active_start_date = 0,&lt;br /&gt;@active_end_date = 0,&lt;br /&gt;@dts_package_location = N'Distributor'&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-486461888523858586?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/486461888523858586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=486461888523858586' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/486461888523858586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/486461888523858586'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/06/configuring-peer-to-peer-replication.html' title='Configuring Peer-to-Peer replication Using TSQL:'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-8142929100576864885</id><published>2008-06-14T18:03:00.004-04:00</published><updated>2008-06-26T19:31:07.621-04:00</updated><title type='text'>Will Update Shortly</title><content type='html'>&lt;span style="font-family:verdana;color:#000066;"&gt;Hey Guys,&lt;br /&gt;&lt;br /&gt;I have come up with lot of articles on Replication, Performance, Architecture and High availability solutions of SQL Server 2005. I will be posting them shortly. Just to keep you updated that there will be lot of articles sooner in this blog.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-8142929100576864885?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/8142929100576864885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=8142929100576864885' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8142929100576864885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8142929100576864885'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/06/will-update-shortly.html' title='Will Update Shortly'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-9005356044568794125</id><published>2008-05-05T14:19:00.003-04:00</published><updated>2008-06-26T19:31:53.992-04:00</updated><title type='text'>SQL Server JOB deletion ERROR</title><content type='html'>&lt;span style="font-family:verdana;color:#000066;"&gt;I have found in discussion forums regarding the error given below when you try to delete a job that was part of maintenance.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color:#000066;"&gt;&lt;strong&gt;&lt;strong&gt;The DELETE statement conflicted with the REFERENCE constraint "FK_subplan_job_id". The conflict occurred in database "msdb", table "dbo.sysmaintplan_subplans", column 'job_id'.&lt;br /&gt;The statement has been terminated. (.Net SqlClient Data Provider)&lt;/strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This error is caused not in all systems in some and it depends. I have tried to replicate the error but it would be always unsuccessful. Anyways the solution to can be handled with the script given below.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SCRIPT&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;declare @jobname varchar(100)&lt;br /&gt;&lt;br /&gt;select @jobname='PASS YOUR NAME OF THE JOB'&lt;br /&gt;&lt;br /&gt;delete from msdb.dbo.sysmaintplan_log&lt;br /&gt;where plan_id in(&lt;br /&gt;select plan_id from msdb..sysmaintplan_subplans&lt;br /&gt;where job_id in(&lt;br /&gt;select job_id from sysjobs where name =@jobname))&lt;br /&gt;&lt;br /&gt;delete from sysmaintplan_subplans&lt;br /&gt;where job_id in(&lt;br /&gt;select job_id from sysjobs where name =@jobname)&lt;br /&gt;&lt;br /&gt;Then you can delete your job. Hope this post helps you. &lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-9005356044568794125?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/9005356044568794125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=9005356044568794125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/9005356044568794125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/9005356044568794125'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/05/sql-server-job-deletion-error.html' title='SQL Server JOB deletion ERROR'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-1580182436216642948</id><published>2008-04-09T10:09:00.001-04:00</published><updated>2008-06-26T19:32:39.017-04:00</updated><title type='text'>Testing Cluster Configuration:</title><content type='html'>&lt;span style="font-family:verdana;color:#000066;"&gt;Most people never like to test what they can done. Assuming that things have been done perfectly which results in a situtation of panic sometimes. So i thought that i could let you all know the steps to check after completing a cluster configuration.&lt;br /&gt;&lt;br /&gt;1. Check if the Nodes are available and able to ping each other.&lt;br /&gt;2. Check if you are able to reach the nodes from the client machines both with the names and IP address.&lt;br /&gt;3. Try validating a failover and check if it failsover successfully. This can be done as given in the topic Validation Failover.&lt;br /&gt;4. Check if all the disks are seen in the cluster group. This is the place most DBAs could go wrong. They might not have added the disks as dependencies in their configuration. To check and add disks as dependecies look on the topic Disk resources in cluster.&lt;br /&gt;5. Verify error log and event viewer log.&lt;br /&gt;6. Try connecting to the SQL Server management studio to check if it succedds.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Validating Failover:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Start Cluster Administrator.&lt;br /&gt;2. In the left pane, expand Groups, right-click a cluster group, select the Move Group option, and finally select a node to move the resource group.&lt;br /&gt;If the failover is functioning properly, the owner of the resources will change to the new node name.&lt;br /&gt;3. Repeat step 2 to move the resource to all other nodes of the server cluster.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Disk resources in cluster:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Start Cluster Administrator.&lt;br /&gt;2. Select the group that contains the disk resource you want to use with SQL Server Services.&lt;br /&gt;3. Make sure the disk resource is owned by the node you are currently logged on to..&lt;br /&gt;4. In the right pane, select the disk resource, right-click, select Change Group, and then select&lt;br /&gt;the group that contains your SQL Server.&lt;br /&gt;5. When prompted to confirm the move action, click Yes.&lt;br /&gt;6. Once again, you will be prompted to confirm the disk resource move to the other group, Click Yes.&lt;br /&gt;The disk will now be moved to the target group.&lt;br /&gt;7. Take the SQL Server resource offline.&lt;br /&gt;8. Right-click the SQL Server resource, and select Properties; alternatively,&lt;br /&gt;double-click the resource. Select the Dependencies tab. Click Modify.&lt;br /&gt;9. In the Modify Dependencies dialog box, select the new disk resource listed under Available&lt;br /&gt;Resources. And move that resource to Dependencies;&lt;br /&gt;10. The Dependencies tab will now show that the disk is added as a dependency of the&lt;br /&gt;resource. Click Apply. Click OK.&lt;br /&gt;11. Bring the offline resources online. SQL Server will be able to use the newly added disk.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-1580182436216642948?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/1580182436216642948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=1580182436216642948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1580182436216642948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1580182436216642948'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/04/testing-cluster-configuration.html' title='Testing Cluster Configuration:'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-956459580824516822</id><published>2008-04-08T10:26:00.001-04:00</published><updated>2008-06-26T19:33:27.029-04:00</updated><title type='text'>Renaming a Failover Clustering Instance of SQL Server</title><content type='html'>&lt;span style="font-family:verdana;color:#000066;"&gt;Can you rename the SQL virtual name in a Cluster? The answer for this in SQL Server 2005 is abviously Yes. New to SQL Server 2005 is the ability to rename a clustered instance of SQL Server without having to uninstall and reinstall it.&lt;br /&gt;&lt;br /&gt;Follow these steps:&lt;br /&gt;&lt;br /&gt;1. Start Cluster Administrator.&lt;br /&gt;2. Select the resource group that has the SQL Server resources.&lt;br /&gt;3. Take the SQL Server service offline.&lt;br /&gt;4. Right-click the SQL Server Network Name resource, and select Properties; alternatively, double-click the resource.&lt;br /&gt;5. Select the Parameters tab of the resource’s properties page&lt;br /&gt;6. Enter the new name of the failover clustering resource and click Apply.&lt;br /&gt;7. Select the General tab. Change the name of the resource to include the new name you configured&lt;br /&gt;in step 6. Click OK.&lt;br /&gt;8. Bring the SQL Server resources online.&lt;br /&gt;9. Ping the new name of the SQL Server failover clustering instance. If the name cannot be&lt;br /&gt;resolved, you will have to flush your DNS cache by issuing these three commands in succession:&lt;br /&gt;ipconfig /flushdns&lt;br /&gt;ipconfig /registerdns&lt;br /&gt;and nbtstat –RR.&lt;br /&gt;10. Start SQL Server Management Studio, and connect with the new instance name. If this succeeds,&lt;br /&gt;the change has been done successfully.&lt;br /&gt;11. For a final verification, you can also run a SELECT @@SERVERNAME query, which should reflect the name change.&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;You can only rename the SQL Server virtual Name and not the instance name and this operation involves some down time.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-956459580824516822?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/956459580824516822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=956459580824516822' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/956459580824516822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/956459580824516822'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/04/renaming-failover-clustering-instance.html' title='Renaming a Failover Clustering Instance of SQL Server'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4335401728656424151</id><published>2008-04-07T09:34:00.004-04:00</published><updated>2008-06-26T19:34:08.640-04:00</updated><title type='text'>Getting Information on SQL Server Clustering</title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;span style="color:#000066;"&gt;SQL Server 2005 aruably gives the best resources to see if the instance is clustered or not. And if so, what are the properties of the cluster. The DMVs that are related to the Cluster can be used for this. These DMVs are very useful for a new DBA joining a company who can easily find out the environment and the disk details without needing for a proper document on place.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To check if the instance is clustered:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;select SERVERPROPERTY('IsClustered')&lt;br /&gt;&lt;br /&gt;If this returns 1 then your environment is clustered.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To check the computer name of the node owning the cluster&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Select SERVERPROPERTY('ComputerNamePhysicalNetBIOS')&lt;br /&gt;&lt;br /&gt;The following DMVs would can be used for the cluster information.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;sys.dm_os_cluster_nodes&lt;/strong&gt;&lt;br /&gt;This will return a row for each node in the failover cluster instance configuration. If the current instance is a failover clustered instance, it returns a list of nodes on which this failover cluster instance (formerly ‘virtual server’) has been defined. If the current server instance is not a failover clustered instance, it returns an empty rowset.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sample Output:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;SQLCLUSN1&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;SQLCLUSN2&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;sys.dm_io_cluster_shared_drives &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;This will return the information such as drive name of each of the shared drives if the current server instance is a clustered server. If the current server instance is not a clustered instance it returns an empty rowset.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sample Output:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;D&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;L&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;T&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4335401728656424151?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4335401728656424151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4335401728656424151' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4335401728656424151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4335401728656424151'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/04/getting-information-on-sql-server.html' title='Getting Information on SQL Server Clustering'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4287156182342615541</id><published>2008-02-23T11:46:00.000-05:00</published><updated>2008-02-23T11:47:08.078-05:00</updated><title type='text'>SQL 2005 Edition Comparision</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;SQL Server 2005 comes with different editions with each having features that are either available in the other or not. This document lists the comparison of the features available between the different editions&lt;/span&gt; &lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=articles/edcomp.htm"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=articles/edcomp.htm&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4287156182342615541?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4287156182342615541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4287156182342615541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4287156182342615541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4287156182342615541'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/sql-2005-edition-comparision.html' title='SQL 2005 Edition Comparision'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4744490735403941947</id><published>2008-02-23T11:45:00.000-05:00</published><updated>2008-02-23T11:46:15.245-05:00</updated><title type='text'>Isolation Levels</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This article provides an easy-to-understand view of what ‘Isolation Levels’ really mean and when to use which level. ‘Isolation Level’ is a setting that decides how data which is a part of an ongoing transaction is made visible to other transactions.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=articles/isolevel.htm"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=articles/isolevel.htm&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4744490735403941947?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4744490735403941947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4744490735403941947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4744490735403941947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4744490735403941947'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/isolation-levels.html' title='Isolation Levels'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-7385162282210844597</id><published>2008-02-23T11:43:00.002-05:00</published><updated>2008-02-23T11:45:04.402-05:00</updated><title type='text'>Locks &amp; Locking Hints</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;Locking, Locks and Deadlocks are words that a developer/DBA does not want to hear in real life but still there are possibilities that we hear them because of some bad code written. This article takes you on to the type of locks available in SQL server and the ways of avoiding them using the hints available. Before getting into know the types of locks and the hints available, let us see what is meant by a lock and a deadlock.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=articles/lhints.htm"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=articles/lhints.htm&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-7385162282210844597?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/7385162282210844597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=7385162282210844597' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7385162282210844597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7385162282210844597'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/locks-locking-hints.html' title='Locks &amp; Locking Hints'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-3187506094774549146</id><published>2008-02-23T11:43:00.001-05:00</published><updated>2008-02-23T11:43:49.641-05:00</updated><title type='text'>Moving System Databases</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;There are lots of articles, Links and sites that describe how to move system databases from the SQL default location to the location described by the DBA but still lot of users find difficult while moving them and land up in trouble. So I thought that I would just do a graphical way of moving the databases so that the users can use the same and enjoy the task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=articles/msysdb.htm"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=articles/msysdb.htm&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-3187506094774549146?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/3187506094774549146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=3187506094774549146' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3187506094774549146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3187506094774549146'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/moving-system-databases.html' title='Moving System Databases'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4298993817691487415</id><published>2008-02-23T11:39:00.000-05:00</published><updated>2008-02-23T11:42:24.371-05:00</updated><title type='text'>Upgrading to SQL Server 2005</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;As we all know that Microsoft has released SQL Server 2005 sometime back and is planning to release the next version KATMAI before end of 2008. Also it has announced the end of life cycle support for SQL Server 2000. It’s high time that we start with upgrading our instances with SQL Server 2005 and upgrade before the life cycles support ends.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=articles/usql.htm"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=articles/usql.htm&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4298993817691487415?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4298993817691487415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4298993817691487415' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4298993817691487415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4298993817691487415'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/upgrading-to-sql-server-2005.html' title='Upgrading to SQL Server 2005'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-1118088231170982945</id><published>2008-02-23T11:37:00.000-05:00</published><updated>2008-02-23T11:38:44.253-05:00</updated><title type='text'>Query Plans &amp; Planguides</title><content type='html'>&lt;span style="font-family:verdana;color:#3366ff;"&gt;Most developer DBAs have tough time tuning TSQL part of the database and application. And most people leave in middle of it either frustrated or can’t go beyond that. Here is a simple look on how to use the query hints and plan guides to tune the TSQL part of your database and application.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;color:#3366ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=articles/query_plans.html"&gt;&lt;span style="font-family:verdana;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=articles/query_plans.html&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-1118088231170982945?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/1118088231170982945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=1118088231170982945' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1118088231170982945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1118088231170982945'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/query-plans-planguides.html' title='Query Plans &amp; Planguides'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-6356560722716102205</id><published>2008-02-23T11:36:00.000-05:00</published><updated>2008-02-23T11:37:11.906-05:00</updated><title type='text'>Memory Management in SQL Server</title><content type='html'>&lt;span style="font-family:verdana;color:#3366ff;"&gt;I have heard people asking me how SQL Server manages memory. The answer to this was very difficult with SQL Server earlier versions. And with SQL Server 2005 it has been simpler to explain and understand. SQL Server by default installation manages memory dynamically and has settings that it can well negotiate with the operating system for the need of memory. Let us look into the depth of the SQL Server memory management.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;color:#3366ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;color:#3366ff;"&gt;Read more of this on &lt;/span&gt;&lt;a href="http://www.sql-articles.com/index.php?page=articles/memory_management.html"&gt;&lt;span style="font-family:verdana;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=articles/memory_management.html&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-6356560722716102205?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/6356560722716102205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=6356560722716102205' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6356560722716102205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6356560722716102205'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/memory-management-in-sql-server.html' title='Memory Management in SQL Server'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-1074793820458086744</id><published>2008-02-23T11:34:00.000-05:00</published><updated>2008-02-23T11:35:18.754-05:00</updated><title type='text'>Check Identity</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This will list out identity columns in a Database. This is compatible to SQL 2005 only.&lt;/span&gt; &lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/check_idenity.php"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=Scripts/check_idenity.php&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-1074793820458086744?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/1074793820458086744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=1074793820458086744' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1074793820458086744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1074793820458086744'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/check-identity.html' title='Check Identity'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-486542985855393733</id><published>2008-02-23T11:33:00.001-05:00</published><updated>2008-02-23T11:34:20.883-05:00</updated><title type='text'>Connection Property</title><content type='html'>&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This script will list out the current connection properties on SQL 2005.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/conn_prop.php"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=Scripts/conn_prop.php&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-486542985855393733?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/486542985855393733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=486542985855393733' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/486542985855393733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/486542985855393733'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/connection-property.html' title='Connection Property'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-8146694069261948247</id><published>2008-02-23T11:31:00.000-05:00</published><updated>2008-02-23T11:32:42.749-05:00</updated><title type='text'>Database Details</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This will list out the Database properties of your database in sql server. This is compatible to SQL 2000 and 2005. Before you use the script make sure you have given the databasename for the parameter @dbname.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/db_details.php"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=Scripts/db_details.php&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-8146694069261948247?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/8146694069261948247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=8146694069261948247' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8146694069261948247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8146694069261948247'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/database-details.html' title='Database Details'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5470180322009830106</id><published>2008-02-23T11:30:00.000-05:00</published><updated>2008-02-23T11:31:24.301-05:00</updated><title type='text'>Index Details for Tables</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This script will list out the details of the indexes in a table.This is compatible to SQL 2000 and 2005.&lt;/span&gt; &lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/index_details.php"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=Scripts/index_details.php&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5470180322009830106?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5470180322009830106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5470180322009830106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5470180322009830106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5470180322009830106'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/index-details-for-tables.html' title='Index Details for Tables'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-7251460854354007555</id><published>2008-02-23T11:29:00.000-05:00</published><updated>2008-02-23T11:30:26.826-05:00</updated><title type='text'>Permission List</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This script gives a detailed information about permission for users in a database. This output lists Object name, Schema name, user name and permission. This is compatible only to SQL 2000.&lt;/span&gt; &lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/permission_list.php"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=Scripts/permission_list.php&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-7251460854354007555?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/7251460854354007555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=7251460854354007555' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7251460854354007555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7251460854354007555'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/permission-list.html' title='Permission List'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5380819975744474719</id><published>2008-02-23T11:28:00.001-05:00</published><updated>2008-02-23T11:28:51.372-05:00</updated><title type='text'>Permission List SQL 2005</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This script gives a detailed information about permission for users in a database. This output lists Object name, Schema name, user name and permission. This is compatible only to SQL 2005.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/permission_list_2005.php"&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;http://www.sql-articles.com/index.php?page=Scripts/permission_list_2005.php&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5380819975744474719?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5380819975744474719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5380819975744474719' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5380819975744474719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5380819975744474719'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/permission-list-sql-2005.html' title='Permission List SQL 2005'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5156503467210969652</id><published>2008-02-23T11:04:00.002-05:00</published><updated>2008-02-23T11:08:16.907-05:00</updated><title type='text'>Scripting User level Permission - SQL2000</title><content type='html'>&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This script gives a out script that can be used to script out the exising user permissions in a database.This is compatible only to SQL 2000.Don't forget to change the database name in paramert @dbname before using the script.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/scrip_user_00.php"&gt;http://www.sql-articles.com/index.php?page=Scripts/scrip_user_00.php&lt;/a&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5156503467210969652?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5156503467210969652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5156503467210969652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5156503467210969652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5156503467210969652'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/scripting-user-level-permission-sql2000.html' title='Scripting User level Permission - SQL2000'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-6940751583215500117</id><published>2008-02-23T10:55:00.002-05:00</published><updated>2008-02-23T11:08:52.338-05:00</updated><title type='text'>Scripting User Level Permission SQL2005</title><content type='html'>&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This script gives a out script that can be used to script out the exising user permissions in a database.This is compatible only to SQL 2005.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;strong&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/scrip_user_05.php"&gt;http://www.sql-articles.com/index.php?page=Scripts/scrip_user_05.php&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-6940751583215500117?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/6940751583215500117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=6940751583215500117' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6940751583215500117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6940751583215500117'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/this-script-gives-out-script-that-can.html' title='Scripting User Level Permission SQL2005'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-5887912773879648790</id><published>2008-02-23T10:43:00.006-05:00</published><updated>2008-02-23T11:09:28.577-05:00</updated><title type='text'>Server Property</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This will list out the server properties of your sql server including the account under which your services run. This is compatible to SQL 2000 and 2005.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/ServerProperties.php"&gt;http://www.sql-articles.com/index.php?page=Scripts/ServerProperties.php&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-5887912773879648790?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/5887912773879648790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=5887912773879648790' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5887912773879648790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/5887912773879648790'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/server-property.html' title='Server Property'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-6540022132171310377</id><published>2008-02-23T10:41:00.001-05:00</published><updated>2008-02-23T11:10:07.614-05:00</updated><title type='text'>Table Space Details</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This script will list out the details of the space used by each in a database.This is compatible to SQL 2000 and 2005.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/sp_details_tbl.php"&gt;http://www.sql-articles.com/index.php?page=Scripts/sp_details_tbl.php&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-6540022132171310377?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/6540022132171310377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=6540022132171310377' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6540022132171310377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/6540022132171310377'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/table-space-details.html' title='Table Space Details'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4709938745493694158</id><published>2008-02-23T10:40:00.001-05:00</published><updated>2008-02-23T11:10:46.644-05:00</updated><title type='text'>Table and Column Details</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This script gives a detailed information about tables and thier associated column properties for each database. This lists out Database name, owner name, table name, column name, data type, collation, etc. This is compatible to SQL 2000 and 2005.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/tbl_col_det.php"&gt;http://www.sql-articles.com/index.php?page=Scripts/tbl_col_det.php&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4709938745493694158?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4709938745493694158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4709938745493694158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4709938745493694158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4709938745493694158'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/table-and-column-details.html' title='Table and Column Details'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-7972433110802691224</id><published>2008-02-23T10:38:00.001-05:00</published><updated>2008-02-23T11:11:19.038-05:00</updated><title type='text'>Trigger Status</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#3366ff;"&gt;This will list out status of the trigger in a Database. This is compatible to SQL 2000 and 2005.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sql-articles.com/index.php?page=Scripts/trigger_status.php"&gt;http://www.sql-articles.com/index.php?page=Scripts/trigger_status.php&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-7972433110802691224?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/7972433110802691224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=7972433110802691224' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7972433110802691224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/7972433110802691224'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2008/02/trigger-status.html' title='Trigger Status'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-1656333712905426402</id><published>2007-12-03T00:00:00.000-05:00</published><updated>2007-12-03T00:02:13.443-05:00</updated><title type='text'>List orphan IDs</title><content type='html'>This script displays the list of orphan SQL Server accounts from all the databases&lt;br /&gt;&lt;br /&gt;Exec SP_MSForEachDB 'select ''?'' as DBName, name AS UserName, sid  AS UserSID&lt;br /&gt;                from ?..sysusers&lt;br /&gt;                where issqluser = 1 and&lt;br /&gt;                (sid is not null and sid &lt;&gt; 0x0)&lt;br /&gt;                and suser_sname(sid) is null&lt;br /&gt;                order by name'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-1656333712905426402?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/1656333712905426402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=1656333712905426402' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1656333712905426402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/1656333712905426402'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2007/12/list-orphan-ids.html' title='List orphan IDs'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-3762147466668114259</id><published>2007-12-02T23:59:00.002-05:00</published><updated>2008-06-26T19:29:18.420-04:00</updated><title type='text'>Estimated time for backup/restore</title><content type='html'>&lt;span style="font-family:verdana;color:#000066;"&gt;This script can be used to find the estimated time of backup and restore that is on progress in your SQL server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT r.session_id,r.command,CONVERT(NUMERIC(6,2),r.percent_complete)&lt;br /&gt;AS [Percent Complete],CONVERT(VARCHAR(20),DATEADD(ms,r.estimated_completion_time,GetDate()),20) AS [ETA Completion Time],&lt;br /&gt;CONVERT(NUMERIC(6,2),r.total_elapsed_time/1000.0/60.0) AS [Elapsed Min],&lt;br /&gt;CONVERT(NUMERIC(6,2),r.estimated_completion_time/1000.0/60.0) AS [ETA Min],&lt;br /&gt;CONVERT(NUMERIC(6,2),r.estimated_completion_time/1000.0/60.0/60.0) AS [ETA Hours],&lt;br /&gt;CONVERT(VARCHAR(100),(SELECT SUBSTRING(text,r.statement_start_offset/2,&lt;br /&gt;CASE WHEN r.statement_end_offset = -1 THEN 1000 ELSE (r.statement_end_offset-r.statement_start_offset)/2 END)&lt;br /&gt;FROM sys.dm_exec_sql_text(sql_handle)))&lt;br /&gt;FROM sys.dm_exec_requests r WHERE command IN ('RESTORE DATABASE','BACKUP DATABASE')&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-3762147466668114259?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/3762147466668114259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=3762147466668114259' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3762147466668114259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3762147466668114259'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2007/12/estimated-time-for-backuprestore.html' title='Estimated time for backup/restore'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-3554791765635572608</id><published>2007-12-02T23:57:00.001-05:00</published><updated>2008-06-26T19:28:35.022-04:00</updated><title type='text'>Check if /3GB is configured or not</title><content type='html'>&lt;span style="font-family:verdana;color:#000066;"&gt;This script is used to check whether the 3gb switch is configured or not in the boot.ini file.&lt;br /&gt;&lt;br /&gt;If(Select Virtual_Memory_In_Bytes/1024/(2048*1024) from Sys.dm_os_Sys_Info) &lt; 1&lt;br /&gt;&lt;br /&gt;Begin&lt;br /&gt;&lt;br /&gt;PRINT '/3GB Switch Not Configured in Boot.Ini (CHECK)'&lt;br /&gt;&lt;br /&gt;End&lt;br /&gt;&lt;br /&gt;Else&lt;br /&gt;&lt;br /&gt;Begin&lt;br /&gt;&lt;br /&gt;PRINT '/3GB Switch Configured in Boot.Ini'&lt;br /&gt;&lt;br /&gt;End&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-3554791765635572608?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/3554791765635572608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=3554791765635572608' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3554791765635572608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/3554791765635572608'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2007/12/check-if-3gb-is-configured-or-not.html' title='Check if /3GB is configured or not'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-4678093412993828512</id><published>2007-05-30T05:32:00.001-04:00</published><updated>2008-06-26T19:27:58.573-04:00</updated><title type='text'>Create Windows network shares</title><content type='html'>&lt;span style="font-family:verdana;color:#000066;"&gt;This procedure can be used to share any windows folders with default permissions&lt;br /&gt;This procedure accepts 3 parameters&lt;br /&gt;-- @path - The path of the share folder&lt;br /&gt;-- @sharename - The sharename to be given&lt;br /&gt;-- @type - This accepts 2 vaules either to create or revoke if create a new share is created if revoke the share ie removed&lt;br /&gt;&lt;br /&gt;Script:&lt;br /&gt;&lt;br /&gt;create procedure windowsshare (@path varchar(200), @sharename varchar(50),@type varchar(10))&lt;br /&gt;as&lt;br /&gt;begin&lt;br /&gt;declare @cmd varchar(100)&lt;br /&gt;if lower(@type) = lower('create')&lt;br /&gt;BEGIN&lt;br /&gt;set @cmd = 'net share '+@sharename+'='+@path&lt;br /&gt;print @cmd&lt;br /&gt;exec master..xp_cmdshell @cmd,no_output&lt;br /&gt;PRINT ' SHARE '+@sharename+' HAS BEEN CREATED SUCCESSFULLY'&lt;br /&gt;end&lt;br /&gt;ELSE&lt;br /&gt;BEGIN&lt;br /&gt;set @cmd = 'net share '+@sharename+' '+@path+' /delete'&lt;br /&gt;exec master..xp_cmdshell @cmd,no_output&lt;br /&gt;PRINT ' SHARE '+@sharename+' HAS BEEN REMOVED SUCCESSFULLY'&lt;br /&gt;end&lt;br /&gt;END&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-4678093412993828512?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/4678093412993828512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=4678093412993828512' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4678093412993828512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/4678093412993828512'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2007/05/create-windows-network-shares.html' title='Create Windows network shares'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-8498198981809330827</id><published>2007-05-29T07:16:00.002-04:00</published><updated>2008-06-26T19:27:14.944-04:00</updated><title type='text'>Give permission to Windows NTFS objects</title><content type='html'>&lt;span style="font-family:verdana;color:#000066;"&gt;This procedure can be used to provide the security options in windows NTFS folders with default permissions.&lt;br /&gt;This procedure accepts 5 parameters&lt;br /&gt;-- @path - The path of the share folder&lt;br /&gt;-- @traverse - To specify if the permission needs to be traversed to sub folders or not&lt;br /&gt;-- Y - to give permissions to subfolders also&lt;br /&gt;-- N - to not give permissions to sub folders&lt;br /&gt;-- @type - This accepts 4 vaules&lt;br /&gt;-- g - to grant access to the specified folder and/or sub-folders&lt;br /&gt;-- p - to modify access to the specified folder and/or sub-folders&lt;br /&gt;-- r - to revoke access to the specified folder and/or sub-folders&lt;br /&gt;-- d - to deny access to the specified folder and/or sub-folders&lt;br /&gt;-- @user - the user to whom access needs to be specified&lt;br /&gt;-- @perm - type of permission to be given and this accepts 4 parameters&lt;br /&gt;-- N - No Permissions&lt;br /&gt;-- R - Read&lt;br /&gt;-- C - Change&lt;br /&gt;-- F - Full Control&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Script:&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;color:#000066;"&gt;create procedure windowssec (@path varchar(200), @traverse char,@type char,@user varchar(50),@perm char)&lt;br /&gt;as&lt;br /&gt;begin&lt;br /&gt;declare @cmd varchar(100)&lt;br /&gt;if (upper(@traverse) &lt;&gt; 'Y')&lt;br /&gt;begin&lt;br /&gt;set @cmd = 'cacls '+@path&lt;br /&gt;end&lt;br /&gt;else&lt;br /&gt;begin&lt;br /&gt;set @cmd = 'cacls '+@path+' /t '&lt;br /&gt;end&lt;br /&gt;if (lower(@type) = 'r' or lower(@type) = 'd')&lt;br /&gt;begin&lt;br /&gt;set @cmd = @cmd+' /e /'+@type+' '+@user&lt;br /&gt;exec master..xp_cmdshell @cmd&lt;br /&gt;end&lt;br /&gt;else&lt;br /&gt;begin&lt;br /&gt;set @cmd = @cmd+' /e /'+@type+' '+@user+':'+@perm&lt;br /&gt;exec master..xp_cmdshell @cmd&lt;br /&gt;END&lt;br /&gt;end&lt;/span&gt;&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-8498198981809330827?l=sugeshkr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sugeshkr.blogspot.com/feeds/8498198981809330827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7367571059608809880&amp;postID=8498198981809330827' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8498198981809330827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7367571059608809880/posts/default/8498198981809330827'/><link rel='alternate' type='text/html' href='http://sugeshkr.blogspot.com/2007/05/give-permission-to-windows-ntfs-objects.html' title='Give permission to Windows NTFS objects'/><author><name>SugeshKumar Rajendran</name><uri>http://www.blogger.com/profile/10383062145145324874</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_ZOMrIctR-AE/SHuoglLzMBI/AAAAAAAABGs/NSxMZHggQ9s/S220/Picture_59.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7367571059608809880.post-2968414410577744914</id><published>2007-03-25T05:26:00.003-04:00</published><updated>2008-06-26T19:26:30.602-04:00</updated><title type='text'>DMVs in SQL Server 2005 - PART I</title><content type='html'>&lt;span style="FONT-WEIGHT: bold;font-family:verdana;color:#000066;"  &gt;Introduction:&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color:#000066;"&gt;&lt;span style="COLOR: rgb(153,153,255)"&gt;&lt;br /&gt;&lt;br /&gt;Microsoft has brought lot of new changes to the way how SQL Server works and handles things in SQL Server 2005. These changes have been incorporated not only to the developers but also to those who administer SQL Server databases and instances. One of the major changes that have been done is a new feature that comes with SQL Server 2005 that is called as Dynamic views. Let’s get to know what it exactly is and does.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold"&gt;What’s a Dynamic View:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color:#000066;"&gt;&lt;span style="COLOR: rgb(153,153,255)"&gt;&lt;br /&gt;&lt;br /&gt;Dynamic Management Views and functions are designed to give detailed information about internal working of SQL server 2005. The information gives a insight of what’s going inside SQL server 2005 like information on health of server and databases which can be used to monitor performance, diagnose problems and tune databases. They are designed to be used instead of system tables and functions in SQL server 2000.&lt;br /&gt;&lt;br /&gt;DMV’s are of both views and table-valued functions. There are two types of DMV’s.&lt;br /&gt;1. Server scope DMV&lt;br /&gt;2. Database scope DMV&lt;br /&gt;&lt;br /&gt;Server scope DMV’s apply to the entire server and are stored in master database whereas Database scope DMV’s are specific to that database.&lt;br /&gt;&lt;br /&gt;Dynamic Management views can be identified with their name starting with dm_. They reside in the master database.&lt;br /&gt;&lt;br /&gt;Dynamic Management Views and Functions are categorized into twelve as given below.&lt;br /&gt;&lt;br /&gt;1. CLR related DMV’s&lt;br /&gt;2. I/O related DMV’s&lt;br /&gt;3. Database Mirroring related DMV’s&lt;br /&gt;4. Query Notifications related DMV’s&lt;br /&gt;5. Database related DMV’s&lt;br /&gt;6. Replication related DMV’s&lt;br /&gt;7. Execution related DMV’s&lt;br /&gt;8. Service Broker related DMV’s&lt;br /&gt;9. Full-Text Search related DMV’s&lt;br /&gt;10. SQL Server Operating System related DMV’s&lt;br /&gt;11. Index related DMV’s&lt;br /&gt;12. Transaction related DMV’s&lt;br /&gt;&lt;br /&gt;DMV’s are owned by the schema sys and is to be referenced in two part naming convention as sys.DMV name.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold"&gt;Permission Required:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color:#000066;"&gt;&lt;span style="COLOR: rgb(153,153,255)"&gt;&lt;br /&gt;&lt;br /&gt;1. Select permission required on the Dynamic Management View/Functions&lt;br /&gt;2. View server state permission for server scope DMV’s&lt;br /&gt;3. View database state permission for database scope DMV’s&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color:#000066;"&gt;&lt;span style="COLOR: rgb(255,0,0)"&gt;Important:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(255,0,0)"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color:#000066;"&gt;&lt;span style="COLOR: rgb(255,0,0)"&gt;Microsoft reserves the right to change/drop any DMV’s and DMF’s in future releases.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;blockquote style="COLOR: rgb(204,102,204);font-family:georgia;" &gt;&lt;span style="FONT-WEIGHT: bold"&gt;&lt;span style="font-family:verdana;color:#000066;"&gt;What's to come next:&lt;br /&gt;------------------------------&lt;br /&gt;1. Some Useful DMV's for Real Time&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;color:#000066;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold"&gt;&lt;span style="font-family:verdana;color:#000066;"&gt;2. Transaction, IO and OS Related DMV's&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold"&gt;&lt;span style="font-family:verdana;color:#000066;"&gt;3. Some Useful scripts using DMv's and DMF's&lt;br /&gt;&lt;br /&gt;So keep checking and update yourself.&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="FONT-WEIGHT: bold"&gt;&lt;span style="COLOR: rgb(150,150,150)"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7367571059608809880-2968414410577744914?l=sugeshkr.blogspot.com' a
