Posted by: Manpreet Singh on: July 21, 2009
Windows Server 2003 is considered to be one of the most scalable operating system when running on 64 bit platform. But still there are some consideration which must be consider before migrating SQL Server to 64 bit enviournment
Posted by: Manpreet Singh on: July 21, 2009
Today, 64-bit processors have become the standard for systems ranging from the most scalable servers to desktop PCs. The way to take full advantage of these systems is with 64-bit editions of Microsoft Windows products and Microsoft SQL server.
The 64-bit systems offer direct access to more virtual and physical memory than 32-bit systems and process more data per clock cycle, enabling more scalable, higher performing computing solutions. There are two 64-bit Windows platforms: x64-based and Itanium-based. X64 solutions are the direct descendants of x86 32-bit products, and are the natural choice for most server application deployments—small or large. Itanium-based systems offer alternative system designs and a processor architecture best suited to extremely large database and custom application solutions. Microsoft SQL Server 2005 Standard and Enterprise Editions both offer dramatic improvements in memory availability and parallel processing performance when compared to SQL Server software running in a 32-bit environment. We need to understand that Applications and data are growing in complexity and size. Many applications running on 32-bit platforms today are approaching or have exceeded the limits of the platform, specifically regarding the number of processors and addressable memory. Advanced DBMS capabilities, particularly in the areas of scalable architecture and high availability, have become a business necessity and are increasingly common as more organizations gather and analyze data from numerous data sources, and serve that data to growing numbers of business users and organizations are consolidating servers to simplify critical data center operations.
The primary differences between the 64-bit and 32-bit versions of SQL Server 2005 are derived from the benefits of the underlying 64-bit architecture. Some of these are:
Migration
The migration of database from SQL Server 2000 (32-bit and 64-bit) and SQL Server 2005 (32-bit) to SQL Server 2005 (64-bit) is a straightforward task, as both share the same on-disk data and log file format. The mechanisms available include using detach and attach or backup and restore.
Detach/Attach
System-provided stored procedures are available to detach (sp_detach_db) the database from the 32-bit version, then attach (sp_attach_db) to the 64-bit instance. This can also be done in a GUI environment by using SQL Server Management Studio.
Backup/Restore
The same process for a standard backup and restore can be used to migrate data to the 64-bit platform, by simply restoring 32-bit backup files to the 64-bit platform. This can be performed by using Transact-SQL commands or via GUI tools. It is also possible to migrate data back to the 32-bit version for SQL Server 2005 databases. However, downgrading to SQL Server 7.0 from SQL Server 2005 (64-bit) is not supported. SQL Server 2005 can also perform the migration by upgrading an existing SQL Server 2000 64-bit database when performing an “in-place” install. Because SQL Server 2005 tools can be installed onto the 64-bit platform, it also possible to use the Copy Database Wizard (CDW) to bring a SQL Server 2000 database over from another server and attach it automatically. CDW can also script-out the SQL logins and passwords from the SQL Server 2000 installation and re-create them automatically on the destination 64-bit SQL Server. This also applies to any user-defined jobs that were related to the upgraded database.
Compatibility issues
SQL Server 2005 (64-bit) is fully compatible with SQL Server 2005 (32-bit), enabling easy integration in existing infrastructure while providing support for the extended 64-bit hardware. The product offers complete compatibility with the SQL Server 2000 (32-bit and 64-bit) database and transaction log files. Unlike SQL Server 2000 (64-bit), SQL Server 2005 management tools and client components are available on 64-bit either natively or in WOW. There are a number of enhancements and component changes with the 64-bit versions of SQL Server and Windows Server 2003. Components that used to be part of SQL Server set up, such as Microsoft Data Access Components (MDAC), Distributed Transaction Coordinator (DTC), and Microsoft Management Console (MMC), are now installed as core components as part of the Windows Server 2003 set up. This enables SQL Server 2005 (64-bit) to take advantage of these operating system resources.
Reporting Services considerations
SQL Server 2005 Reporting Services supports 64-bit processors, including the Intel Itanium2 processor and also the x64 architecture from AMD and Intel. On x64 systems, Reporting Services can run in both native 64-bit mode and also the 32-bit Windows on Windows (WOW) subsystem. In general, 64-bit systems running at the same processor speed will not increase the throughput of reports. Instead, the primary benefit is that users can view and export the output of larger reports. You might get better throughput on 64-bit machines at higher workloads, because contention
Posted by: Manpreet Singh on: July 14, 2009
Have you encountered a problem due to deletion of the contents of C:\Windows\Installer folder? Several times the administrators delete the contents of this folder to make the space free without knowing the consequences. All the previous installation files get stored to this folder specifically the update\patches files which comes in to use when we upgrade the patch or any specific application. So please do use the “Installer cleanup utility” provided by Microsoft for cleaning C:\Windows\Installer folder.
In this article I will discuss as how to resolve the problem if you are unable to install the SQL Server 2005 SP3 due to previous installer files deleted. We have recently faced this when we were trying to update our Database Service pack. One of our administrators deleted the contents of C:\Windows\Installer folder to mitigate the space crunch faced on the system volume(C: Drive) and resulting which we were unable to install the SQL Server 2005 SP3.
If you are facing the same issue then the solution goes as follows-
1.) Start the SQL Server 2005 SP3 installation. When it fails refer to the log file.
2.) You can refer the installation log stored at “C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix\SQLTools9_Hotfix_KB955706_sqlrun_tools.msp.log” the path may differ according to your installation.
3.) When you will refer this log file you will find it is unable to find one .msp file which ideally should be in .\windows\installer folder. This file name is different for each n every server. Now the work around will be as below-
“Download the SQL Server 2005 SP2 if you have it already then it’s cool. Extract the *.exe by using /extract or /x switch to a folder. Now search for “sqlrun_sql.msp” file. Rename this file by copying it somewhere else to the same name which the log file is showing missing in c:\windows\installer folder and paste the file to C:\windows\installer folder.
4.) Now run the SP3 setup again. It should be completed this time. But if still fails, refer the log file again. Now what you will found that that it has found the previously missed .msp file but got struck at the second .msp file (In my case it was like this). Now the workaround is-
“Go Ahead and download SQL Server 2005 SP1 and extract it the same way as we did about SP2 now again search for “sqlrun_sql.msp” file and paste it to the c:\windows\installer and rename it to the the name which log file is showing missing.”
Now run the SP3 setup again and this time you should be successful.
The Sample Installation Log File
*************************************************************
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: UIText 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: Media 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: Shortcut 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: SxsMsmGenComponents 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: MsiSFCBypass 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: RemoveFile 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: RemoveRegistry 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: Environment 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: _sqlUpgradeFile 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: _sqlUpgradeRegistry 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: _sqlUpgradeFolders 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Note: 1: 2262 2: _MsiPatchTransformView 3: -2147287038
MSI (s) (44:80) [14:29:07:518]: Opening existing patch ‘C:\WINDOWS\Installer\2691b4.msp’.———-“In first failure this msp file was causing failure.”
MSI (s) (44:80) [14:29:07:518]: Opening existing patch ‘C:\WINDOWS\Installer\389d4c59.msp’.———“In second failure this msp file was causing failure.”
MSI (s) (44:80) [14:29:07:518]: File will have security applied from OpCode.
MSI (s) (44:80) [14:29:14:394]: Original patch ==> d:\604b2713b936ee0404\HotFixSQL\Files\sqlrun_sql.msp
MSI (s) (44:80) [14:29:14:394]: Patch we’re running from ==> C:\WINDOWS\Installer\8ecaac.msp
MSI (s) (44:80) [14:29:14:394]: Opening existing patch ‘C:\WINDOWS\Installer\4208e404.msp’.
Posted by: Manpreet Singh on: July 9, 2009
Basic hardware requirement
Prerequisites
Rights needed for cluster administrator service account
Firewall considerations for SQL server clustering
Installing cluster service
Creating a Clustered Microsoft Distributed Transaction Coordinator
Enabling Network MS DTC Access
Testing the Server Cluster
Cluster validation wizard
The Cluster validation wizard checks following thing to make sure windows server cluster works properly.
Changing the Cluster Service Account Password
Changing the password is a completely online operation using the command-line CLUSTER.EXE with the /changepassword option
cluster /cluster:clustername /changepassword:newpassword,currentpassword /test /verbose
This tests that the password can be changed successfully.
You can use five options when changing the password and you can combine them:
Adding a New Disk to the Cluster
Changing the Quorum Disk
To use Cluster Administrator to change which disk the quorum uses, follow these steps:
Installing SQL server cluster on windows clustering
Testing the Failover Cluster
Administrating SQL server Cluster
Posted by: Manpreet Singh on: June 30, 2009
As we all know that collation is a important part of Sql server storage engine. The collation defines who data is stored in Sql Server. The physical storage of character strings in Microsoft® SQL Server™ is controlled by collations. A collation specifies the bit patterns that represent each character and the rules by which characters are sorted and compared. It can have following characteristics
We can use the sp_helpsort stored procedure to find out the collation of our server
Old versions like SQL Server 7.0 and SQL server 6.5 doesn’t support databases that have multiple collations. Therefore, all the databases that we create in SQL Server 7.0 use the default collation. SQL Server 2000 and later supports multiple collations. SQL Server 2000 databases can have collations other than the default collation. Additionally, SQL Server 2000 also supports columns that have collations other than the collations of the databases where they were created. in SQL server 7.0 if we need to change the collation of any database then the only way is to create database and all the objects on the destination server and then transfer the data by using DTS or the BCP utility.
Changing collation of database running SQL Server 7.0
To transfer a database from a computer that is running SQL Server 7.0 to a computer that is running SQL Server 7.0 and that has a different collation, follow these steps:
Changing collation of database running on SQL Server 7.0 to SQL server 2000
To transfer a database from a computer that is running SQL Server 7.0 to a computer that is running SQL Server 2000 and that has a different collation, follow these steps:
Points to remember:
Changing collation of database running on SQL Server 2000 to SQL server 2000 or later
To transfer a database from one collation in SQL Server 2000 to a different collation in SQL Server 2000, follow these steps:
Please note that the following methods do not change a database’s collation:
Posted by: Manpreet Singh on: June 26, 2009
Before Install
Create at least one new Active Directory account for SQL Server.
This is best practices, and a popular shortcut is to run all of the database servers under the same service account. I’ve run into two problems with this approach. First, I’ve had a sysadmin repeatedly fat-finger the service account password, thereby locking out the service account. When all of the SQL Servers suddenly run into service account problems, that are a really ugly outage.
Second, there have been times when I’ve needed to give permissions to a specific SQL Server that other servers shouldn’t get. If xp_cmdshell is enabled, then DOS commands will be run with the SQL Server’s service account permissions. I hate giving any more permissions than necessary, so if a user needs to write to remote locations using xp_cmdshell, it’s nice to lock down the permissions on that one database server’s account instead of enabling every SQL Server to write to that remote location.
I say “at least one new account” because best practices dictates using separate accounts for the database service, fulltext service, agent, etc. I’ll slack a little there and share the same account sometimes, especially on development boxes.
Configure local security settings for the SQL Server 2005/2008 service account.
Go into Local Security Settings (click Start, Run, type SECPOL.MSC and hit enter) and click Local Policies, User Rights Assignment.
In the permission “Perform Volume Maintenance Tasks”, add your SQL Server service account (or a domain group if you use that). This enables SQL 2005’s Instant File Initialization, which lets SQL Server instantly grow data files without erasing the physical disk first. This is a huge performance gain for large databases like data warehouses.
In the permission “Lock pages in memory”, add your SQL Server service account or domain group. This lets SQL Server keep all of its data in physical memory instead of swapping it out to disk.
If the SQL Server uses SAN storage….
Update the HBA firmware. Downlevel HBA firmware has caused me all kinds of nasty problems, especially in clustered servers. Generally, these updates can’t be done online while the server accesses data, so it’s better to get the code up to date before the box goes into production.
Set up multipathing drivers. Sometimes this is done by the storage team, but the DBA should get involved enough to understand whether the multipathing is active/active or just failover.
Test the multipathing & failover. Start a huge file copy to each array, and do them all simultaneously. Go into the datacenter and pull one fiber cable out. Watch to make sure the file copy continues. Some SAN drivers will take 10-15 seconds to fail over, but the file copies should not be disrupted, period. If they’re disrupted, the multipathing didn’t work. Then plug the cable back in, and pull another cable. Again, the file copy should continue. Finally, while a file copy is running, ask the SAN admin to disable one of the SAN zones for the server – that way, the fiber cable will still be lit up, but the path to the storage will be gone. (This is a tougher failover method than just pulling the fiber.)
If the SQL Server uses iSCSI storage….
Set up teaming software. Database servers can’t rely on one single network connection for iSCSI any more than a fiber-connected SAN can rely on one single host bus adapter. Ideally, the two network cards will be connected to two different switches for redundancy, but at the very least, we need two network cards. The teaming method can be active/active (meaning 2 gigs of throughput for two teamed 1 gig nics) or active/passive.
Test the multipathing. In my experience, I’ve usually seen active/passive on a per-array basis – meaning, if you have two different iSCSI drive letters, then the teaming or multipathing drivers will put each drive on its own network card. The EMC and LeftHand multipathing appears to do this by default. Start multiple simultaneous drive copies and go into Task Manager, in the Network tab. Look at the bandwidth used by each network card. If a network card is sitting idle, then you’re leaving performance on the table. Now is the time to tweak the multipathing software and ask questions of the vendor – it’s easier to troubleshoot file copy performance than it is to troubleshoot SQL Server performance.
Test the failover. As with the fiber cable testing, start multiple simultaneous file copies to/from the network drives and pull one network cable out. If the file copy fails (if Windows throws an error) then SQL would have crashed. Tweak the teaming software until it can fail over seamlessly, and ideally it should fail over back and forth and go back to higher bandwidth levels as the networks come back online.
Microsoft KB article 929491 covers some of this in technical detail, but the Microsoft Exchange Team blog does a much better job of explaining why disk partition alignment is important for performance. Use this command in Diskpart.exe:
CREATE PARTITION PRIMARY ALIGN=1024
The 1024 number will work with every major SAN out there. Gurus can use smaller numbers when they know a specific SAN very well, but small numbers only save you a few hundred kilobytes in the entire disk. Be safe, be sure, and use 1024, and you won’t get burned if the underlying SAN structure changes, like with today’s virtual storage.
These management tools can be found in Add/Remove Programs, Add/Remove Windows Components, Management. They need to be installed before the SQL Server install starts because SQL will only create the monitoring mechanisms if SNMP & WMI are already installed.
For 32-bit servers, configure AWE and PAE.
One of my favorite sites, SQL-Server-Performance.com, has the most straightforward explanation of how to configure these obscure settings in boot.ini:
You can read more about AWE and PAE at SQL-Server-Performance, who does a better job of explaining this than I ever could.
I’ve been through two separate Microsoft SQL Server health checks done by very, very intelligent MS guys, and I got two different opinions about page file size. We did a lot of escalation at Microsoft, and I got the best answer from J.C. Armand, a great SQL resource.
For advanced troubleshooting, there has to be a page file on the C drive big enough to do a memory dump. This isn’t a strict requirement, but if SQL Server ever crashes hard, that memory dump will be invaluable. I have actually had this happen, and I’ve even been able to reproduce the crash on several different servers – we even did it at the Microsoft Technology Center in Chicago. It was some stunningly bad code coupled with an ugly database, and I got a lot of laughs out of that. Anyway, the point was we needed a memory dump to troubleshoot it, and the only way we could get that was a giant C drive page file.
The page file doesn’t have to be 1.5x memory in order to do that, but the consensus among the experienced DBAs was to start the server at a high page file size, then watch the utilization carefully over time and scale the page file size down as necessary.
After The Install
Starting with SQL Server 2005’s Service Pack 2, Microsoft releases hotfixes in cumulative packs. These updates do more than just fix bugs: they improve how SQL Server performs. These updates are free performance benefits – and who doesn’t like that?
Paul Randal wrote an excellent blog post on how to tell if instant initialization is enabled. Follow the instructions in his post, and you’ll know for sure. (While you’re there, subscribe to his blog – it’s chock full of SQL-y goodness.)
By default, the TempDB files are put on the same drive as the SQL Server binaries. Even if the user chooses a custom install, TempDB still goes on the same drive as the other data files, and that’s not a good idea either. Instead, the TempDB data files should be on their own dedicated drive.
Fix this by first moving TempDB to its own drive. In this example, I put the data file on the T drive and the log file on the L drive. (Be aware that the directory paths must already exist.)
use master
go
alter database tempdb modify file (name=’tempdev’, filename=’T:\MSSQL\DATA\tempDB.MDF’, size = 1mb)
go
alter database tempdb modify file (name=’templog’, filename=’L:\MSSQL\LOGS\templog.LDF’, size = 1mb)
go
I only set a 1mb file size because SQL Server does something tricky: even though we’re telling it to use a different drive letter, it will look for this amount of free space on the drive TempDB currently uses! If SQL Server was installed on the server’s C drive, for example, and we try to create a 10gb TempDB file on a T: drive, that SQL command will fail if there isn’t 10gb of free space on the C drive. Yep, it’s a bug – get over it.
After this code runs, restart the SQL Server. That will create the new TempDB file on the new drive. Manually delete the old TempDB file on the original drive, because SQL Server doesn’t delete that itself.
Now that TempDB is on the right drive, expand it to the full size you want, and then create one additional TempDB data file per core. Here’s the code to create one additional TempDB data file – you can modify this for more files:
USE [master]
GO
ALTER DATABASE [tempdb] ADD FILE ( NAME = N’tempdev2′, FILENAME = N’T:\MSSQL\DATA\tempdev2.ndf’ , SIZE = 10GB , FILEGROWTH = 0)
GO
The data file creation should only take a couple of seconds – if it takes more than ten seconds, then instant file initialization isn’t configured correctly. We talked about this back in the pre-installation checklist, so go back and revisit that before you create the next TempDB file. Fix the security to allow for instant file initialization now – it has a huge performance impact on database growth.
Assuming that one file growth only took a couple of seconds, then go ahead and create the rest of the TempDB data files.
Notice that I don’t have filegrowth enabled. You want to proactively create the TempDB files at their full sizes to avoid drive fragmentation. If you have a dual-cpu quad-core server (8 cores total) and an 80-gb array for TempDB data, you would create eight 10gb files for TempDB. That way, each file is contiguous, all laid out in one big chunk. If you create them as smaller files and let them autogrow, then the disk will be fragmented all over the place because the files will be growing at random times. Plus, you could end up with differently sized TempDB files if one of them happened to grow faster than the rest. That’s why I pre-grow all of the TempDB files ahead of time and get them at exactly the right size.
Sounds easy, right? Go into SQL Server Management Studio, right-click on the server name and click Properties, go into Memory, and just configure it. There’s only a couple of fields – how hard could it be?
Oh, this screen is full of danger and pitfalls.
First, that tricky checkbox that says “Enable AWE”. You might think you only have to check that box if you’re using a 32-bit server with more than 4 gigs of memory, but nooooo. According to a couple of Microsoft folks I’ve spoken with (and I don’t mean first line support), that checkbox causes SQL Server to handle memory differently – not just enable AWE. In fact, that box should be checked on 64-bit servers, too – any box with more than 4 gigs of memory!
Second, the minimum and maximum memory amounts are important, especially since we gave the SQL Server account the permission to lock its pages in memory. If other applications are running on this server, we need to specify how much memory we want SQL Server to take.
Ideally, no one would ever remote desktop into a SQL Server and run programs. Unfortunately, this happens, and we have to plan for it by leaving enough free memory for people to run things like SQL Server Management Studio. When I’m first building a server that isn’t running any other applications at all, I like to leave 10% of the memory free, or 4gb, whichever is larger. Then I monitor the free memory over the course of a month or two, and adjust it up or down during the next outage window.
If the server does multiple duties like act as a web server or application server, we have to be much more conservative with memory. Application owners never seem to know how much memory they’ll really use in production: SAP BW’s Netweaver, for example, tends to use anywhere from 10% to 50% of the memory on our production server, and it’s tough to predict. As a result, we have to leave the SQL Server’s memory allocation at just 50% of the available memory on the server.
The only way to know the right answer long term is to use Perfmon or a performance monitoring utility to watch the server’s free memory.
Even if you chose this during setup, we need to revisit it because SQL Server puts both the data files and the log files in the same directory. In SSMS, right-click on the server name and click Database Settings. The paths for the data files and log files can be configured from there.
Of course, this assumes that we have separate drives for the data and log files, which is the right way to go for performance purposes.
Configure Database Mail with public & private profiles.
Database Mail is a pure SMTP solution that beats the daylights out of SQL 2000’s SQLmail. It doesn’t require Outlook to be installed on the database server, doesn’t need any MAPI code, and works with any company email server that can be accessed via SMTP.
There’s plenty of sites on the web that explain how to configure Database Mail, but I want to address something: be aware that developers can use Database Mail for things that SQL Server shouldn’t be doing. For example, they may decide to use Database Mail to send out mass emails to your end users or customers. There’s nothing technically wrong with that, but it increases the load on the database server and it sends all outgoing email with the SQL Server’s Database Mail account.
At our shops, we use internal emails like (servername)@ourcompany.com to identify which server is sending the database mail. Those email addresses make sense to us because we just need to know where the alerts are coming from – we would never hit Reply to a server-generated email.
However, if developers use SQL Server to send out emails directly to customers, those customers will indeed reply. I had a nasty problem where a couple of developers decided to purge old customer accounts, and they used SQL Server’s Database Mail to broadcast an announcement to those users. The email read something like, “You haven’t used your account in 30 days, so we’re deleting it. Please contact us for questions.” Of course a lot of customers got aggravated and sent some nastygram replies, which arrived in the IT team’s inboxes, who had no idea what was going on. After some confusion, we were able to track down the guilty party, but those emails never should have gone out from the IT staff.
Bottom line: if you decide to use Database Mail (and you should), consider setting up separate private and public email profiles. The public email profile used by the developers should be sent from the developer management team’s group email address – that way, they can address any replies themselves.
Configure SQL Server Agent’s failsafe operator.
After configuring Database Mail, create at least one SQL Server Agent operator. This operator’s email address should be a distribution list for the database administrator group. Even if the company only has one DBA, never use an individual person’s email address – use a distribution list instead. When the DBA goes on vacation or gets a job at another company (or heaven forbid, gets fired), it’s easier to add someone to a single distribution list instead of modifying operators on dozens or hundreds of servers.
Then right-click on the SQL Server Agent, configure the alerting system to use Database Mail, and set up that DBA group as the failsafe operator. That way if anything happens and SQL Server doesn’t know who to alert, it can alert the group.
Create default alerts for severities 16 through 25.
SQL Server’s alerting system has the ability to notify operators whenever major things break inside the database. These include running out of space in log files, backup failures, failed logins and other things DBAs just need to be aware of. Don’t rely on this as your only SQL Server monitoring system, because it only sends alerts when it’s too late to take proactive action, but still, it’s better than nothing.
The below script will set up an alert for severity 16. Copy this and repeat the same thing for 17-25, but change ‘Database Team’ to be the name of your default operator. Notice that @delay_between_responses is set to 60 – that means if it sends out an alert, it won’t repeat that same alert for 60 seconds. This is useful because when a database runs out of drive space, for example, all hell will break loose for a minute or two, and you don’t want hundreds of emails and pages per minute.
USE [msdb]
GO
EXEC msdb.dbo.sp_add_alert @name=N’Severity 016′,
@message_id=0,
@severity=16,
@enabled=1,
@delay_between_responses=60,
@include_event_description_in=1,
@job_id=N’00000000-0000-0000-0000-000000000000′
GO
EXEC msdb.dbo.sp_add_notification @alert_name=N’Severity 016′, @operator_name=N’Database Team’, @notification_method = 7
GO
Install the SQL Server 2005 Performance Dashboard Reports.
These are an insanely cool and free extension for SQL Server Management Studio.
You run the setup.exe on your personal workstation, and then you have to execute the setup.sql script on each server that you want to monitor. It only takes a few minutes, but the information that it gathers will help you manage your server better throughout its lifetime.
Set Up Maintenance Plans
This is where things start to get different on a shop-by-shop basis. Some places use native backups, some places use backup compression software, some places use index defrag software, and so on
Benchmark It, and Find the Slowest Link
Before it goes into production, load test and stress test it to find where you’ll need to improve performance down the road. Before it goes live, this is your one chance to really bang the daylights out of it without anybody complaining.