Skip to content

shannonlowder.com

Menu
  • About
  • Biml Interrogator Demo
  • Latest Posts
Menu

70-432: Database Options

Posted on May 16, 2011September 27, 2011 by slowder

Have you ever cracked open the properties for a database, and looked at all the options available on that page?

If you’re preparing for the 70-432, you might want to spend an hour looking over the options, and what they mean to how the database will run.

This is a quick overview of those options, along with some links to useful information.  This is your chance to look inside my reading list.  These are the reading materials I used to prepare for the exam.  You can start with the BOL Page for Database Properties, or you can use my quick guide and commentary.

 

Collation

This setting controls how character data will be sorted and compared.  I’m basically reading through Working with Collations in the BOL  I have a basic understanding of how collations work.  I’m not a master, but I do know that the CI in collation names means case insensitive.  CS would be case sensitive.  AI is accent insensitive, meaning are you going to treat ‘a’ different than ‘ä’?

Follow the links from the original page, absorb what you can.  I also used the page Windows Collation Sorting Styles in my preparation.

 

RecoveryModel

I’ve already covered this topic in an earlier post.  For the 70-432, you’ll need a good instinct for when to use Simple versus Full, versus Bulk Logged.  I feel pretty comfortable about when to choose each, so I’m not going to dig into any BOL articles.

 

Compatibility Level

We all know there are changes in how SQL Server behaves between versions.  If you upgrade SQL Server and simply attach older database files to the new instance, they’ll continue to use the previous database level until you set the compatibility level to current (As long as the database level is at least SQL Server 2000).

You might want to take a look at this article to see what the different modes can mean for your queries.  There are some pretty big gotchas.  WITH can become required for locking hints in your FROM clause.  You may or may not be able to INSERT records into your views.  At the minimum, you need to realize there are compatibility issues that can come from taking an SQL 2000 database and attaching it to a SQL 2008 Server.

 

Automatic

Auto Close, Create Statistics, Shrink, Update Statistics, Update Statistics Asynchronously… Basically do you want the server to do these things automatically.  While I definitely like the idea of automatically creating and updating my statistics, I believe there was less of an uproar when Alderaan was destroyed than there would be if you set your database to Auto Shrink.

Ask #sqlhelp if you’d like confirmation on that one.

I’ve never had a need to change these options, though I do have a database that’s 99% reads for web users.  I am still considering auto close on that database to free the hundreds of outstanding connections.  It’s more likely I can do that, than change how the web clients connect to the database server.

 

Cursor

Close Cursor on Commit Enabled, or “do you want to close the cursor when the transaction commits?

Default Cursor, is it Locally scoped or Globally scoped.  If you want more information, check out Scope of Transact-SQL Cursor Names.

My solution to these two option is simply ask why are you using a cursor.  Why don’t we re-write the logic and avoid the cursor?

 

Miscellaneous

The next section has a ton of options for setting how NULL values are treated, how padding is treated (trailing spaces anyone?)  This list is worth reading through at least once.  I don’t see the examiners asking you exactly how a comparison will evaluate under a certain condition, but you should be aware you can change how certain operators behave on a database level, rather than having to set behavior options at the beginning of each query.

 

Recovery

This option could be important not only during the exam, but in your day-to-day operations as a DBA.  Check out Understanding and Managing the suspect_pages Table.  This option can help you recover from problems on your disks more easily.

This is an area I’ve got to do a bit more reading.  I’m looking at several Google results for “TORN_PAGE_DETECTION versus CHECKSUM”

 

Service Broker

If you need to use Service Broker with this database, you have to turn it on first.  You can also choose whether or not you use priorities with your service brokers.  This is another area I’ll have to study more.  I know what the Service Broker is, and an idea of how it would be useful, but I’ve yet to implement a solution with it.  I’m hoping to take in a few discussions on it at an upcoming SQL Saturday or at the PASS Summit!

But for now, I’m only scratching the surface.

 

State

When you start using these options, you’re applying a good deal of control over the database.  You can set the database READ ONLY.  Useful if you want to make sure users are only reading the data.

You can see the current state of your database.  If you see something other than NORMAL listed here, you really need to know what it’s telling you.  Otherwise you’re in some real trouble!  Check out the BOL article on Database States.

Encryption Enabled, basically are you going to encrypt any data?  If so, you’ll want to begin reading Understanding Transparent Data Encryption (TDE).

Finally Restrict Access, you can limit how the database is used.  This one becomes useful when you want to do some really intense work with your database, and you need to lock down access to just your connection, or to just special users.

 

Summary

This is just a starting point to prepare for the 70-432.  There’s more information about these options than I could ever fit into a single article.  Start here, and if you have any questions, let me know.  I’ll try to direct you to more information!  Good luck with your preparation!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • A New File Interrogator
  • Using Generative AI in Data Engineering
  • Getting started with Microsoft Fabric
  • Docker-based Spark
  • Network Infrastructure Updates

Recent Comments

  1. slowder on Data Engineering for Databricks
  2. Alex Ott on Data Engineering for Databricks

Archives

  • July 2023
  • June 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • October 2018
  • August 2018
  • May 2018
  • February 2018
  • January 2018
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • June 2017
  • March 2017
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • February 2013
  • January 2013
  • August 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • February 2005
  • January 2005
  • November 2004
  • September 2004
  • August 2004
  • July 2004
  • April 2004
  • March 2004
  • June 2002

Categories

  • Career Development
  • Data Engineering
  • Data Science
  • Infrastructure
  • Microsoft SQL
  • Modern Data Estate
  • Personal
  • Random Technology
  • uncategorized
© 2025 shannonlowder.com | Powered by Minimalist Blog WordPress Theme