http://www.microsoft.com/technet/scriptcenter/scripts/sql/sql2005/default.mspx
Sample scripts and stored procedures for managing and working with SQL Server 2005.
Buffer CacheSample scripts and stored procedures for managing and monitoring the SQL Server buffer cache. CPU and OptimizationSample scripts and stored procedures for optimizing CPU performance in SQL Server. Indexes and IndexingSample scripts and stored procedures for working with SQL Server indexes. Input/OutputSample scripts and stored procedures for managing and monitoring input and output in SQL Server. Performance (General)Sample scripts and stored procedures for managing and monitoring general performance issue in SQL Server. Procedure CacheSample scripts and stored procedures for managing the SQL Server procedure cache.
SQL TextSample scripts and stored procedures for working with SQL text. SQLOSSample scripts and stored procedures for working with the new SQL Server Operating System Layer. TempdbSample scripts and stored procedures for working with the tempdb system database. Transactions and LoggingSample scripts for working with SQL Server transactions and locks. WaitstatsSample scripts and stored procedures for working with SQL Server waitstats.
Following are links to whitepapers on SQL Server 2005 Best Practices and performance troubleshooting
/,./,./,./,./