|
Cet article a fait l'objet d'une traduction manuelle. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
Installer SQL Server 2012 sur Server Core
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Important
|
|---|
|
|
Remarque
|
|---|
|
|
Paramètres de fonctionnalités
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Options d'installation
-
Installation à partir de la ligne de commande
Pour installer des fonctionnalités spécifiques à l'aide de l'option d'installation de l'invite de commande, utilisez le paramètre /FEATURES et spécifiez la fonctionnalité parent ou les valeurs de fonctionnalités répertoriées dans le tableau suivant. Voici un exemple d'utilisation des paramètres de la ligne de commande : 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
-
Installation à l'aide du fichier de configuration
Le programme d'installation prend en charge l'utilisation du fichier de configuration uniquement via l'invite de commandes. Le fichier de configuration est un fichier texte avec une structure de base d'un paramètre (paire nom/valeur) et d'un commentaire descriptif. Le fichier de configuration spécifié à l'invite de commande doit avoir une extension de nom de fichier .INI. Consultez les exemples suivants de ConfigurationFile.INI : Installation de Moteur de base de données L'exemple suivant montre comment installer une nouvelle instance autonome qui inclut le moteur de base de données 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"
Installation des composants de connectivité L'exemple suivant montre comment installer les composants de connectivité : ; 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
Installation de toutes les fonctionnalités prises en charge L'exemple suivant montre comment installer toutes les fonctionnalités prises en charge de SQL Server 2012 sur 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"
Le tableau suivant montre comment lancer l'installation à l'aide d'un fichier de configuration. Option d'installation Exemples Fichier de configuration Voici quelques exemples qui illustrent l'utilisation du fichier de configuration : -
Pour spécifier le fichier de configuration à l'invite de commandes :
Setup.exe /QS /ConfigurationFile=MyConfigurationFile.INI
Pour spécifier des mots de passe à l'invite de commandes plutôt que dans le fichier de configuration :
Setup.exe /QS /SQLSVCPASSWORD="************" /ASSVCPASSWORD="************" /ConfigurationFile=MyConfigurationFile.INI
DefaultSetup.ini Si vous disposez du fichier DefaultSetup.ini dans les dossier \x86 et \x64 au niveau de la racine du média source SQL Server, ouvrez le fichier DefaultSetup.ini, puis ajoutez le paramètre Features au fichier. Si le fichier DefaultSetup.ini n'existe pas, vous pouvez le créer et le copier dans les dossiers \x86 et \x64 au niveau de la racine du média source SQL Server. -
Activer les connexions distantes sur l'instance de SQL Server
-
EXEC sys.sp_configure N'remote access', N'1'
GO
-
RECONFIGURE WITH OVERRIDE
GO
Activer et démarrer le service SQL Server Browser
sc config SQLBROWSER start= auto
net start SQLBROWSER
Créer des exceptions dans le pare-feu Windows
Activer TCP/IP sur l'instance de SQL Server
-
Sur un ordinateur qui exécute Windows Server 2008 R2 Server Core SP1 ou Windows Server 2012 Server Core, lancez le Gestionnaire des tâches. -
Dans l'onglet Applications, cliquez sur Nouvelle tâche. -
Dans la boîte de dialogue Créer une nouvelle tâche, tapez sqlps.exe dans le champ Ouvrir, puis cliquez sur OK. Cela ouvre la fenêtre Microsoft SQL Server Powershell. -
Dans la fenêtre Microsoft SQL Server Powershell, exécutez le script suivant pour activer le protocole 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
|
Attention
|
|---|
|
|

Important