SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

SQL Homework – December 2017 – View the log

homework-clipart-homework-alert-free-images-at-vector-clip-art-onlineLast homework of the year. Last month was to create a view. This month it’s time to take a look in the log! No, not the transaction log. The SQL Server Log. Where error events, backup events, startup events etc, etc get stored. If something goes wrong on your instance, or someone is having a hard time connecting to it this is one of the first places you should be looking at. Given the importance of the subject, for the first time, I’m putting two sets of work. One for Jr/Mid level individuals and one for more Sr. level individuals.

Jr & Mid level people

  • Open the log in the GUI. 50 points
  • Find the last time your instance was restarted and review the entries. 15 points
  • See what other types of entries there are. 10 points
  • Figure out how to change the settings to write both successful and unsuccessful logins to the log, just one or the other, or neither. 15 points
  • Figure out how to modify the number of log files kept. 10 points


Sr level people

  • View the log files using a text editor. (Not in the SQL GUI.) 10 points
  • Find or write a script that will search the error log programmatically. 40 points
  • Figure out how to turn off the backup entries. 20 points
  • Figure out how to write to the log. 10 points
  • Do you have a way to automatically check your log for issues? Should you? If you don’t, develop a plan to do so. 20 points and you are less likely to have a resume generating event.


My name is Kenneth Fisher and I am Senior DBA for a large (multi-national) insurance company. I have been working with databases for over 20 years starting with Clarion and Foxpro. I’ve been working with SQL Server for 12 years but have only really started “studying” the subject for the last 3. I don’t have any real "specialities" but I enjoy trouble shooting and teaching. Thus far I’ve earned by MCITP Database Administrator 2008, MCTS Database Administrator 2005, and MCTS Database Developer 2008. I’m currently studying for my MCITP Database Developer 2008 and should start in on the 2012 exams next year. My blog is at www.sqlstudies.com.


Leave a comment on the original post [sqlstudies.com, opens in a new window]

Loading comments...