Category Archives: Training

Saturday SQL Schoolhouse, Case Studies

SQL Schoolhouse!

Today’s installment of the Saturday SQL Schoolhouse is brought to you by the fine folks over at Microsoft.  When searching for a topic to “teach” today in the schoolhouse, I came across this site called Microsoft Case Studies and could not stop reading.  Obviously, it makes perfect sense for Microsoft to create such a page to help business see the correlation between their products and solving the problems that they have.

Being a SQL geek, I was enthralled like when you are reading a good spy novel wondering if the migration was successful, did the BI solution solve their reporting quandary, did the cloud really save them millions in unnecessary overhead.  Forget the kindle, pick up a good case study and it may help you solve a problem you are having in your office.  Enjoy!

PASS Summit 2012…Last Week to Save $700

Have you registered for PASS Summit?  This week is the last week to register at the second stage early bird rate. 

Do I have a financial interest in the Summit?  No. 

Do I want to see you there?  Heck yeah! 

Am I sure that I am going?  Not yet, still waiting on approval by my employer.  It is a weird tight rope I am walking at this stage, do I pay my own way and save the $700 or do I wait in hopes that they will fund it? 

Have I been before?  No, not yet. 

Have I wanted to?  Heck yeah!

What will I do if my employer says no?  Stand on the street corner with a sign that signs will administer your databases for a trip to the Summit.  Am I serious?  You bet.  Ok, maybe this winter when it is not 100 degrees outside.  Seriously if they say no, I will pay the $999 early bird and pay my own way and drive to Charlotte.  Let’s hope I can meet you there, but only if you register for PASS Summit 2012.  Enjoy!

SQL Reference Book Favorites

20120626-110036.jpg

Books That Remain On My Desk

While looking up something in the racecar book, I thought the topic would make a great blog post.  What books stay on your desk?  I have a book shelf full of wonderful books that are written by people smarter than me.  However, there are four books that never return back to the book shelf mainly because they are my “go to” books of choice.  They rarely fail me in my time of need. The first being my training manual for the SQLskills Immersion Event for Internals and Performance (aka IE1).  If you have taken this class, then you understand why this never leaves my desk.  The second manual is affectionately called the racecar book.  It is the actually called Professional SQL Server 2008 Internals and Troubleshooting and is the first book that I open when I have a question.  The third book is a new book called Troubleshooting SQL Server, A Guide for the Accidental DBA.  I am currently reading this book, but I think it will stay on my desk for some time to come.  The final book is Pro SQL Server 2008 Failover Clustering because I have yet to see another book for clustering that covers everything under the sun. Now don’t get me wrong, eBooks are great, but it still does not beat a real book, maybe I am just old school.  What books remain on your desk?

Saturday SQL Schoolhouse, MS TechEd

SQL Schoolhouse!

Today’s installment of the Saturday SQL Schoolhouse is brought to you by the fine folks over at Microsoft TechEd which was held last week in Orlando.  Didn’t get to go to TechEd this year, me either.  But that’s fine because we have the next best thing though, all of the sessions online!  Top Rated Sessions at TechEd North America 2012.

Enjoy!

Final Thought from SQL Saturday Pensacola Pre-Con

For my final blog about SQL Saturday #132, I wanted to leave you with one all-encompassing piece of advice that I received from the pre-conference training on Friday prior to the event.  The pre-con titled “Demystifying Database Administration Best Practices” was presented by Microsoft Certified Masters Robert Davis (twitter|blog) and Argenis Fernandez (twitter|blog).  

Of course, I will preface this advice with the fact that I am passionate about Best Practices and I also love using the Best Practice Analyzer from Microsoft to detect new violations of best practices.  It is great to run on an instance when I am in a hurry and do not have time to go through a check list.  I simply want to see if any new changes have been made since the last time I ran the tool also known as has anyone changed anything on the server without my knowledge.  With that being said, I give you the advice.

“Do not always rely or trust the information from Best Practice Analyzer”

I do not remember if Robert or Argenis said this pearl and it really doesn’t matter because it is great advice for you and me.  Do not mistake all of my previous posts on the BPA as gospel.  It is a great tool, but it is an automated solution.  It simply cannot know all of the specifics of your server, applications and environments.  Hopefully you do! 

This is the reason that you can choose to disregard some items so that you never see them again.  I personally do not like doing that because if something changes in my department then I forgot all about the warning because I disregarded.  If I see it is a warning then I know it is still there but there is nothing I can do about it. 

Mixed mode authentication is a great example.  We have to run it on some servers because of vendor applications but we are not happy about it.  This will trigger a warning every time, but I do not disregard it because at some point that may change.

 Have a great weekend and enjoy!

Green? If You Only Knew the Power of the Dark Side!

Default Server Power Plan

Continuing my blog series from SQL Saturday #132, I wanted to review one piece of good advice I received from the pre-conference training on Friday prior to the event.  The pre-con titled “Demystifying Database Administration Best Practices” was presented by Microsoft Certified Masters Robert Davis (twitter|blog) and Argenis Fernandez (twitter|blog).  

The default power setting for a new server is balanced as shown in the image above.  This is great when you are trying to achieve a green workplace.  But did you realize that you purchased hardware and now you are not using it to its full power?  Why would you purchase a powerful server and then not use the server to its full capacity?  Why not just buy a less powerful server if that is the goal?

Want to see the difference in the balance power plan and the high performance?  Download the freeware CPU-Z utility from CPUID.  This is a great utility for the administrator for more reasons than just this one as it gives realtime analysis for your CPU, memory, and graphics.

CPU Performance with Balance Power Plan

Check your servers, you may be running short on some power.  Stay tuned for more items in our next installment.  Enjoy!

Good Best Practice Advice from the Pensacola Pre-Con, Round Two

Yesterday, I wrote about some advice that I received at the pre-con titled “Demystifying Database Administration Best Practices” which was presented by Microsoft Certified Masters Robert Davis (twitter|blog) and Argenis Fernandez (twitter|blog) from SQL Saturday #132 in Pensacola, Florida.  Here are some more gems:

  1. Instant File Initialization is critical for performance, read more from Kimberly L. Tripp (twitter|blog).
  2. If you do not have Instant File Initialization enabled, then when you need to autogrow your database, it will have to zero out the file which may timeout the active query.  However, the transaction log will always need to be zeroed out during an autogrow.  These scenarios remind us to properly size our database during the planning stages.
  3. Page file sizing does not need to be one and a half times the amount of memory.  Your SQL Server shouldn’t be paging, otherwise review your memory settings.
  4. Learn the principle of least privilege and apply it to your servers.
  5. Baseline new servers for performance so that you know whether your server is faster or slower.  Do not just take a user’s word for it.  For example, use SQLIO.exe against a new LUN to see your initial throughput.
  6. If you install SQL Server with the local system and decide later to use an active directory account to run the server, it will not delete the server principal name (SPN) and you will receive the “Cannot Generate SSPI Context” error.
  7. Also, if you change the account, be sure to use the SQL Server Configuration Manager instead of the Services applet.

Stay tuned for more items in our next installment.  Enjoy!

Good Best Practice Advice from the Pensacola Pre-Con

For my first blog about SQL Saturday #132, I wanted to review some of the good advice I received from the pre-conference training on Friday prior to the event.  The pre-con titled “Demystifying Database Administration Best Practices” was presented by Microsoft Certified Masters Robert Davis (twitter|blog) and Argenis Fernandez (twitter|blog).   Some of these I knew, some of these I did not.  But here they are for you to learn from.

  1. Backups are the single most important thing we do, end of story.  If you screw this up, you just might be updating your resume.
  2. Practice restoring your backups on a regular schedule.  If you do not verify the backups then they essentially are useless.
  3. Use AD groups instead of individual logins for database security to reduce maintenance.
  4. DBAs should be getting at least one e-mail a day from each server.  Do not set your instances to only mail you on failure events because if there is a problem with the mail then you will just assume that everything is successful and then never receive any failure notices.
  5. It’s a good idea to use wikis for documentation and may ensure that the documentation is easily searched and actually used in the future.
  6. It’s a good idea to maintain your scripts in a source controlled library with versioning.
  7. Scan your network regularly for new instances of SQL Server to see who is installing new databases in your environment without your knowledge.
  8. Use a group policy for service accounts to ensure that the particular account is being only used on the intended server and nowhere else.
  9. Use a group policy to set all of your servers to high performance power plan.  The default is balanced allowing you to save power which sounds great for a green workplace, but why would you by a powerful server and then operate it at 50% power?  UNLEASH THE POWER!
  10. Maximum server memory should always be set on every instance, but always make sure that you leave enough memory for the OS and other necessary items on the server.  This amount will vary with every server.

Stay tuned for more items in our next installment.  Enjoy!

We Survived SQL Saturday #132, Pensacola

Relaxing in a Tallahassee Spring Hill Suites, I am reflecting on this weekend’s trip to Pensacola.  Why Tallahassee?  This SQL Learning trip was turned into a long weekend with my wife.  We decided to split our long ride home in half and enjoy an extra day unwinding, relaxing in the pool in sunny Tallahassee especially since we did not get to enjoy the beautiful beaches of the Gulf Coast.  We are already planning to return to Pensacola for next year’s SQL Saturday.

After yesterday’s flooding with the declaration of the state of emergency and driving around a flash flood only to find myself in an intersection that was about 18 inches deep, I can easily say that we survived SQL Saturday #132.  However, I wouldn’t trade the experience as I arrived back at the venue in time to give my first ever presentation (I left because I was soaked from head to toe in order to put some fresh dry clothes on).  I also got to spend some time with a couple of great MCMs and meet a handful of new people to add to my #SQLFamily.

Next week, after I return home from this trip, I will blog some of the things I learned in some of the sessions and the pre-con.  Until, then relax and enjoy the rest of your weekend!

SQL Saturday #132 Pensacola, My First Presentation!

Welcome to Pensacola: home of the flash floods, torrential downpours, and wonderful people! Blogging live from SQL Saturday #132 after giving my world premier first presentation and my adrenaline is through the roof right now. I won the “Funniest Presentation Award” and received the Zombie Survival Guide. What a rush! But it almost didn’t happen!

After the first couple of sessions this morning, I went back to the hotel room to change into dry clothing and change my socks and shoes, yes I was serious about the flooding. I put some bags on my dry shoes and headed back to make it back in time for my session. Enter the flash flood around the Pensacola State College, so much so that people were stranded in the middle of the road outside of the building that we were located in. I drove around the perimeter of the college and almost got stuck in an intersection, that was very scary. I have never been stuck in a flood before and it was my wife’s fairly new SUV, that would not have been good for the vehicle or me.

Flood waters were not going to keep me from my first presentation as I put a fair amount of work into it. The audience laughed at all the right places, these people get me. I love #SQLFamily, what a great community! I will post the slide deck when I get back to the hotel and will blog more as the week goes on. Enjoy!

20120609-143134.jpg