112 Chapter3•ConfiguringSQLServer2008 Summary of Exam Objectives In this chapter you’ve looked in-depth at the difference between default and named instances, seen how to change the default TCP port and the SQL Server service accounts, learned how to add startup parameters to SQL Server, and learned when to use Server Aliases—all with SQL Server Configuration Manager. You’ve also seen how to view and change serverwide options with sp_configure and SQL Server Management Studio, looked at the benefits of Database Mail over SQLMail and how to configure it, and learned how to create and manage full-text indexes in SQL Server. Exam Objectives Fast Track Instances vs. Default Instance A default instance is accessed by using the servername, and a named ˛˛ instance is accessed using servername\instancename. You can have only one default instance per server, and by default it will ˛˛ use TCP port 1433. Each instance is completely independent of any other instance and has its ˛˛ own set of services, databases, and configuration settings. SQL Server Configuration Manager You need to use Configuration Manager to change the SQL Server ˛˛ Service account to ensure that the correct permissions are assigned. To configure FILESTREAM after installation, you need to enable it in ˛˛ Configuration Manager and by using sp_configure filestream_access_level. You can change the TCP port an instance listens on by using ˛˛ Configuration Manager. sp_configure and SQL Server Management Studio You need to enable ˛˛ show advanced options using sp_configure to view all of the sp_configure options. ConfiguringSQLServer2008•Chapter3 113 Only a subset of configuration options can be changed using Management ˛˛ Studio; most can only be changed with sp_configure. AWE is used to enable SQL Server to access more than 2GB of RAM on ˛˛ 32-bit systems. Database Mail Database Mail replaces SQLMail found in versions prior to SQL Server ˛˛ 2005. It uses SMTP rather than MAPI, so you don’t need to install a mail client.˛˛ You can specify multiple SMTP accounts on different servers for ˛˛ redundancy. Full-Text Indexing All new databases are enabled for full-text indexing by default.˛˛ Once you’ve defined an index, filling it is referred to as ˛˛ populating the index. A full-text catalog is a logical grouping of full-text indexes.˛˛ 114 Chapter3•ConfiguringSQLServer2008 Exam Objectives Frequently Asked Questions Q: Do I have to install a default instance? A: No. You can install named instances on a server without having a default instance. Q: If a named instance uses dynamic port allocation how will I know which port to connect to each time? A: The SQL Browser service needs to be running on the SQL Server. It will automatically return the correct port to your connection without you having to specify anything. Q: Why shouldn’t I change a SQL Server service account using the services applet? A: Changing the service account using SQL Server Configuration Manager will assign all the file system permissions and advanced user rights needed for SQL Server to work properly. Using the services applet won’t do this and could cause problems when the service is next started. Q: Should I change SQL Server configuration settings using the Management Studio interface or with sp_configure? A: The end result is the same so it doesn’t really matter. However, sp_confgure has many more options than the interface and is easy to script so it tends to be the popular choice with DBAs. Q: I’ve enabled AWE on my 32-bit SQL Server but still can’t see more than 2 GB of RAM. What should I do? A: First, check that you’re running the Enterprise or Datacenter version of Windows. Then check in c:\boot.ini for the /PAE switch which enables Windows to see the extra RAM. If that all looks fine then check that the service account has the ‘lock pages in memory’ user right. If it doesn’t there will be an error logged to the SQL Server errorlog on startup. ConfiguringSQLServer2008•Chapter3 115 Q: I’m upgrading from SQL Server 2000 where I have SQLMail configured and Microsoft Outlook installed on the server. Why don’t I need Outllook installed for Database Mail in SQL Server 2008? A: Database Mail uses Simple Mail Transport Protocol (SMTP) which doesn’t need a client install like the older SQLMail that uses the Mail API (MAPI) and requires a mail client like Outlook to be installed. 116 Chapter3•ConfiguringSQLServer2008 Self Test 1. You’ve just started as a DBA at a company that has recently installed a dedi- cated server running both a SQL Server 2008 default instance and the database for the company’s ERP system. You want to implement a process to test the database with new SQL Server patches and service packs before they are applied to the live database. There is no budget to buy any new servers, but the existing hardware is under-utilized and you’re confident it will suffice for your short-term needs. Which of these options would meet your needs? A. Restore a copy of the live database as test on to its own disk array. Apply patches and service packs to the new database and test them before applying them to the live database. B. Install a named instance for testing. Create a database snapshot on the named instance pointing to the live database on the default instance. Apply patches and service packs to the named instance and test before applying them to the default instance. C. Install another default instance for testing and restore a copy of the live database. Apply patches and service packs to the second instance and test before applying them to the live instance. D. Install a named instance for testing and restore a copy of the live database. Apply patches and service packs to the named instance and test before applying them to the default instance. 2. Last month your company went through an exercise to standardize service accounts while you were on holiday. You’ve just restarted SQL Server after applying a service pack, and now the instance won’t start. You check the Windows Event Log and see lots of errors about not being able to open the error log. What is the most likely cause? A. The SQL Server Service account was not changed using SQL Server Configuration Manager B. The service pack failed C. Data corruption D. You don’t have the right permissions to the error log 3. You have a default instance and a named instance installed on your server. The developers are complaining that they can’t connect to the named instance from . Chapter3•Configuring SQL Server 2008 Summary of Exam Objectives In this chapter you’ve looked in-depth at the difference between default and named instances, seen how to change the default TCP port and the SQL Server. Chapter3•Configuring SQL Server 2008 Self Test 1. You’ve just started as a DBA at a company that has recently installed a dedi- cated server running both a SQL Server 2008 default instance and the database for the. to see the extra RAM. If that all looks fine then check that the service account has the ‘lock pages in memory’ user right. If it doesn’t there will be an error logged to the SQL Server errorlog