|
Dieser Artikel wurde manuell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
Installieren von SQL Server 2012 unter Server Core
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Wichtig
|
|---|
|
|
Hinweis
|
|---|
|
|
Funktionsparameter
|
|
Beschreibung |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Beschreibung |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Installationsoptionen
-
Installation über die Befehlszeile
Um bestimmte Funktionen über die Befehlszeilen-Installationsoption zu installieren, verwenden Sie den /FEATURES-Parameter und geben die übergeordnete Funktion oder die Funktionswerte an. Nachfolgend wird gezeigt, wie die Parameter in der Befehlszeile verwendet werden: 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 über die Konfigurationsdatei
Setup unterstützt die Verwendung der Konfigurationsdatei nur über die Eingabeaufforderung. Die Konfigurationsdatei ist eine Textdatei mit der grundlegenden Struktur eines Parameters (Name/Wert-Paar) und einem beschreibenden Kommentar. Die an der Eingabeaufforderung angegebene Konfigurationsdatei sollte die Dateinamenerweiterung .INI haben. Nachfolgend finden Sie einige Beispiele für ConfigurationFile.INI: Installieren von Database Engine (Datenbankmodul) Im folgenden Beispiel wird gezeigt, wie eine neue eigenständige Instanz, die das SQL Server-Datenbankmodul einschließt, installiert wird: ; 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"
Installieren von Konnektivitätskomponenten Im folgenden Beispiel wird gezeigt, wie die Konnektivitätskomponenten installiert werden: ; 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
Installieren aller unterstützten Funktionen Im folgenden Beispiel wird gezeigt, wie alle unterstützten Funktionen von SQL Server 2012 unter Server Core installiert werden: ;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"
Die folgende Tabelle zeigt an, wie Sie das Setup mithilfe einer Konfigurationsdatei starten können. Installationsoption Beispiele Konfigurationsdatei Im Folgenden finden Sie einige Beispiele für das Verwenden der Konfigurationsdatei: -
Angeben der Konfigurationsdatei an der Eingabeaufforderung:
Setup.exe /QS /ConfigurationFile=MyConfigurationFile.INI
Angeben von Kennwörtern an der Eingabeaufforderung und nicht in der Konfigurationsdatei:
Setup.exe /QS /SQLSVCPASSWORD="************" /ASSVCPASSWORD="************" /ConfigurationFile=MyConfigurationFile.INI
DefaultSetup.ini Wenn sich die Datei DefaultSetup.ini in den Ordnern \x86 und \x64 auf der Stammebene der SQL Server-Quellmedien befindet, öffnen Sie die Datei DefaultSetup.ini, und fügen Sie der Datei den Parameter Features hinzu. Wenn die Datei DefaultSetup.ini nicht vorhanden ist, können Sie sie erstellen und sie in die Ordner \x86 und \x64 auf der Stammebene der SQL Server-Quellmedien kopieren. -
Aktivieren Sie Remoteverbindungen auf der Instanz von SQL Server
-
EXEC sys.sp_configure N'remote access', N'1'
GO
-
RECONFIGURE WITH OVERRIDE
GO
Aktivieren und Starten des SQL Server-Browserdiensts
sc config SQLBROWSER start= auto
net start SQLBROWSER
Erstellen von Ausnahmen von Windows-Firewall
Aktivieren von TCP/IP auf der SQL Server-Instanz
-
Starten Sie auf dem Computer, auf dem Windows Server 2008 R2 Server Core SP1 oder Windows Server 2012 Server Core ausgeführt wird, den Task-Manager. -
Klicken Sie auf der Registerkarte Anwendungen auf Neuer Task. -
Geben Sie im Dialogfeld Neuen Task erstellen in das Feld Öffnen den Wert sqlps.exe ein, und klicken Sie auf OK. Dies öffnet das Fenster Microsoft SQL Server Powershell. -
Führen Sie im Fenster Microsoft SQL Server Powershell das folgende Skript aus, um das TCP/IP-Protokoll zu aktivieren:
$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
|
Vorsicht
|
|---|
|
|

Wichtig