<?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-2610351208140566665</id><updated>2012-02-10T22:56:03.894-05:00</updated><category term='WIT'/><title type='text'>SQL Server Sarah</title><subtitle type='html'>The daily adventures of a DBA</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-55621226105591772</id><published>2012-01-20T21:28:00.001-05:00</published><updated>2012-01-20T21:28:50.612-05:00</updated><title type='text'>Upcoming Events</title><content type='html'>&lt;span style="font-family: Verdana, sans-serif;"&gt;I am excited to announce that I will be speaking this Thursday at the Louisville SQL Server User Group meeting on the New Features of SQL Server 2012. &amp;nbsp; The User Group meets at 5:30pm at the Duthie Center for Engineering at the University of Louisville.&amp;nbsp;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family: Tahoma, Arial, Helvetica;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;I also have 2 upcoming SSWUG events&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;a href="http://www.vconferenceonline.com/event/home.aspx?id=522"&gt;The 4-Hour DBA: Automate, Audit and Relax&lt;/a&gt; on Feb 15. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;I will also be a part of a Security Expo on Feb 17th. &amp;nbsp;I don't have a link yet, but when I do I will let you know&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="background-color: white;"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp;&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/2610351208140566665-55621226105591772?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/55621226105591772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=55621226105591772' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/55621226105591772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/55621226105591772'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2012/01/upcoming-events.html' title='Upcoming Events'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-9026753949113072175</id><published>2012-01-12T13:15:00.001-05:00</published><updated>2012-01-12T13:16:54.361-05:00</updated><title type='text'>Basic Troubleshooting</title><content type='html'>&lt;span style="font-family: Verdana, sans-serif;"&gt;I have been a DBA for a long time and I guess that there are just some things that have become second nature for me and I forget that when people are new to SQL Server they often are overwhelmed, when there is an outage and waste time troubleshooting the wrong issue. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Recently, I was called about a SQL Server outage. &amp;nbsp;Here were the facts:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;3 servers were impacted&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;The servers could not be pinged&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;The servers would not allow users to login with domain credentials directly via the console.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;All the servers were on the same subnet in the same rack behind a firewall&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Other servers in the same rack were up and responding to requests&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;No changes have been made for months to any of these servers&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;An hour of time was was spent trying to troubleshoot this as a SQL Server issue, when it was clearly not. &amp;nbsp; Do you know what the issue was? &amp;nbsp;The answer is in the comments.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&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/2610351208140566665-9026753949113072175?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/9026753949113072175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=9026753949113072175' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/9026753949113072175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/9026753949113072175'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2012/01/basic-troubleshooting.html' title='Basic Troubleshooting'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-7865834892628860779</id><published>2011-10-19T12:52:00.000-05:00</published><updated>2011-10-19T15:14:49.136-05:00</updated><title type='text'>Build Your Own SQL Server Cloud</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;On Wednesday, October 26 at 11am PST, &lt;a href="http://www.sswug.org/"&gt;SSWUG &lt;/a&gt;will running my webcast &lt;a href="http://www.vconferenceonline.com/event/home.aspx?id=419"&gt;Build Your Own SQL Server Cloud&lt;/a&gt;&amp;nbsp;presentation. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;This presentation focuses on building a private cloud using Windows 2008 R2 and SQL Server 2008, but the concepts that I discuss can be applied to any virtualization platform. This presentation covers what is a private cloud (as well as what is a cloud) and how to achieve the benefits of cloud technologies using the builtin-features of SQL Server. &amp;nbsp; I will also discuss some of the challenges I have encountered building my own cloud. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;This week I have started designing the next generation SQL Server private cloud for SQL Server 2012 and this is a topic I will be blogging about more over the upcoming year. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;I really excited about this webcast and look forward to talking to attendees about their ideas about the private cloud.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&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/2610351208140566665-7865834892628860779?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/7865834892628860779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=7865834892628860779' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/7865834892628860779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/7865834892628860779'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2011/09/build-your-own-sql-server-cloud.html' title='Build Your Own SQL Server Cloud'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-2987010174436918655</id><published>2011-09-17T21:24:00.001-05:00</published><updated>2011-09-26T12:52:59.127-05:00</updated><title type='text'>SQL Saturday Atanta</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;I had a great time in Atlanta at SQL Saturday and think that the audience enjoyed it as well. &amp;nbsp; I have&amp;nbsp;received&amp;nbsp;some emails that people are having trouble downloading my presentation. &amp;nbsp;I tried to down the&amp;nbsp;PowerPoint&amp;nbsp;from the SQL Saturday site as well and had some difficulty. &amp;nbsp;Here is a &lt;a href="http://dl.dropbox.com/u/20036548/2011_4%20Hour%20DBA_2.pptx"&gt;link &lt;/a&gt;to my presentation for those that have trouble.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2610351208140566665-2987010174436918655?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/2987010174436918655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=2987010174436918655' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/2987010174436918655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/2987010174436918655'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2011/09/sql-saturday-atanta.html' title='SQL Saturday Atanta'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-4671630836881792355</id><published>2011-09-14T15:06:00.001-05:00</published><updated>2011-09-14T15:06:37.966-05:00</updated><title type='text'>Audit for New Login without using SQL Audit</title><content type='html'>&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Because SQL Audit is only anEnterprise Edition feature, I have been thinking about the best to audit forthe creation of a login without it.&lt;span&gt;&amp;nbsp; &lt;/span&gt;I donot need to know real time when a login is created, a daily report willsuffice.&lt;span&gt;&amp;nbsp; &lt;/span&gt;This is not as simple as youmay think.&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;I am not going to give youthe whole script, but you should be able to work it out for yourself from here.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;First lets create a login&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;USE&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; [master]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;CREATE&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; &lt;span style="color: blue;"&gt;LOGIN&lt;/span&gt; [Test_Login] &lt;span style="color: blue;"&gt;WITH&lt;/span&gt;&lt;span style="color: blue;"&gt;PASSWORD&lt;/span&gt;&lt;span style="color: grey;"&gt;=&lt;/span&gt;&lt;span style="color: red;"&gt;N'TestLoginPASSWORD'&lt;/span&gt;&lt;span style="color: grey;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;DEFAULT_DATABASE&lt;/span&gt;&lt;span style="color: grey;"&gt;=&lt;/span&gt;[master]&lt;span style="color: grey;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;CHECK_EXPIRATION&lt;/span&gt;&lt;span style="color: grey;"&gt;=&lt;/span&gt;&lt;span style="color: blue;"&gt;OFF&lt;/span&gt;&lt;span style="color: grey;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;CHECK_POLICY&lt;/span&gt;&lt;span style="color: grey;"&gt;=&lt;/span&gt;&lt;span style="color: blue;"&gt;OFF&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;A query of syslogins willtell you that a new user has been created since the last time you checked&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;SELECT&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; createdate&lt;span style="color: grey;"&gt;,&lt;/span&gt; name, dbname, isntuser &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;FROM&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; &lt;span style="color: green;"&gt;sys&lt;/span&gt;&lt;span style="color: grey;"&gt;.&lt;/span&gt;&lt;span style="color: green;"&gt;syslogins&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;WHERE &lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt;createdate &amp;gt; @LastDate &lt;span style="color: blue;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;ORDER BY&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; createdate &lt;span style="color: blue;"&gt;DESC&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;However,&lt;span&gt;&amp;nbsp; &lt;/span&gt;this information does not tell me what Ireally want to know.&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Who created thislogin?&lt;span&gt;&amp;nbsp; &lt;/span&gt;Since I do not want to write anelaborate thing to capture this information, I want to query an exisitingsource: The defeault trace. &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;This comes with a problem ofits own.&lt;span&gt;&amp;nbsp; &lt;/span&gt;The default trace rolls overand only 5 are kept.&lt;span&gt;&amp;nbsp; &lt;/span&gt;The limit of 5 isnot so much of a problem in my world, but not knowing when the rollover happensis.&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;You can query the::fn_trace_getinfo to get metadata about these traces, but we need to knowwhich trace contains the information we need.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;SELECT&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; * &lt;span style="color: blue;"&gt;from&lt;/span&gt; &lt;span style="color: grey;"&gt;::&lt;/span&gt;&lt;span style="color: green;"&gt;fn_trace_getinfo&lt;/span&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;0&lt;span style="color: grey;"&gt;)&lt;/span&gt; &lt;span style="color: blue;"&gt;Where&lt;/span&gt; traceid = 1&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;This returns the following&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; margin-left: 22.35pt; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"&gt; &lt;tbody&gt;&lt;tr&gt;  &lt;td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 54.9pt;" valign="top" width="92"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;traceid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;" valign="top" width="105"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;property&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.25in;" valign="top" width="510"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 54.9pt;" valign="top" width="92"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;" valign="top" width="105"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.25in;" valign="top" width="510"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 54.9pt;" valign="top" width="92"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;" valign="top" width="105"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.25in;" valign="top" width="510"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;C:\Program  Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\log_5.trc&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 54.9pt;" valign="top" width="92"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;" valign="top" width="105"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.25in;" valign="top" width="510"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;20&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 54.9pt;" valign="top" width="92"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;" valign="top" width="105"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.25in;" valign="top" width="510"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;NULL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 54.9pt;" valign="top" width="92"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;" valign="top" width="105"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.25in;" valign="top" width="510"&gt;  &lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Courier New';"&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;The property values are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: .5in;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: black;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;1= Trace options. &lt;br /&gt;2 = File name&lt;br /&gt;3 = Max size&lt;br /&gt;4 = Stop time&lt;br /&gt;5 = Current trace status. &lt;span&gt;&amp;nbsp;&lt;/span&gt;0 = stopped. 1= running.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;The stop time would help us,but I have yet to run this query on a server or a log and not get a nullresult.&lt;span&gt;&amp;nbsp; &lt;/span&gt;In order to find out if the tracecontains the data we are looking for we must query the file.&lt;span&gt;&amp;nbsp; &lt;/span&gt;You can use the meta data collected in the lastquery to get the file path.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;SELECT&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; &lt;span style="color: magenta;"&gt;MAX&lt;/span&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;StartTime&lt;span style="color: grey;"&gt;)&lt;/span&gt; &lt;span style="color: blue;"&gt;as&lt;/span&gt; EndTIme &lt;span style="color: grey;"&gt;,&lt;/span&gt; &lt;span style="color: magenta;"&gt;MIN&lt;/span&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;startTime&lt;span style="color: grey;"&gt;)&lt;/span&gt; &lt;span style="color: blue;"&gt;as&lt;/span&gt; StartTime&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;FROM&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; &lt;span style="color: green;"&gt;fn_trace_gettable&lt;/span&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;&lt;span style="color: red;"&gt;'C:\Program Files\Microsoft SQLServer\MSSQL10_50.MSSQLSERVER\MSSQL\Log\log_5.trc'&lt;/span&gt;&lt;span style="color: grey;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;default&lt;/span&gt;&lt;span style="color: grey;"&gt;)&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;This will let us know if ourcreate date from syslogins in within this trace file.&lt;span&gt;&amp;nbsp; &lt;/span&gt;If it is we can then query the trace to getinfromation on the person who created the login.&lt;span&gt;&amp;nbsp; &lt;/span&gt;Event class 104 is the event for the creationof a new login.&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;SELECT&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; StartTime&lt;span style="color: grey;"&gt;,&lt;/span&gt; LoginName&lt;span style="color: grey;"&gt;,&lt;/span&gt; Hostname&lt;span style="color: grey;"&gt;,&lt;/span&gt; TargetLoginName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;FROM&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; &lt;span style="color: green;"&gt;fn_trace_gettable&lt;/span&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;&lt;span style="color: red;"&gt;'C:\Program Files\Microsoft SQLServer\MSSQL10_50.MSSQLSERVER\MSSQL\Log\log_5.trc'&lt;/span&gt;&lt;span style="color: grey;"&gt;,&lt;/span&gt; &lt;span style="color: blue;"&gt;default&lt;/span&gt;&lt;span style="color: grey;"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-family: 'Courier New';"&gt;WHERE&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt; EventClass &lt;span style="color: grey;"&gt;=&lt;/span&gt; 104&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Another approach is to querythe default trace only, you will still have to do some date management to makesure you don’t miss any new logins between trace files.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&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/2610351208140566665-4671630836881792355?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/4671630836881792355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=4671630836881792355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/4671630836881792355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/4671630836881792355'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2011/09/audit-for-new-login-without-using-sql.html' title='Audit for New Login without using SQL Audit'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-3422664458348432051</id><published>2011-08-25T13:51:00.001-05:00</published><updated>2011-08-25T13:52:31.254-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WIT'/><title type='text'>One of the Boys, Maybe Not</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-bottom: .0001pt; margin: 0in;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span style="color: black;"&gt;At the WIT Luncheon at SQL Saturday in&amp;nbsp;Indianapolis, I was asked about challenges I have to overcome as a woman in technology. &amp;nbsp; I have been fortunate that I have not had external obstacles, like a sexist boss or woman hating co-worker. &amp;nbsp;My obstacles have been of my own making, a belief that I have to be someone I am not in order to fit in with my male co-workers. &amp;nbsp; I am not one of the guys. &amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-bottom: .0001pt; margin: 0in;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: .0001pt; margin: 0in;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;I started my career during the dot com boom in Austin. &amp;nbsp; It was a time and place that encouraged creativity and companies were desperate for anyone who wanted to contribute.&amp;nbsp; This was a&amp;nbsp;great time for women in technology. &amp;nbsp;All of my friends were developers, admins, and developers.&amp;nbsp; When the dot com boom went bust, many of us looked for work in other places.&amp;nbsp; Side note: Ten years later, I am the only one of my friends that is still in IT. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: .0001pt; margin: 0in;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: .0001pt; margin: 0in;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;It was when I moved to Louisville that I realized what it really was like to be a woman in technology.&amp;nbsp; It is lonely.&amp;nbsp; I worked in a large IT organization, 3000 or more people and there were a few other women but in different departments or buildings, but I was the only women DBA.&amp;nbsp; Because I was new in town, it was important to me to be part of the team and fit in with group.&amp;nbsp; I wanted to go to lunch with the rest of the team and enjoy the water cooler banter.&amp;nbsp; &amp;nbsp;&amp;nbsp;These men shared common interests that I did not even have the slightest interest, but I wanted to be included.&amp;nbsp; I have no desire to go fishing, know nothing about youth athletics, nor is Hooters my favorite restaurant. &amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: .0001pt; margin: 0in;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: .0001pt; margin: 0in;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;I tried so hard to be part of that boys club, but I was miserable.&amp;nbsp; My male coworkers respected my work and I did enjoy friendships on an individual basis with many of these co-workers.&amp;nbsp; One day I realized that my coworkers were sneaking out to have lunch without me.&amp;nbsp; Of course, my feelings were hurt and no one likes to think that people are sneaking around rather than having to hang out with you.&amp;nbsp;&amp;nbsp; However, after that incident I stop trying to be a part of the group and eventually realized that wanting to be a part of group that I have nothing in common is ridiculous.&amp;nbsp; If anything not being part of the group improved my work and career and I found my individual friendships with coworkers strengthened. &amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: .0001pt; margin: 0in;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: .0001pt; margin: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;I have since moved on from this company and while I have more in common with my coworker now, I will never be one of the boys.&amp;nbsp; I am girl who has girly interests and hobbies.&amp;nbsp; I will still occasionally still feel a twinge when my coworkers engage in some masculine bonding over sports or cars or some other thing that I don’t care about, but it is more important to me now to be myself.&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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/2610351208140566665-3422664458348432051?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/3422664458348432051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=3422664458348432051' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/3422664458348432051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/3422664458348432051'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2011/08/one-of-boys-maybe-not.html' title='One of the Boys, Maybe Not'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-1900201728928154603</id><published>2011-06-27T14:50:00.001-05:00</published><updated>2011-06-27T14:51:08.624-05:00</updated><title type='text'>Querying SQL Audit Files</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;I love SQL Audit, mainly because I can use it avoid login auditing going to the SQL Server error log, but that is besides the point. &amp;nbsp;However, an audit is only useful if you can use the information within the audit easily. &amp;nbsp;This is one negative on SQL Audit, I do not find it easy to query, but here is how you can do it.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;I created an audit to log failed logins&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;USE [master]&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;CREATE SERVER AUDIT [Login_Audit]&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;TO FILE&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;(&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;FILEPATH = N'C:\Audit\'&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;,MAXSIZE = 1024 MB&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;,MAX_ROLLOVER_FILES = 2147483647&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;,RESERVE_DISK_SPACE = OFF&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;WITH&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;(&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;QUEUE_DELAY = 1000&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;,ON_FAILURE = CONTINUE&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;,AUDIT_GUID = 'd60fca2d-14a6-4cc5-bb6c-78a9249acae6'&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;CREATE SERVER AUDIT SPECIFICATION [Login_Audit]&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;FOR SERVER AUDIT [Login_Audit]&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;ADD (FAILED_LOGIN_GROUP)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;WITH (STATE = ON)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;What I want to know is how many failed logins happen in a 24 hour period and what logins are failing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;SELECT server_principal_name, COUNT(*) as FailedLoginCount&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;FROM sys.fn_get_audit_file ('C:\Audit\*',default,default)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;WHERE event_time &amp;gt; GETDATE()-1 &amp;nbsp;AND action_id = 'LGIF'&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;GROUP BY server_principal_name&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;ORDER BY FailedLoginCount Desc&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Not the most elegant method for getting the information I want, but it is a starting place.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2610351208140566665-1900201728928154603?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/1900201728928154603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=1900201728928154603' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/1900201728928154603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/1900201728928154603'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2011/06/querying-sql-audit-files.html' title='Querying SQL Audit Files'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-4114413320700325988</id><published>2011-05-25T12:24:00.001-05:00</published><updated>2011-05-25T12:24:13.084-05:00</updated><title type='text'>SQL Saturday Columbus</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Wohoo! &amp;nbsp;I will be giving 3 sessions at SQL Saturday in Columbus and participating on the WIT panel. &amp;nbsp;I am sure I will be tired by the end of the day. &amp;nbsp;My sessions are:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Build Your Own SQL Server Cloud&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Oh, no Disaster Strikes&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The 4-Hour DBA&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Please come to see me&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/2610351208140566665-4114413320700325988?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/4114413320700325988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=4114413320700325988' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/4114413320700325988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/4114413320700325988'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2011/05/sql-saturday-columbus.html' title='SQL Saturday Columbus'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-3662526806248287690</id><published>2011-05-17T15:59:00.000-05:00</published><updated>2011-05-17T15:59:15.316-05:00</updated><title type='text'>Somedays it is easier to blame the users</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;I believe that part of a DBA's job is to educate their users on proper SQL Server&amp;nbsp;practices. &amp;nbsp;Today, I had a situation occur where a developer rolled out a database that nearly crashed its SQL Server, because every query had a where clause that contained a wild card at the&amp;nbsp;beginning&amp;nbsp;of the search string.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;WHERE product like '%widget%'&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This meant that every call that used this pattern had to perform a table scan and caused all sorts of locking and crappy performance. &amp;nbsp;I was not happy. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;I started to write a "You are an idiot" email to the developer screaming about how stupid they were and why did they not use a full-text index. &amp;nbsp;I started to look through my SQL Server training materials for the section where I covered full-text indexes and&amp;nbsp;realized&amp;nbsp;that I had never written about this. &amp;nbsp; Now, should an experienced developer know that using a wildcard at the beginning of a search string is a bad idea? I think so, but I also had not done my job fully and trained the developer. &amp;nbsp;This is what I believe is called a teachable moment. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Understanding database performance is not easy or everyone's databases would be super fast. &amp;nbsp;Before blaming someone else make sure that you have communicated what you expect of them first. &amp;nbsp;Then the next time they do something stupid, you are justified in flying off the handle.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2610351208140566665-3662526806248287690?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/3662526806248287690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=3662526806248287690' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/3662526806248287690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/3662526806248287690'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2011/05/somedays-it-is-easier-to-blame-users.html' title='Somedays it is easier to blame the users'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-4372387409445707062</id><published>2011-05-09T15:06:00.000-05:00</published><updated>2011-05-09T15:06:03.105-05:00</updated><title type='text'>Upcoming Speaking Events</title><content type='html'>I have submitted sessions for the upcoming SQL Saturday events in &lt;a href="http://www.sqlsaturday.com/75/eventhome.aspx"&gt;Columbus, OH&lt;/a&gt; and &lt;a href="http://www.sqlsaturday.com/82/eventhome.aspx"&gt;Indianapolis&lt;/a&gt;. I am looking forward to attending both events and hopefully will have the opportunity get back into speaking about my favorite topic SQL Server again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2610351208140566665-4372387409445707062?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/4372387409445707062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=4372387409445707062' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/4372387409445707062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/4372387409445707062'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2011/05/upcoming-speaking-events.html' title='Upcoming Speaking Events'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-2711535369944168321</id><published>2009-06-12T13:12:00.005-05:00</published><updated>2009-06-12T20:12:19.855-05:00</updated><title type='text'>Public Not Granted Server Permission</title><content type='html'>&lt;div&gt;I have been setting up policies on my 2008 servers.  I thought a good place to start would be with the suggested policies Microsoft provides with their samples.  You can download the sample databases from &lt;a href="http://www.codeplex.com/MSFTDBProdSamples"&gt;codeplex&lt;/a&gt;.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I can came across a sample policy named “Public Not Granted Server Permission”, now this sounds like something a person would want to implement.  I imported the policy and ran it on my test system and discovered my system failed, but I was not really sure why.  The policy explains that the server role public has been granted server level permissions.  OK, but what does that mean?  What server level permissions?  This policy does not provide an option to force compliance, so the dba must correct the issue manually, but how and if you correct what permissions will be revoked?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I started by trying to investigate the @PublicServerRoleIsGrantedPermissions facet, but that provided no greater information.  Then I found this great &lt;a href="http://blogs.solidq.com/EN/rdyess/Lists/Posts/Post.aspx?ID=6#Comments"&gt;blog post&lt;/a&gt; by Randy Dyess who delves into the guts of the public role.  He provides a script to identify the permissions that the public role has been granted.  Using this script I determined that a fresh install of SQL Server by default grants the public role the following permissions:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;mso-table-layout-alt:fixed;border:none;  mso-border-alt:solid black .5pt;mso-border-themecolor:text1;mso-yfti-tbllook:  1184;mso-padding-alt:0in 5.4pt 0in 5.4pt"&gt;  &lt;tbody&gt;&lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes"&gt;   &lt;td width="67" valign="top" style="width:.7in;border:solid black 1.0pt;   mso-border-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;Name&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border:solid black 1.0pt;   mso-border-themecolor:text1;border-left:none;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;Permission&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="126" valign="top" style="width:94.5pt;border:solid black 1.0pt;   mso-border-themecolor:text1;border-left:none;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border:solid black 1.0pt;   mso-border-themecolor:text1;border-left:none;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;Securable&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="72" valign="top" style="width:.75in;border:solid black 1.0pt;   mso-border-themecolor:text1;border-left:none;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;State&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:1"&gt;   &lt;td width="67" valign="top" style="width:.7in;border:solid black 1.0pt;   mso-border-themecolor:text1;border-top:none;mso-border-top-alt:solid black .5pt;   mso-border-top-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;public&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;CONNECT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="126" valign="top" style="width:94.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;ENDPOINT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;NAMED_PIPES&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="72" valign="top" style="width:.75in;border-top:none;border-left:none;   border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;GRANT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:2"&gt;   &lt;td width="67" valign="top" style="width:.7in;border:solid black 1.0pt;   mso-border-themecolor:text1;border-top:none;mso-border-top-alt:solid black .5pt;   mso-border-top-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;public&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;CONNECT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="126" valign="top" style="width:94.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;ENDPOINT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;SHARED_MEMORY&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="72" valign="top" style="width:.75in;border-top:none;border-left:none;   border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;GRANT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:3"&gt;   &lt;td width="67" valign="top" style="width:.7in;border:solid black 1.0pt;   mso-border-themecolor:text1;border-top:none;mso-border-top-alt:solid black .5pt;   mso-border-top-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;public&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;CONNECT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="126" valign="top" style="width:94.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;ENDPOINT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;TCP&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="72" valign="top" style="width:.75in;border-top:none;border-left:none;   border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;GRANT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:4"&gt;   &lt;td width="67" valign="top" style="width:.7in;border:solid black 1.0pt;   mso-border-themecolor:text1;border-top:none;mso-border-top-alt:solid black .5pt;   mso-border-top-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;public&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;CONNECT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="126" valign="top" style="width:94.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;ENDPOINT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;VIA&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="72" valign="top" style="width:.75in;border-top:none;border-left:none;   border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;GRANT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:5;mso-yfti-lastrow:yes"&gt;   &lt;td width="67" valign="top" style="width:.7in;border:solid black 1.0pt;   mso-border-themecolor:text1;border-top:none;mso-border-top-alt:solid black .5pt;   mso-border-top-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;public&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;VIEW ANY DATABASE&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="126" valign="top" style="width:94.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;SERVER&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="150" valign="top" style="width:112.5pt;border-top:none;border-left:   none;border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;Server&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="72" valign="top" style="width:.75in;border-top:none;border-left:none;   border-bottom:solid black 1.0pt;mso-border-bottom-themecolor:text1;   border-right:solid black 1.0pt;mso-border-right-themecolor:text1;mso-border-top-alt:   solid black .5pt;mso-border-top-themecolor:text1;mso-border-left-alt:solid black .5pt;   mso-border-left-themecolor:text1;mso-border-alt:solid black .5pt;mso-border-themecolor:   text1;padding:0in 5.4pt 0in 5.4pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;GRANT&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Of these permissions only VIEW ANY DATABASE is the only server lever permission.   I am familiar with this permission.  If you DENY VIEW ANY DATABASE to PUBLIC a user will only be able to see the master, msdb and databases in which they own.  This would prevent a user from seeing the other databases on the server listed in management studio.  The problem with this is that I don’t make any user dbo.  If a developer wanted to connect via Studio Manager they would not see database which they have been granted permission within.  They can still connect to the database, but can’t see it in Management Studio which kind of defeats the point. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For my testing I went ahead and issued the following:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; DENY VIEW ANY DATABASE to PUBLIC.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I re-evaluated the policy and it still failed.   So on the advice of &lt;a href="http://www.sqlservercentral.com/blogs/brian_kelley/default.aspx"&gt;Brian Kelley&lt;/a&gt;, I issued the denied all connect permissions to the Endpoints.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;DENY CONNECT ON ENDPOINT::[TSQL Named Pipes] to public&lt;/div&gt;&lt;div&gt;DENY CONNECT ON ENDPOINT::[TSQL Local Machine] to public&lt;/div&gt;&lt;div&gt;DENY CONNECT ON ENDPOINT::[TSQL Default TCP] to public&lt;/div&gt;&lt;div&gt;DENY CONNECT ON ENDPOINT::[TSQL Default VIA] to public&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This worked and the policy passed.  However, this is not a policy that I will be implementing.&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/2610351208140566665-2711535369944168321?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/2711535369944168321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=2711535369944168321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/2711535369944168321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/2711535369944168321'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2009/06/public-not-granted-server-permission.html' title='Public Not Granted Server Permission'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-3319338720401267418</id><published>2009-06-02T13:20:00.000-05:00</published><updated>2009-06-12T13:21:18.702-05:00</updated><title type='text'>Speaking at Louisville PASS Chapter</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 12px; "&gt; On Thursday June 11th from noon to 1pm I will be speaking at the Louisville PASS chapter meeting.   The meeting is being held at Kindred Healthcare, 680 S. Fourth Street.  The topic is "Defensive SQL Server Security."  I believe that Idera will be providing Pizza. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2610351208140566665-3319338720401267418?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/3319338720401267418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=3319338720401267418' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/3319338720401267418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/3319338720401267418'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2009/06/speaking-at-louisville-pass-chapter.html' title='Speaking at Louisville PASS Chapter'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-6623780214640068397</id><published>2009-04-24T13:04:00.000-05:00</published><updated>2009-06-12T13:05:50.957-05:00</updated><title type='text'>Set Number of Error Logs via code</title><content type='html'>&lt;div&gt;&lt;div&gt;In my ongoing effort to automate everything.  I wanted to have a script that would change the default number of error logs.   After some looking around in help and on the internet, I realized I was going to have come up with a solution on my own.   I was complaining to Ryan about having to do some real work,  when he suggested that I just run a trace when  I make the change via Management Studio.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is the result:  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'NumErrorLogs', REG_DWORD, 10&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I am sure using this is not recommended, but then MS should have provided me a better method to accomplish this. &lt;/div&gt;&lt;div&gt;&lt;br /&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/2610351208140566665-6623780214640068397?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/6623780214640068397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=6623780214640068397' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/6623780214640068397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/6623780214640068397'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2009/03/set-number-of-error-logs-via-code.html' title='Set Number of Error Logs via code'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-4506275503760436311</id><published>2009-04-06T13:10:00.000-05:00</published><updated>2009-06-12T13:12:03.541-05:00</updated><title type='text'>32-bit to 64-bit SQL 2008 Upgrades</title><content type='html'>&lt;div&gt;I am not sure if it is a symptom of my advanced age, but I am forgetting more and more.  I know that you can't do an inplace upgrade from a 32-bit version of SQL 2005 to a 64-bit version, but I did indeed forget.   I am running into this issue more frequently on SQL 2008 upgrades than I did with previous version, becuase SQL 2008 offers Workgroup Edition 64-bit for the first time.  Many of the customers running Workgroup Edition SQL 2005 in a WOW configuration are looking to upgrade.   &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The only workaround that I knowis to:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Script out logins, jobs, and any objects that are stored in MSDB and Master&lt;/li&gt;&lt;li&gt;Detach user databases&lt;/li&gt;&lt;li&gt;Uninstall 32-bit version of  SQL Server&lt;/li&gt;&lt;li&gt;Reboot Server, just to be sure&lt;/li&gt;&lt;li&gt;Install 64-bit version of SQL Server&lt;/li&gt;&lt;li&gt;Create logins, jobs and other server wide objects&lt;/li&gt;&lt;li&gt;Re-attach user databases&lt;/li&gt;&lt;/ul&gt;&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 class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2610351208140566665-4506275503760436311?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/4506275503760436311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=4506275503760436311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/4506275503760436311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/4506275503760436311'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2009/04/32-bit-to-64-bit-sql-2008-upgrades.html' title='32-bit to 64-bit SQL 2008 Upgrades'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-2531137402666711803</id><published>2009-04-02T13:10:00.000-05:00</published><updated>2009-06-12T13:10:48.433-05:00</updated><title type='text'>New MVP</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial; border-collapse: collapse; font-size: 12px; "&gt;Congratulations to my friend &lt;a href="http://chrisshaw.wordpress.com/" style="text-decoration: underline; color: rgb(231, 85, 28); "&gt;Chris Shaw &lt;/a&gt;who was finally award an MVP for SQL Server.  Chris has been working for years supporting the SQL Server Community and I am very happy for him.   &lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Arial;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Arial;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; font-size: 12px;"&gt;ps.  Chris is a non-douchebag MVP&lt;/span&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/2610351208140566665-2531137402666711803?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/2531137402666711803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=2531137402666711803' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/2531137402666711803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/2531137402666711803'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2009/04/new-mvp.html' title='New MVP'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-3971668537333897228</id><published>2009-03-31T13:06:00.000-05:00</published><updated>2009-06-12T13:07:22.324-05:00</updated><title type='text'>Getting Back to Basics</title><content type='html'>&lt;div&gt;Johnny has been on vacation this week ( I hope he is having a good time, because he will never get to go on another one ever again, he does too much around here)  and I have been covering much of his responbilities.  Configuring SQL Server instances, fixing failed jobs, answering support questions, etc, etc.    I will be honest, I do not much of this work any more.  While some of it is tedious, I am getting the chance to remember why I like being a DBA so much.  It is the daily problem solving.  Some jobs you can work on one problem for years, while that is fine for some, I prefer many small victories.  A problem arises and I can fix it move on to another problem.   &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When I worked at a big corporation, problems rarely happened.  Which is a good thing, but it is boring.  Now I work for a hosting company and I have the chance to work with a lot on database novices and new DBAs.  Everyday I am challenged to fix something that has gone wrong for someone else.  Personally,  I get a lot of satisfaction of teaching others new things about database and solving their problems.  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2610351208140566665-3971668537333897228?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/3971668537333897228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=3971668537333897228' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/3971668537333897228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/3971668537333897228'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2009/03/getting-back-to-basics.html' title='Getting Back to Basics'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-7378958401637311773</id><published>2009-03-19T12:58:00.000-05:00</published><updated>2009-06-12T13:00:50.858-05:00</updated><title type='text'>Disaster Recovery Horror Stories</title><content type='html'>&lt;p class="MsoNormal"&gt;Brent Ozar is hosting a &lt;a href="http://www.quest.com/events/listdetails.aspx?contentid=8855&amp;amp;technology=34&amp;amp;prod=&amp;amp;prodfamily=&amp;amp;loc=" _fcksavedurl="http://www.quest.com/events/listdetails.aspx?contentid=8855&amp;amp;technology=34&amp;amp;prod=&amp;amp;prodfamily=&amp;amp;loc="&gt;webcast&lt;/a&gt; today about disaster recovery horror stories and I thought back to my “favorite” horror story and how much I have learned since then. &lt;span&gt; &lt;/span&gt;I have been working with SQL Server since 1997, but I was not a real dba until I took a job at large insurance company in 2000.&lt;span&gt;  &lt;/span&gt;At that time, a lot of large companies only trusted SQL Server to be the back end to their websites, but did not trust it to run their actual business.&lt;span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;This company was like many their website kind of grew up without any real structure or plan.&lt;span&gt;  &lt;/span&gt;However, the company realized that they needed add structure to their site and I was the dba on site to help roll out the changes to the database.&lt;span&gt; &lt;/span&gt;The updates were expected to take 3 hours to complete and we got started at 10 AM.&lt;span&gt;  &lt;/span&gt;Now I was not given these updates before hand, so I did not know that updates used cursors instead of set based queries to update hundreds of tables with millions of rows. &lt;span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;Let me stop here and give you some background, at this time had two very large dogs.&lt;span&gt;  &lt;/span&gt;A super friendly German Shepherd mix and a pit bull / mastiff mix named Truck who weighed about 100 pounds and was very protective of me and our house.&lt;span&gt;  &lt;/span&gt;I was obsessed with these dogs, they were my life.&lt;span&gt;  &lt;/span&gt;Truck passed away 2 years ago and I still talk about him constantly.&lt;/p&gt;&lt;p class="MsoNormal"&gt;A 3 hour update took closer to 9 hours, but then the problems started. &lt;span&gt; &lt;/span&gt;The website no longer served pages, every page was giving a timeout errors.&lt;span&gt;  &lt;/span&gt;Of course, today I would immediately know what to do and what the problem was, but then was a different story.&lt;span&gt;  &lt;/span&gt;A conference call was created with every vp at the company on the line, web developers, hardware guys, network guys and me and the lead dba.&lt;span&gt;  &lt;/span&gt;The lead dba had less experience then I did.&lt;span&gt;  &lt;/span&gt;Everyone was off checking their own thing and no one could figure out what was happening.&lt;span&gt;  &lt;/span&gt;By about 10 hours in, I was in a panic, my dogs needed to go out and be feed.&lt;span&gt;  &lt;/span&gt;I was new to the city and did not have any friends or family to go check on my boys.&lt;span&gt;  &lt;/span&gt;The VP of my division would not let me leave, but because I was so upset he said that he would go let my dogs out.&lt;span&gt;  &lt;/span&gt;I told him that he did not understand that Truck was a very scary dog.&lt;span&gt;  &lt;/span&gt;I continued to work while the VP went to let my dogs out.&lt;span&gt;  &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;I finally got the bright idea to run a trace on the database and I noticed that most queries took 10 ms to execute but this one took 10 minutes to run and it seemed to be called all the time.&lt;span&gt;  &lt;/span&gt;Duh!&lt;span&gt;  &lt;/span&gt;I was young and stupid.&lt;span&gt;  &lt;/span&gt;This was the early days before change control made their way to sql server, so I just added a couple of indexes to this table and poof, the site loaded. &lt;span&gt; &lt;/span&gt;The site came up, but that was about it.&lt;span&gt;  &lt;/span&gt;It was performance nightmare. &lt;span&gt; &lt;/span&gt;About this time, is when the VP called from outside of my house to say he was not going in, but found a neighbor kid who did yard for me to brave it.&lt;span&gt;  &lt;/span&gt;Truck knew the neighbor kid and let him in, but hated that VP.&lt;span&gt;  &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;So I worked for 16 hours running traces, adding indexes until the site worked.&lt;span&gt;  &lt;/span&gt;After that I was the human performance tuning wizard.&lt;/p&gt;&lt;p class="MsoNormal"&gt;The post script to this story is the actual worse disaster I had, but is far from my favorite story.&lt;span&gt;  &lt;/span&gt;I had scheduled to apply SP2 on one of our large SQL 2005 one Friday night.&lt;span&gt;  &lt;/span&gt;We had tested SP2 and applied on about 15 servers prior to this install I did not anticipate any issues.&lt;span&gt;  &lt;/span&gt;Because we have international customers our maintenance window is Saturday morning at 2 AM, a time I hate.&lt;span&gt;  &lt;/span&gt;Sleepy DBAs make bad decisions, but it is part of the job.&lt;span&gt;  &lt;/span&gt;Before I started I took a full system backup, and then ran the SP2 installer.&lt;span&gt;  &lt;/span&gt;Some of you may have encountered the issue with SP2 where it failed due to a previous installation.&lt;span&gt;  &lt;/span&gt;So I went out found the Windows installation cleanup tool and removed anything I thought may be the problem.&lt;span&gt;  &lt;/span&gt;I reran the SP2 installation and it installed without issue.&lt;span&gt;   &lt;/span&gt;I thought I was finished and just rebooted the server.&lt;span&gt;  &lt;/span&gt;But the server would not come back up, the master database was corrupt.&lt;span&gt;  &lt;/span&gt;How , Why, I am not sure.&lt;span&gt;  &lt;/span&gt;So I try to restore from my backup, but I am unable to because I was getting an error that the backup was not readable.&lt;span&gt;  &lt;/span&gt;I knew then that I was in for a long night.&lt;span&gt;  &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;Another back story, Truck, my beloved dog had cancer.&lt;span&gt;  &lt;/span&gt;He was undergoing chemo and I had hoped that he was doing better.&lt;span&gt;  &lt;/span&gt;I knew there would be no cure, but still I hoped.&lt;span&gt;  &lt;/span&gt;The day of the upgrade I noticed that he was a little lethargic, but that sometimes happened after chemo.&lt;span&gt;  &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;Truthfully, I don’t remember exactly what I did, but I was able to get the server backup.&lt;span&gt;  &lt;/span&gt;I think I restored the master database backup on another server as regular database and then made a backup of the restored database.&lt;span&gt;  &lt;/span&gt;This new backup worked, but then I found out there were problems with MSDB.&lt;span&gt;  &lt;/span&gt;At this point, I had been up for 24 hours and was exhausted.&lt;span&gt;  &lt;/span&gt;So I made the call to go home get some sleep and then deal with the MSDB problem the next day.&lt;/p&gt;&lt;p class="MsoNormal"&gt;The next day, Truck was still lethargic, but truthfully I was so consumed with my broken server that I did not pay much attention.&lt;span&gt;  &lt;/span&gt;I continued troubleshooting the msdb issue, but made the decision to scrap the entire install and reinstall SQL Server on new hardware, it was just screwed up.&lt;span&gt;  &lt;/span&gt;I scheduled this to happen Sunday night at 10PM.&lt;/p&gt;&lt;p class="MsoNormal"&gt;Thankfully, the re-build went off without incident and the server was backup and running.&lt;span&gt;  &lt;/span&gt;The next morning, a new DBA (Ryan) was starting so I would have help and not have to deal with this kind of thing alone in the future.&lt;span&gt;  &lt;/span&gt;I went home and discovered that Truck had taken a turn for the worse.&lt;span&gt;  &lt;/span&gt;I rushed him to the emergency vet and stayed most of the night up with him.&lt;span&gt;  &lt;/span&gt;I called our CTO and asked him to welcome Ryan and get him settled, because I had to take Truck to cancer vet first thing in the morning.&lt;span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;The vet told me that he would need to run some tests on Truck and that I should go into work.&lt;span&gt;  &lt;/span&gt;So I went to work welcome Ryan and started to deal with the fallout of the weekend.&lt;span&gt;  &lt;/span&gt;A few hours later the vet called and told me that Truck was bleeding internally and that it was time.&lt;span&gt;  &lt;/span&gt;I left work to say goodbye to Truck and then went home where I planned to stay for the next few days mourning the worldest greatest dog.&lt;span&gt;  &lt;/span&gt;However, the life of dba is not always convenient.&lt;span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;On the day my beloved Truck died, I had to go back into work to help a customer who had encrypted all their data using the server master key, which we do not support and do not backup.&lt;span&gt;  &lt;/span&gt;When the server was rebuilt, a new master key was generated.&lt;span&gt;  &lt;/span&gt;I am no encryption expert and I was in no mood to deal with this situation, but Ryan had been on the job less than 6 hours and I was the only dba, so I called up Microsoft to help me try to recover the master key from the old server which was not easy.&lt;span&gt;  &lt;/span&gt;On the worse day of my relatively young life, I spent on the phone with pss.&lt;span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;When things wrong, it is rarely convenient.&lt;/p&gt;&lt;p&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/2610351208140566665-7378958401637311773?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/7378958401637311773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=7378958401637311773' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/7378958401637311773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/7378958401637311773'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2009/06/disaster-recovery-horror-stories.html' title='Disaster Recovery Horror Stories'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-7186661656457917051</id><published>2009-03-09T12:57:00.001-05:00</published><updated>2009-06-12T13:01:47.113-05:00</updated><title type='text'>The MVP Summit</title><content type='html'>&lt;p&gt;I love twitter.&lt;span&gt;  &lt;/span&gt;I enjoy reading the tweets of my follow SQL Server professional expert and the regular guys. I learn a lot and enjoy commisserating with my fellow professionals on the pains of the dba profession.&lt;span&gt;  &lt;/span&gt;However, this week twitter is annoying me.&lt;span&gt;   &lt;/span&gt;Microsoft awards many of the top SQL Server Experts with the title of MVP, which entitles them with all sorts of benefits and perks.&lt;span&gt;   &lt;/span&gt;I will admit that I would like to be MVP and have access to all sorts of information and resources, but I do pretty well now with the resources us regular folks have access.&lt;span&gt;   &lt;/span&gt;This week is the MVP summit, where all the MVP's go up Redmond and learn new secret things before the rest of us.&lt;span&gt;   &lt;/span&gt;I knew this event happened in the past, but now thanks to&lt;a href="http://search.twitter.com/search?q=%23mvp09" _fcksavedurl="http://search.twitter.com/search?q=%23mvp09"&gt;Twitter&lt;/a&gt; it is being thrown in my face.&lt;span&gt;    &lt;/span&gt;It is kind of a douchebag move to twitter "I am learning all this really cool stuff that I can't share with you because you aren't an mvp"&lt;span&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/2610351208140566665-7186661656457917051?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/7186661656457917051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=7186661656457917051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/7186661656457917051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/7186661656457917051'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2009/06/mvp-summit.html' title='The MVP Summit'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-1669834414060646615</id><published>2009-02-23T13:02:00.000-05:00</published><updated>2009-06-12T13:04:04.541-05:00</updated><title type='text'>Performance Advisor Saves the Day</title><content type='html'>&lt;div&gt;One of the most annoying questions i get is "My application went down last Tuesday aroun 9 AM, what happened?"  I often want to reply "How should I know?  How about calling me when it happens."  But I don't, because I am not a complete jerk.   Now I can answer that question because I have Performance Adivsor.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;What happens is that customer will notice a problem with their application and check their error logs,  the error log will give the dreaded "SQL Server Timeout Error" and logically the customer will think there was a problem with the SQL Server and contact me.   In reality, the problem is almost never a SQL Server problem, but an application issue.  Proving this another matter.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First of all the SQL Server does not timeout, the client connecting to the SQL Server is actually timing out, as I do not set a maximum timeout on the sql server.   In the past, I was limited to error logs and the default logs to try to determine what was happening on the server at the time of their time out.  Not much help.   If there was a major issue it will appear there, but if there was a major issue I would already know about it.   I could not tell them what was happening specifically with their database,  perhaps their was a lock that caused the query to take longer than normal?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When SQL Sentry told me about their new product Performance Advisor,  I was very excited.  I bugged them for months to get my hands on it.   Now the product can do all sort of cool real-time monitoring, but in reality I can't keep up with that as I just have too many servers.  I use it to tell me about what happended in the past and about trends.  I love being able to provide our customers with real information to help get to the root of the timeout.  I can say at that time of your time out the server was using X% of CPU and your database executed the following statements and it took X ms to complete.  It makes me look better and I can actually answer the what happened question.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Truthfully,  I don't find many third party products useful, but this one I do like. &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/2610351208140566665-1669834414060646615?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/1669834414060646615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=1669834414060646615' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/1669834414060646615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/1669834414060646615'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2009/03/performance-advisor-saves-day.html' title='Performance Advisor Saves the Day'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-8331256007180190593</id><published>2008-04-01T19:14:00.005-05:00</published><updated>2009-06-12T12:52:26.355-05:00</updated><title type='text'>Backup Resources</title><content type='html'>I get lots of questions from customers on how to setup backups on their servers.  I have put together a short list of backup strategies for the beginner&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.sqlteam.com/article/backup-and-restore-in-sql-server-full-backups"&gt;BACKUP and RESTORE in SQL Server&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.mssqltips.com/tip.asp?tip=1284"&gt;Backup Checklist&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.simple-talk.com/sql/backup-and-recovery/sql-server-2005-backups/"&gt;SQL Server 2005 Backups&lt;/a&gt;  &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.sql-server-performance.com/tips/backup_restore_tuning_p1.aspx"&gt;Performance Tuning Tips for Backups&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2610351208140566665-8331256007180190593?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/8331256007180190593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=8331256007180190593' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/8331256007180190593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/8331256007180190593'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2008/04/backup-resources.html' title='Backup Resources'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2610351208140566665.post-4237589411877280344</id><published>2008-03-10T13:10:00.003-05:00</published><updated>2008-03-10T13:11:38.531-05:00</updated><title type='text'>Back at it again</title><content type='html'>I am going to try the blogging thing again.  I used to be so good at it, but I am going to try to make it a habit.   We will see.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2610351208140566665-4237589411877280344?l=sqlsarah.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlsarah.blogspot.com/feeds/4237589411877280344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2610351208140566665&amp;postID=4237589411877280344' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/4237589411877280344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2610351208140566665/posts/default/4237589411877280344'/><link rel='alternate' type='text/html' href='http://sqlsarah.blogspot.com/2008/03/back-at-it-again.html' title='Back at it again'/><author><name>Sarah</name><uri>http://www.blogger.com/profile/10857997700074485434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-6YNwxbL4fHQ/TcdAi_yBApI/AAAAAAAAAa0/GW91cZIFDo4/s220/Sarah%2BBarela.jpg'/></author><thr:total>0</thr:total></entry></feed>
