Install SQLServer2005 from Command Prompt

In this topic we focus on how to install SQLServer 2005 from Command Prompt with out user intervention.

To install SQLServer 2005 copy the dump to a Location (Local or Remote).If u have WinXP SP2 installed or Win2003 SP1 unblock the dump as it will block the installation.

Lets assume you are installaing SQLServer 2005 X86 on a new machine.We will first start with Database Engine Installation

The Deault Component which will install with Database Engine installation are

Microsoft SQL Server Setup Support Files (English)
Microsoft SQL Server Native Client
Microsoft Office 2003 Web Components
Microsoft SQL Server VSS Writer
Microsoft SQL Server 2005 Backward compatibility
MSXML 6.0 Parser
Microsoft SQL Server 2005(Database Engine) (SQLServer2005 Database Service and Agent Service)

To install a new, stand-alone instance of SQL Server 2005 from the command prompt:

Command Prompt Script:

<Pathof SQLServer2005 Installer Dump>Servers>Start /wait setup.exe /qb INSTANCENAME=CPnewInst ADDLOCAL=
SQL_Engine SAPWD=Setsapassword(strongpassword)  SQLACCOUNT=”<domainuser>” SQLPASSWORD=”<Password domain user>” AGTACCOUNT=”<domainuser>” AGTPASSWORD=”<Password domain user>” SQLBROWSERACCOUNT=”<domainuser>” SQLBROWSERPASSWORD=”<Password domain user>”

The /qn switch suppresses all Setup dialog boxes and error messages. If the /qn switch is specified, all Setup messages, including error messages, are written to Setup log files.

The /qb switch allows the display of basic Setup dialog boxes. Error messages are also displayed.



Usage: ADDLOCAL specifies which components to install. If ADDLOCAL is not specified, Setup fails.

To install all components specify ‘ADDLOCAL=All‘ on the command line.


Features are case sensitive.

To use ADDLOCAL, provide a comma-delimited list with no spaces between the features to install. For example, to install everything except Analysis Services and Reporting Services components, the list would be as follows:


Selecting a parent feature only installs the parent feature, not the parent and the child. Installing the child feature automatically installs the parent and the child features. Removing the parent feature removes both the parent and the child feature.

You can also use ADDLOCAL to add components in maintenance mode. For example, after performing the installation shown above, you could add Analysis Services by specifying the following:


For more information on Command Line installation look in BOL
(command line installations [SQL Server]).






Leave a Reply

Your email address will not be published.