<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>architecture</title>
        <link>http://blog.kellybrownsberger.com/category/11.aspx</link>
        <description>architecture</description>
        <language>en-US</language>
        <copyright>kellyb</copyright>
        <generator>Subtext Version 2.1.0.5</generator>
        <item>
            <title>Important SQL Server Database Properties and JumpstartTV</title>
            <link>http://blog.kellybrownsberger.com/archive/2009/01/23/40.aspx</link>
            <description>&lt;p&gt;&lt;a href="http://www.jumpstarttv.com" target="_blank"&gt;JumpstartTV&lt;/a&gt; is another one of these sites that are popping up that offer short and sweet tech screen casting.  They offer 5-10 minutes videos covering the basics of a narrow technical topic.  JumpstartTV focuses primarily on SQL Server topics, but they do have other material from time to time.  I like this because I’m not really a database guy.  I’ve designed a built a lot of applications, and therefore I fully appreciate the role the RDBMS plays in an system architecture, but my mind thinks in objects – not relational schema.&lt;/p&gt;  &lt;p&gt;Today’s topic was &lt;a href="http://www.jumpstarttv.com/media.aspx?vid=505&amp;amp;" target="_blank"&gt;SQL Server Properties to Avoid&lt;/a&gt; and I’m going to leave a quick crib note summary because this is good stuff to have handy in a checklist format.&lt;/p&gt;  &lt;h3&gt;File Initial Size and Autogrowth&lt;/h3&gt;  &lt;p&gt;By default SQL Server picks Initial Size: 2MB and an autogrowth of 1MB.  For anything beyond tiny applications, these settings will cause significant I/O thrashing and disk fragmentation as the database grows.  Set these properties to values that make sense for the database size you’re anticipating to go into.  10% autogrowth is a good starting point and the number of files should match the number of hard drive spindles you have.&lt;/p&gt;  &lt;h3&gt;Options – Auto Close&lt;/h3&gt;  &lt;p&gt;Turn it off.  This will close all connections from the pool and deallocate the database from memory and cause the database to spin down.  THis will cause performance problems when it has to spin back up for the next user to re-enter&lt;/p&gt;  &lt;h3&gt;Options – Auto Shrink&lt;/h3&gt;  &lt;p&gt;Turn it off.  It’s best to create a job to do a shrink at night.  Auto Shrink will arbitrarily pick a time to doing this resource intensive process, which could be at a bad time for your application.&lt;/p&gt;  &lt;h3&gt;Options – Recovery Model&lt;/h3&gt;  &lt;p&gt;Pick the one that makes sense.  By default “Full” gives you point-in-time recovery which might be overkill for you application.  “Simple” requires much less overhead and yield much greater performance, if it can support your business.&lt;/p&gt;  &lt;h3&gt;Options – Compatibility Level&lt;/h3&gt;  &lt;p&gt;While this doesn’t necessarily impact performance or system strain, picking the highest possible level of compatibility for your requirements is the right thing to do.  I believe SQL Server will default to the lowest compatibility level (not sure about that).&lt;/p&gt;  &lt;h3&gt;Governance&lt;/h3&gt;  &lt;p&gt;You can create Policies in SQL Server 2005 to detect (and correct) issues with servers/dbs of interest.  You can also script all of these settings, or apply these changes through SQL Server Management Studio.&lt;/p&gt;&lt;img src="http://blog.kellybrownsberger.com/aggbug/40.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>kellyb</dc:creator>
            <guid>http://blog.kellybrownsberger.com/archive/2009/01/23/40.aspx</guid>
            <pubDate>Fri, 23 Jan 2009 16:22:21 GMT</pubDate>
            <wfw:comment>http://blog.kellybrownsberger.com/comments/40.aspx</wfw:comment>
            <comments>http://blog.kellybrownsberger.com/archive/2009/01/23/40.aspx#feedback</comments>
            <wfw:commentRss>http://blog.kellybrownsberger.com/comments/commentRss/40.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>