3.2 Installing from the command line

Source: Internet
Author: User

3.2 Installing from the command line


3.2.1 Configuration files for the Setup program

After installation through the Installation Wizard, a configuration file is generated in the same directory as the installation log file. For example, C:\Program Files\Microsoft SQL Server\120\setup Bootstrap\log\20141130_162528\configurationfile.ini. The following is an example of a configuration file:

; SQL Server Configuration File

[OPTIONS]


; Specifies the workflow for the installer, such as install, UNINSTALL, or UPGRADE. This is a required parameter.


action= "Install"


; Use the/enu parameter to install the English version of SQL Server on a localized Windows operating system.


enu= "False"


; The parameters used to control the behavior of the user interface. Valid values are Normal for the full UI, AutoAdvance for the simplified UI, and Enableuionservercore for the Server Core installer GUI block.


Uimode= "Normal"


; The installer will not display any user interface.


quiet= "False"


; The installer will only show progress without any user interaction.


Quietsimple= "False"


; Specifies whether the SQL Server Setup program should discover and include product updates. Valid values are True and False or 1 and 0. By default, SQL Server Setup includes the updates that are found.


Updateenabled= "False"


; Specifies whether errors can be reported to Microsoft in order to improve future versions of SQL Server. Specifying 1 or True will enable this feature, and specifying 0 or False will disable this feature.


Errorreporting= "False"


; If this parameter is provided, this computer will check for updates using Microsoft update.


Usemicrosoftupdate= "False"


; Specifies the features to install, uninstall, or upgrade. The top-level feature list includes SQL, as, RS, is, MDS, and tools. The SQL feature installs the database engine, replication, full-text, and Data quality Services (DQS) servers. The Tools feature installs Administrative tools, Books Online components, SQL Server Data Tools, and other shared components.


Features=sqlengine,replication,fulltext,dq,as,rs,rs_shp,rs_shpwfe,dqc,conn,is,bc,sdk,bol,ssms,adv_ssms,dreplay _ctlr,dreplay_clt,mds


; Specifies the location where SQL Server Setup will get the product updates. Valid values are "MU" (to search for product updates), valid folder paths, and relative paths such as. \myupdates or UNC shared directories. By default, SQL Server Setup will search for Microsoft update or the Windows update service through Window Server Update Services.


Updatesource= "MU"


; Show command line parameter usage


help= "False"


; Specifies that detailed setup logs should be delivered to the console.


Indicateprogress= "False"


; Specifies that the installer should be installed in WOW64. This command-line parameter is not supported on IA64 or 32-bit systems.


x86= "False"


; Specifies the installation root of the shared component. This directory remains the same after the shared component has been installed.


installshareddir= "C:\Program Files\Microsoft SQL Server"


; Specifies the installation root directory for the WOW64 shared component. This directory remains intact after the WOW64 shared component has been installed.


Installsharedwowdir= "C:\Program Files (x86) \microsoft SQL Server"


; Specifies the default instance or named instance. MSSQLSERVER is the default instance of the non-Express version, and SQLExpress is the default instance of the Express version. This parameter is required when you install SQL Server Database Engine (SQL), Analysis Services (AS), or Reporting services (RS).


Instancename= "MSSQLSERVER"


; Specifies that you can collect SQL Server feature usage data and send data to Microsoft. Specifying 1 or True will enable this feature, and specifying 0 or False will disable this feature.


Sqmreporting= "False"


; Specifies the instance ID for the SQL Server feature that you have specified. The SQL Server directory structure, registry structure, and service name will contain the instance ID of the instance of SQL Server.


Instanceid= "MSSQLSERVER"


; The computer name of the distributed Replay Controller service that the client communicates with.


Cltctlrname= "PC2014"


; The Windows account that is used to grant distributed Replay Controller service permissions.


Ctlrusers= "Pc2014\administrator"


; Distributed the account used by the Replay controller service.


Ctlrsvcaccount= "NT service\sql Server distributed Replay Controller"


; Distributed the startup type of the Replay controller service.


Ctlrstartuptype= "Manual"


; Distributed the account used by the Replay client service.


Cltsvcaccount= "NT service\sql Server distributed Replay Client"


; Distributed the startup type of the Replay client service.


Cltstartuptype= "Manual"


; Distributed the result directory of the Replay client service.


Cltresultdir= "C:\Program Files (x86) \microsoft SQL Server\dreplayclient\resultdir"


; Distributed the working directory of the Replay client service.


Cltworkingdir= "C:\Program Files (x86) \microsoft SQL Server\dreplayclient\workingdir"


; Rsinputsettings_rsinstallmode_description


Rsinstallmode= "Defaultnativemode"


; Rsinputsettings_rsinstallmode_description


Rsshpinstallmode= "Sharepointfilesonlymode"


; Specifies the installation directory.


instancedir= "C:\Program Files\Microsoft SQL Server"


; Proxy account Name


agtsvcaccount= "NT service\sqlserveragent"


; Automatically start the service after installation.


Agtsvcstartuptype= "Automatic"


; The startup type of integration Services.


Issvcstartuptype= "Automatic"


; Account for integration Services: domain \ User or SYSTEM account.


issvcaccount= "NT service\msdtsserver120"


; The name of the account that is used to run the Analysis Services service.


assvcaccount= "NT Service\mssqlserverolapservice"


; Controls the service startup type setting after the service is created.


Assvcstartuptype= "Manual"


; The collation to be used by analysis Services.


ascollation= "Chinese_prc_ci_as"


; The location of the analysis Services data file.


Asdatadir= "C:\Program Files\Microsoft SQL Server\msas12. Mssqlserver\olap\data "


; The location of the analysis Services log file.


Aslogdir= "C:\Program Files\Microsoft SQL Server\msas12. Mssqlserver\olap\log "


; Location of the analysis Services backup file.


Asbackupdir= "C:\Program Files\Microsoft SQL Server\msas12. Mssqlserver\olap\backup "


; Location of the Analysis Services temp file.


Astempdir= "C:\Program Files\Microsoft SQL Server\msas12. Mssqlserver\olap\temp "


; The location of the analysis Services configuration file.


Asconfigdir= "C:\Program Files\Microsoft SQL Server\msas12. Mssqlserver\olap\config "


; Specifies whether the MSOLAP provider is allowed to run in the process.


asprovidermsolap= "1"


; Specifies a list of administrator accounts that need to be set.


Assysadminaccounts= "Pc2014\administrator"


; Specifies the server mode of an analysis Services instance. Valid values are multidimensional and tabular. The default value is multidimensional.


Asservermode= "Multidimensional"


; CM program block TCP communication port


commfabricport= "0"


; How matrices use private networks


Commfabricnetworklevel= "0"


; How to protect the communication between program blocks


commfabricencryption= "0"


; The TCP port used by the CM program block


matrixcmbrickcommport= "0"


; The startup type of the SQL Server service.


Sqlsvcstartuptype= "Automatic"


; Enables the level of the FILESTREAM feature (0, 1, 2, or 3).


Filestreamlevel= "0"


; Set to "1" to enable RANU for SQL Server Express.


enableranu= "False"


; Specifies the Windows collation or SQL collation to use for the database engine.


sqlcollation= "Chinese_prc_ci_as"


; account for the SQL Server service: domain \ User or SYSTEM account.


sqlsvcaccount= "NT Service\mssqlserver"


; The Windows account to be set as the SQL Server system administrator.


Sqlsysadminaccounts= "Pc2014\administrator"


; Set the current user as the database engine system administrator for%sql_product_short_name% Express.


Addcurrentuserassqladmin= "False"


; Specify 0 To disable the TCP/IP protocol, and specify 1 to enable the protocol.


tcpenabled= "0"


; Specify 0 To disable the Named Pipes protocol, and specify 1 to enable the protocol.


npenabled= "0"


; The startup type of the Browser service.


Browsersvcstartuptype= "Automatic"


; Specifies the account that the report Server NT service should use when it executes. If this value is omitted or the value is an empty string, the default built-in account for the current operating system will be used.

; The user name portion of the Rssvcaccount has a maximum length of 20 characters,

; The maximum length of the domain portion of the rssvcaccount is 254 characters.


rssvcaccount= "NT Service\reportserver"


; Specifies the startup mode of the report Server NT service.

; Manual-Starts the service under manual mode (default).

; Automatic-Starts the service in automatic mode.

; Disabled-The service is in a disabled state


Rssvcstartuptype= "Automatic"


; Add a description of the input parameter Ftsvcaccount


ftsvcaccount= "NT Service\mssqlfdlauncher"



3.2.2 Unattended Installation

Refer to the installation configuration file above to install SQL Server from the command line. For example:

setup.exe/q/iacceptsqlserverlicenseterms/action= "Install"/features=sqlengine,replication,fulltext,as,rs,conn, Is,bc,sdk,bol,ssms,adv_ssms/instancename= "MSSQLSERVER"/instanceid= "MSSQLSERVER"/sqlsvcaccount= "NT authority\ SYSTEM "/sqlsysadminaccounts=" Localhost\administrator "/agtsvcaccount=" NT AUTHORITY\SYSTEM "/ASSVCACCOUNT=" nt Service\local System "/assysadminaccounts=" Localhost\administrator "/issvcaccount=" NT authority\system "/ rssvcaccount= "NT Authority\System"



Tips:

When installed through the command prompt, SQL Server supports full silent mode (by using the/q parameter) or simple silent mode (by using the/qs parameter).

The/QS switch shows only progress, does not accept any input, and does not display an error message even if an error is encountered. The/QS parameter is supported only when/action=install is specified.


When you use the/q or/QS parameters for an unattended installation, you must include the/iacceptsqlserverlicenseterms parameter. You can set this parameter in the configuration file.

; By accepting the SQL Server license Terms, you acknowledge that you have read and understood the content of the terms of use.

Iacceptsqlserverlicenseterms= "True"


The configuration file can be edited and saved in advance and then called directly by the installer as an auto-answer file. Because the configuration file does not include sensitive information such as passwords, you need to specify the appropriate password on the command line. For example:

Setup.exe/sqlsvcpassword= "************"/agtsvcpassword= "************"/assvcpassword= "************"/ Issvcpassword= "************"/rssvcpassword= "************"/configurationfile=c:\perparesetup\ Configurationfile.ini



If the parameters in the Configurationfile.ini configuration file are inconsistent with the arguments entered on the command line, the command-line arguments are used first.


This article from "SQLServer2014 series" blog, declined reprint!

3.2 Installing from the command line

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.