Monthly Archives: November 2011

Policy Based Management Simple Tip!

I’m just starting out looking at Policy based management for SQL Server 2008.  I haven’t had a large SQL Server base to manage recently so I haven’t really had a chance to use it.  Where I’m at currently I’m the sole DBA and have about 300+ Databases that have had less than perfect maintenance and setup done to them so I figured I would test out PBM to get some things in order.

I noticed that many of the Databases were set to grow in 1mb increments.   That’s fine and dandy to make a fast Auto Grow time but my VLF files are off the charts on this server. I know the real solution is managing the space and growing when I want to in size/chunks when I want to.  For right now though with the 50 other tasks I have on my plate I wanted to knock this one out quickly.

Adding the policy was easy this post does a great job of showing you how to do this.    The problem I ran into was finding the proper Facet.   In this case you can find @growth in the Data File Facet.   The second mistake I made is I tried to say in the check condition I wanted to find everything that’s not equal to 512.  I figured that would give me a list of all my Databases out there.  But that’s not what PBM wants.  PBM wants you to tell it what the number should be and it will tell you who doesn’t match.  When I said not equal it wouldn’t let me apply that after I got my list.  Once I changed the rule to = 512 it found me all the databases I was looking for and allowed me to apply the change to set them to grow at 512 instead of 1.

Make sure when you are creating a PBM policy make your items equal to what you are looking for instead of not equal.

Thank you to @sacSqlDude and @johnsterrett on twitter for helping me out today and telling me what I needed to do!

Advertisements

SQL Family

Thomas Larock aka @SqlRockstar (Blog|Twitter) has put on a monthly meme with a different topic each month.  I’ve decided to participate in this topic as it’s an important aspect of my life.Thom asks “Write about what #sqlfamily means to you.”#SqlFamily started for me way back in 2003.  I was a DBA at a large health care organization and I heard about a SQL users group starting in my area I wanted to check it out since any help I could get in my current role as a DBA would be great.  I started to attend the meetings and found others that enjoyed SQL Server as well.  This then lead me to start presenting and shortly after attending my first PASS Summit.  At the summit I met even more people like me that not only enjoyed SQL Server but gave of their time freely to help others.For me the #SQLFamily has always been about people helping people.  The community is very giving to everyone.   There is no membership in this family, it’s never a question of have you been here before or are you a “regular”  it’s the place that welcomes you with open arms regardless of who you are or what you do.  If you have a problem we’ll help you try and solve it.  It’s that simple it’s that easy.  To me that’s #SQLFamily.

The family extends so much further than a discussion forum or a specific website.  It’s there when your son/family member is in the hospital and you need some positive reinforcement.  It’s there to wish you congratulations when a new baby is born or you celebrating sending your kids off to college.  It’s people taking care of each other and looking out for one another.

To answer Thom’s original question.  #sqlfamily means people helping people.  Something I think all families should strive to do more often.