Hey,
Updates are few and far between at the moment due to my own learning, but this one I’ve had a few questions on recently, so I thought it might be worthwhile sticking up a quick post. Building a server to host a SQL database is slightly different to building a regular App server, so here’s a copy and paste from my standard routine, so apologies for the alignment!. Obviously these are guidelines and are subject to change depending on your requirements, but these are a good starting point if you find yourself on your own!
The reasoning behind setting it up this way is that the server will genuinely perform better than if the setup is given a little more attention. Two pictures below of Perfmon, the first one on a server set up by hitting next x infinity, the second set up using the guide below. They were performing the exact same tasks at the exact same time, on exactly the same hardware (including the same SAN). So you can see it gives you a bit of breathing room.
As always, any questions/comments let me know and I’ll do my best to answer them. Good luck!
Pre Install (Usually a kindly System Administrator)
Notes on Installing
Post Install (Usually a lowly DBA)
3. Enable AWE on 32 bit systems with more than 4GB RAM (Management Studio -> Right click instance -> Properties -> Memory
4. Set Maximum server memory to 2GB below installed RAM
5. Set Minimum server memory to 2GB below Max
6. Set Default database paths to folders on your Data/Log partitions (Management Studio -> Right click instance -> Properties -> Database Settings)
7. Create Maintenance plans for Full backups, Log backups, Backups clean-up, DBCC checks and Job History clean-up
8. Configure SQL Agent operator, database mail and alerts on jobs
9. Move system databases to your Data/Log drives
10. Create TempDB.ndf files (1/4 the amount of cores. So 8 core has 2 TempDB files. More if you see bottlenecks)
11. If possible extend your TempDB mdf/ndf files to ¼ of the size of your largest DB. Otherwise extend to reasonable amount considering drive space
12. Take SQL Instance offline and run Power Defragmenter(GUI For Contig) on your Data and Log drives to make them contiguous
13. Take everything back online and have at it!