The following questions are intended to
Answer
Answer
Before installing Microsoft SQL Server 7, you should make sure that you are aware of the hardware and software requirements of the program. During installation, you will be prompted for specific information and will need to make decisions based on the options provided. Finally, you need to test your new installation to be sure that the setup has completed correctly. This chapter will lead you through these phases to help you successfully install SQL Server 7.
To complete the lessons in this chapter you must have
Knowing the hardware and software installation requirements before you install SQL Server enables you to select the appropriate platform on which to install it.
The Setup program
After this lesson, you will be able to
- Determine hardware and software requirements for SQL Server version 7 and the SQL Server management tools
- Determine the SQL Server installation options that are appropriate for your system
Estimated lesson time: 60 minutes
The following table describes the hardware and software requirements for a SQL Server installation. For more information about supported hardware, see the Microsoft Windows NT Hardware Compatibility List (HCL) at http://www.microsoft.com/isapi/hwtest/hcl.idc.
| Component | Requirements |
|---|---|
| Computer |
Intel and compatible systems.
DEC Alpha tm and compatible systems. |
| Memory | A minimum of 32 MB additional memory is recommended for large databases and replication. |
| Hard disk space | An installation of a new server only, with no management tools, requires 65 MB. A Typical installation requires 170 MB, and a full installation requires 180 MB. An installation of only management tools requires 90 MB. |
| File system | NTFS or FAT NTFS is recommended for server installation because of the security and recovery advantages that this file system offers. |
| Operating system | Windows NT Server 4 or Windows NT Workstation 4 with Service Pack 4, or a later service pack, Microsoft Windows 95, or Windows 98. |
| Other software | All operating systems require Microsoft Internet Explorer 4.01 with SP1 or later. |
Note
You must install Microsoft Internet Explorer 4.01 with SP1 or later in order to use SQL Server Enterprise Manager.
Caution
In general, if the hard disk of the computer has a write-caching disk controller, disable it. Unless a write-caching disk controller is designedspecifically for a database, it can seriously threaten SQL Server data integrity.
When installing SQL Server 7, the following options are available. Many of these options are bypassed if you perform a Typical installation, but you can set all of them if you perform a Custom installation.
During installation, the Setup program requires you to select a licensing mode and then to accept the terms of the license agreement. You have a choice of two licensing modes Per Server and Per Seat:
If you are unsure of which licensing mode to choose, select the Per Server option. The licensing agreement provides a one-time, one-way option to change from Per Server licensing mode to Per Seat licensing mode. For example, if you begin with one server, 30 users, and 30 Client Access Licenses and later install a second server, you can configure the second server with Per Server licensing (and then purchase 30 additional Client Access Licenses). Or you can convert the first server to Per Seat and configure the second server as Per Seat (and purchase no additional Client Access Licenses).
In order for SQL Server 7 Desktop Edition to connect to SQL Server 7 Standard Edition to perform replication or use Data Transformation Services, SQL Server 7 Standard Edition must be installed with Per Seat licensing.
Note
Workstation connections anduser connections are not the same. A workstation can run several differentclients , each using multiple user connections, with one Client Access License.
You can install SQL Server on any local hard drive and in any folder.
Default Installation Path
The default installation path for the program files and data files is C:\Mssql7
Note
Some SQL commands (such as BACKUP DATABASE TO DISK) cannot recognize embedded spaces in folder names. For this reason, use "8.3" style foldernames to ensure compatibility.
You can either accept the default installation path for SQL Server or specify another drive or folder for the program files, the data files, or both. The Setup program also
Caution
Make sure that you have sufficient disk space available on the drive that you specify. If you change the program or data file locations, do not include a space in thename of the new folder. Also note that a Typical installation requires approximately 72 MB of space on the system drive, regardless of the location of the program or data files.
Program Files
The program files folder is the root folder where the Setup program creates folders that contain all of the program files. Program files include the relational database engine,
Data Files
The data files folder is the root folder in which folders for databases, transaction log files, system log, backup files, and replication data files are created. The Setup program creates database and transaction log files for the master, model, msdb, pubs, Northwind, and tempdb databases in this location. You can specify other locations for data files that are created after installation. These files should be located on a drive that has a sufficient amount of extra space because, unlike program files, data files increase in size over time.
During installation, you choose the code page containing the character set that supports the language you use. A code page stores the codes that map to the character set you choose. You choose one character set for all databases on a server. A
character set
is a set of 256 uppercase and lowercase letters, digits, and symbols that SQL Server recognizes in your databases. The first 128 values are the same for all character set choices. The last 128 characters (sometimes called extended
Default Character Set
The Setup program selects code page 1252 (ISO Character Set) as the default character set. Every database attached to a specific SQL Server uses the same code page. The following table describes frequently selected character sets.
| Character set | Description |
|---|---|
| Code page 1252 (ISO 8859-1,Latin 1, or ANSI) | This is the default character set. It is compatible with the ANSI characters used by the Windows NT and Windows operating systems. Use this character set if you intend to use Windows NT- and Windows-based clients exclusively or if you must maintain exact compatibility with a SQL Server environment for UNIX or VMS. |
| Code page 850 (multilingual) |
This is a multilingual character set that includes all of the characters
used by most languages of European, North American, and South American |
| Code page 437 States,(U.S. English) | This is the most commonly used character set in the United and it includes many characters for graphics that are not usually stored in databases. Unless you have a specific reason to select this character set, choose code page 1252, which provides more compatibility with languages other than U.S. English. |
Selecting a Character Set
The code page that you select for SQL Server does not have to match the code page that the Windows NT operating system uses. However, if the data in a server running SQL Server contains extended characters, you must
SQL Server recognizes only one character set at a time. When you select a character set, consider the following facts and guidelines:
Caution
To change the character set after you have installed SQL Server, you must rebuild all databases.
A
sort order
determines how character data is compared, in what sequence character data is returned from a query, and what characters are
Note
Sort order applies only to non-Unicode data. The next topic discusses Unicode collation.
Selecting a Sort Order
The Setup program selects dictionary sort order, case-insensitive as the default. Most users choose the default sort order because selecting a nondefault sort order may affect query result sets, the performance, and the development of clients, as
You cannot have databases with different sort orders on the same server, and you cannot back up and restore databases among servers that are configured for different sort orders. If you are considering having several SQL Server installations, each with different character sets and sort orders, and you intend to move data among these servers, first consider the consequences. For example, results may sort differently, result sets may differ, and characters may be lost.
Note
If you change the sort order after you install SQL Server, you must rebuild all databases. Run sp_helpsort to verify the current sort order.
SQL Server 7 supports Unicode and non-Unicode data types for
A
Unicode collation
consists of one locale and several comparison styles. Locales, usually named after countries or cultural
Default Unicode Collation
The Setup program selects general, case-insensitive, width-insensitive, and Kana-insensitive as the default set of options. This default set is based on the character set and sort order that you choose.
Selecting a Unicode Collation
Selecting the same sort order for Unicode and non-Unicode data is
Note
If you change the Unicode collation after you install SQL Server, you must rebuild all databases.
SQL Server uses network libraries to communicate with a specific network protocol and to pass network packets between a client and SQL Server. The server
Note
Selecting the appropriate network support for SQL Server requires a thorough understanding of your Windows NT networktopography .
Default Network Libraries
The Setup program selects the Named Pipes, TCP/IP Sockets, and Multiprotocol network libraries as the default for SQL Server when installed on Windows NT. The TCP/IP Sockets and Multiprotocol network libraries are selected as the default for SQL Server when installed on Windows 95 or Windows 98 because these operating systems do not support Named Pipes. The Setup program makes Named Pipes on Windows NT and TCP/IP Sockets on Windows 95 and Windows 98 the default network library for client management tools. The client network library must match one of the network libraries on the SQL Server.
Selecting a Network Library
When you select a network library, consider the following facts:
The following table describes the network libraries supported by SQL Server.
| Network library | Description |
|---|---|
| Named Pipes | Installed by default — allows clients to connect with named pipes over any Microsoft-supplied transport protocol. Not supported by Windows 95 or Windows 98. |
| TCP/IP Sockets | Installed by default — allows clients to communicate by using standard Windows Sockets across TCP/IP. |
| Multiprotocol | Installed by default — takes advantage of the Windows NT remote procedure call (RPC) facility. Communicates over Named Pipes, TCP/IP Sockets, NWLink IPX/SPX, and other IPC mechanisms. |
| NWLink IPX/SPX | Allows Novell SPX clients to connect to SQL Server by using native Novell IPX/SPX. |
| AppleTalk ADSP | Allows Apple Macintosh-based clients to connect to SQL Server by using native AppleTalk (as opposed to TCP/IP). |
| Banyan VINES | Supports Banyan VINES Sequenced Packet Protocol (SPP) as the IPC method across the Banyan VINES IP network protocol. |
{% if main.adsdop %}{% include 'adsenceinline.tpl' %}{% endif %}
Note
To change a network library to SQL Server after installation, use the SQL Server Network Utility.
Each SQL Server service runs in the security context of an assigned service account. The assigned service account can be a domain user account or the local System account.
The Default SQL Server Services Account
The Setup program selects a domain user account as the default. In general, use the same service account for all SQL Server services.
Using a Domain User Account
If you use a domain user account, the SQL Server services can communicate with remote servers by using trusted connections.
When you select a domain user account, the Setup program grants the right to the domain user to log on as a service on the SQL Server computer.
When you use a domain user account, consider the following facts and guidelines:
Note
If you change the service account after installation, use SQL Server Enterprise Manager to set the service account because it sets the required rights automatically.
Using the Local System Account
The local System account is a built-in account that has the same authority as the Windows NT operating system, but only for local resources. If you choose the local System account, SQL Server services cannot communicate with remote servers using a trusted connection. If you install SQL Server on a computer running Windows NT that is not part of a domain, you can use the local System account. This is not generally recommended; however, it means that you do not need to create a Windows NT account for SQL Server services.
Autostart Services
By default, the Setup program installs the MSSQLServer service (the database engine) to run as an automatically started Windows NT service. The benefit of having this service start automatically is that a system administrator does not have to log on to start it each time Windows NT starts. If you want, you can have the other SQL Server-
In this exercise, you will log on to your local computer with the local administrator account and add the SQLService domain user account to the Administrators local group. The SQLService domain user account will be used for the SQL Server services account.
Adding the SQLService domain user account to the Administrators local group gives the SQLService domain user account administrator rights on the local computer. This is required in order to install SQL Server on the local computer with the SQLService domain user account for the SQL Server services account.
Familiarize yourself with the hardware and software requirements of SQL Server 7 before you begin installation. The following options are configured during installation: licensing mode, file locations, character set, sort order, Unicode collation, network support, and SQL Server services accounts.