Deploying Microsoft SQL Server with SMS

You can use SMS to automatically install Microsoft SQL Server version 6.5 on multiple computers running Windows NT Server in your organization.

The Microsoft SQL Server compact disc contains the following files to help you deploy SQL Server with SMS (located at the root of the compact disc).

SQL Server file

Description

SQL65.PDF

Automates the creation of a SQL Server package in SMS. The SQL Server package can then be distributed and installed on SMS computers. The PDF also enables SMS to detect SQL Server on SMS computers and report it in the SMS computer inventory.

SQLFULLdrive.CMD SQLNOBKdrive.CMD

Detect the platform of the computer and run the appropriate version of SQL Server Setup with the appropriate parameters, where drive indicates the drive letter where SQL Server will be installed. The SQLFULLdrive.CMD batch file installs the full SQL Server product including the online books. The SQLNOBKdrive.CMD batch file installs the SQL Server product without the online books.

The installation scripts product (SQLFULLdrive.INI and SQLNOBKdrive.INI) for SQL Server Setup require that the installation drive be specified in the installation script. Batch files and scripts are provided for installation on drives C, D, and E. For example, if you wanted to install SQL Server on drive D, you would use the SQLFULLD.CMD batch file. A custom script (SQLCUSTM.INI) is also provided so that you can change the drive specification to a drive letter that follows E.

SQLFULLdrive.INI SQLNOBKdrive.INI

Installation scripts that install SQL Server to a specified drive. drive indicates the drive letter where SQL Server will be installed.

SQLCUSTM.CMD SQLCUSTM.INI

The SQLCUSTM.CMD batch file runs SQL Server Setup to install the full SQL Server using the SQLCUSTM.INI initialization file. If you are installing SQL Server on a drive letter after E, you can modify the SQLCUSTM.INI file to specify any drive letter that you want. You need to modify the entries that specify drive locations.


Requirements

The computers where SQL Server will be installed have the following disk space requirements:

For other installation requirements for SQL Server, see the Microsoft SQL Server documentation.

On the SMS site server where the job to install the SQL Server is created, the site server must have 180 MB of free disk space.

To create the Microsoft SQL Server package

    1. Copy all directories and files from the Microsoft SQL Server compact disc to a package source directory.

To create the package source directory for SQL Server, create the package source directory on a server and share it with the same name. Copy the directories and files from the Microsoft SQL Server compact disc to the package source directory.

    2. If you plan to install SQL Server on a drive letter after E (that is, F, G, H, and so on), modify the drive specifications in the custom installation script (SQLCUSTM.CMD and SQLCUSTM.INI).

You need to modify the following items:

For information about the format of the installation script, see the Microsoft SQL Server documentation.

    3. In the SMS Administrator, open the Packages window, and from the File menu, choose New.

The Package Properties dialog box appears.

    4. Choose Import, and select the \\servername\sharename\SQL.PDF file.

The Package Properties dialog box displays SQL Server 6.5 in the Name box.

    5. Choose Workstations.

The Setup Package for Workstation dialog box appears.

    6. In the Source Directory box, enter the full UNC name of the SQL Server package source directory (for example, \\myserver\sql65).

You can choose to have SMS inventory this package. If you select this check box, SMS will copy the installation log file from the target computers to the SMS site server.

Important

The installation scripts cannot be run by the Package Command Manager service. They can be run only through the Package Command Manager client software. This means that you must leave the System Background Task option disabled in the Command Line Properties of the commands in the SQL Server package.

    7. Choose Close.

    8. Choose OK in all open dialog boxes.

The SQL Server package now appears in the Packages window. You can now use the SQL Server package to create Run Command On Workstation jobs to install SQL Server.

To distribute the Microsoft SQL Server package

    1. In the SMS Administrator, open the Queries window, and from the File menu, choose New.

Define a query to find the computers where you want to install SQL Server.

Because the installation scripts are based on the installation drive, you should use a query to identify the computers that have the specified installation drive and also have enough free disk space on those drives. You can also create queries that impose other requirements such as amount of RAM or an existing SQL Server.

For example, the following query is designed to find all computers running Windows NT Server that have enough free space on drive D for a full installation of SQL Server:


(
    MICROSOFT|DISK|1.0:Disk Index is 'D'
    AND
    MICROSOFT|DISK|1.0:Free Storage (MByte) is greater than or equal 
to '90' ) AND ( MICROSOFT|OPERATING_SYSTEM|1.0:Operating System Name is
'Microsoft Windows NT' AND MICROSOFT|OPERATING_SYSTEM|1.0:Version is same as or comes after
'3.51' )

Note The installation drive has these disk space requirements:

Full installation: 90 MB

Installation without online books: 75 MB

For other requirements for SQL Server such as RAM, see the Microsoft SQL Server documentation.

    2. To run the query, from the File menu, choose Execute Query.

    3. Use the query results to add the selected computers to a machine group.

    4. Use the new machine group to specify the target computers where you want to install SQL Server.

You can also specify the query as a target — SMS will evaluate the query when it activates the job used to install the SQL Server package and use that result as the list of target computers.

    5. In the SMS Administrator, open the Jobs window, and from the File menu, choose New.

    6. Choose Details.

    7. In the Job Target box, specify the query or machine group.

    8. Select the Run Workstation Command check box.

    9. Select the command that specifies the drive where you want to install SQL Server (for example, select Complete Install on D: Drive if you want to install the full installation of SQL Server on drive D of all the target computers).

Note that if you set up the SQLCUSTM.INI setup script, you must select the Custom Install command to use that script.

    10. Choose OK in all open dialog boxes.

When the job completes, SQL Server will be installed on all target computers.