Home > SQL Installation > Install SQLServer2005 from Command Prompt

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=”<domain\user>” SQLPASSWORD=”<Password domain user>” AGTACCOUNT=”<domain\user>” AGTPASSWORD=”<Password domain user>” SQLBROWSERACCOUNT=”<domain\user>” 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.

[ADDLOCAL]

 

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.

ADDLOCAL Rules:

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:

ADDLOCAL=SQL_Engine,SQL_Data_Files,SQL_FullText,Notification_Services,
NS_Engine,NS_Client,SQL_DTS,Client_Components,Connectivity,SQL_Tools90,
SQL_Profiler90,SDK,SQL_Documentation,SQL_BooksOnline,SQL_SQLServerBooksOnline,
SQL_SQLServerMobileBooksOnline,SQL_Samples,SQL_AdventureWorksSamples,
SQL_AdventureWorksDWSamples,SQL_AnalysisServiceSamples,SQL_Samples

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:

ADDLOCAL=Analysis_Server,AnalysisDataFiles,AnalysisSharedTools,
Client_Components,Connectivity

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

 

 

 

 

 

Categories: SQL Installation
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: