|
Este artículo se tradujo de forma manual. Mueva el puntero sobre las frases del artículo para ver el texto original. Más información.
|
Traducción
Original
|
Instalar SQL Server 2012 en Server Core
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Importante
|
|---|
|
|
Nota
|
|---|
|
|
Parámetros de características
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Opción de instalación
-
Instalación desde la línea de comandos
Para instalar características específicas mediante la opción de instalación del símbolo del sistema, use el parámetro /FEATURES y especifique la característica principal o los valores de la característica. El siguiente es un ejemplo del uso de los parámetros de la línea de comandos: Setup.exe /qs /ACTION=Install /FEATURES=SQLEngine,Replication /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="<DomainName\UserName>" /SQLSVCPASSWORD="<StrongPassword>" /SQLSYSADMINACCOUNTS="<DomainName\UserName>" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /TCPENABLED=1 /IACCEPTSQLSERVERLICENSETERMS
-
Instalación mediante el archivo de configuración
El programa de instalación admite el uso del archivo de configuración solamente a través del símbolo del sistema. El archivo de configuración es un archivo de texto con la estructura básica de un parámetro (pares nombre-valor) y un comentario descriptivo. El archivo de configuración especificado en el símbolo del sistema debe tener una extensión de nombre de archivo .INI. Vea los ejemplos siguientes de ConfigurationFile.INI: Instalar el Motor de base de datos En el siguiente ejemplo se muestra cómo instalar una nueva instancia independiente que incluye el Motor de base de datos de SQL Server: ; SQL Server 2012 Configuration File [OPTIONS] ; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter. ACTION="Install" ; Specifies features to install, uninstall, or upgrade. The lists of features include SQLEngine, FullText, Replication, AS, IS, and Conn. FEATURES=SQLENGINE ; Specify a default or named instance. MSSQLSERVER is the default instance for non-Express editions and SQLExpress for Express editions. This parameter is required when installing the SQL Server Database Engine, and Analysis Services (AS). INSTANCENAME="MSSQLSERVER" ; Specify the Instance ID for the SQL Server features you have specified. SQL Server directory structure, registry structure, and service names will incorporate the instance ID of the SQL Server instance. INSTANCEID="MSSQLSERVER" ; Account for SQL Server service: Domain\User or system account. SQLSVCACCOUNT="NT Service\MSSQLSERVER" ; Windows account(s) to provision as SQL Server system administrators. SQLSYSADMINACCOUNTS="<DomainName\UserName>" ; Accept the License agreement to continue with Installation IAcceptSQLServerLicenseTerms="True"
Instalar los componentes de conectividad En el siguiente ejemplo se muestra cómo instalar los componentes de conectividad: ; SQL Server 2012 Configuration File [OPTIONS] ; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter. ACTION="Install" ; Specifies features to install, uninstall, or upgrade. The lists of features include SQLEngine, FullText, Replication, AS, IS, and Conn. FEATURES=Conn ; Specifies acceptance of License Terms IAcceptSQLServerLicenseTerms="True
Instalar todas las características compatibles En el siguiente ejemplo se muestra cómo instalar todas las características admitidas de SQL Server 2012 en Server Core: ;SQL Server 2012 Configuration File [OPTIONS] ; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter. ACTION="Install" ; Specifies features to install, uninstall, or upgrade. The lists of features include SQLEngine, FullText, Replication, AS, IS, and Conn. FEATURES=SQLENGINE,FullText,Replication,AS,IS,Conn ; Specify a default or named instance. MSSQLSERVER is the default instance for non-Express editions and SQLExpress for Express editions. This parameter is required when installing the SQL Server Database Engine (SQL), or Analysis Services (AS). INSTANCENAME="MSSQLSERVER" ; Specify the Instance ID for the SQL Server features you have specified. SQL Server directory structure, registry structure, and service names will incorporate the instance ID of the SQL Server instance. INSTANCEID="MSSQLSERVER" ; Account for SQL Server service: Domain\User or system account. SQLSVCACCOUNT="NT Service\MSSQLSERVER" ; Windows account(s) to provision as SQL Server system administrators. SQLSYSADMINACCOUNTS="<DomainName\UserName>" ; The name of the account that the Analysis Services service runs under. ASSVCACCOUNT= "NT Service\MSSQLServerOLAPService" ; Specifies the list of administrator accounts that need to be provisioned. ASSYSADMINACCOUNTS="<DomainName\UserName>" ; Specifies the server mode of the Analysis Services instance. Valid values are MULTIDIMENSIONAL, POWERPIVOT or TABULAR. ASSERVERMODE is case-sensitive. All values must be expressed in upper case. ASSERVERMODE="MULTIDIMENSIONAL" ; Optional value, which specifies the state of the TCP protocol for the SQL Server service. Supported values are: 0 to disable the TCP protocol, and 1 to enable the TCP protocol. TCPENABLED=1 ;Specifies acceptance of License Terms IAcceptSQLServerLicenseTerms="True"
En la tabla siguiente se muestra cómo puede iniciar la instalación mediante un archivo de configuración. Opción de instalación Ejemplos Archivo de configuración A continuación se ofrecen algunos ejemplos de uso del archivo de configuración: -
Para especificar el archivo de configuración en el símbolo del sistema:
Setup.exe /QS /ConfigurationFile=MyConfigurationFile.INI
Para especificar las contraseñas en el símbolo del sistema en lugar de hacerlo en el archivo de configuración:
Setup.exe /QS /SQLSVCPASSWORD="************" /ASSVCPASSWORD="************" /ConfigurationFile=MyConfigurationFile.INI
DefaultSetup.ini Si tiene el archivo DefaultSetup.ini en las carpetas \x86 y \x64 en el nivel raíz de la ubicación de origen de SQL Server, abra el archivo DefaultSetup.ini y, a continuación, agregue el parámetro Features al archivo. Si el archivo DefaultSetup.ini no existe, puede crearlo y copiarlo a las carpetas \x86 y \x64 en el nivel raíz de la ubicación de origen de SQL Server. -
Habilitar las conexiones remotas en la instancia de SQL Server
-
EXEC sys.sp_configure N'remote access', N'1'
GO
-
RECONFIGURE WITH OVERRIDE
GO
Habilitar e iniciar el servicio SQL Server Browser
sc config SQLBROWSER start= auto
net start SQLBROWSER
Crear excepciones en Firewall de Windows
Habilitar TCP/IP en la instancia de SQL Server
-
En el equipo que ejecuta Windows Server 2008 R2 Server Core SP1 o Windows Server 2012 Server Core, inicie el Administrador de tareas. -
En la pestaña Aplicaciones, haga clic en Nueva tarea. -
En el cuadro de diálogo Crear nueva tarea, escriba sqlps.exe en el campo Abrir y, a continuación, haga clic en Aceptar. De este modo, abre la ventana Microsoft SQL Server Powershell. -
En la ventana Microsoft SQL Server Powershell, ejecute el siguiente script para habilitar el protocolo TCP/IP:
$smo = 'Microsoft.SqlServer.Management.Smo.' $wmi = new-object ($smo + 'Wmi.ManagedComputer') # Enable the TCP protocol on the default instance. If the instance is named, replace MSSQLSERVER with the instance name in the following line. $uri = "ManagedComputer[@Name='" + (get-item env:\computername).Value + "']/ServerInstance[@Name='MSSQLSERVER']/ServerProtocol[@Name='Tcp']" $Tcp = $wmi.GetSmoObject($uri) $Tcp.IsEnabled = $true $Tcp.Alter() $Tcp
|
|
||
|---|---|---|
Setup.exe /Q /Action=Uninstall /FEATURES=SQLEngine,AS,IS /INSTANCENAME=MSSQLSERVER
|
Advertencia
|
|---|
|
|
Importante