Add-SPServerScaleOutDatabase

将现有扩展内容数据库添加到指定的服务应用程序。

语法

Add-SPServerScaleOutDatabase
   -DatabaseName <String>
   -ServiceApplication <SPServiceApplicationPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-DatabaseCredentials <PSCredential>]
   [-DatabaseFailoverServer <String>]
   [-DatabaseServer <String>]
   [-WhatIf]
   [-DeferUpgradeActions]
   [<CommonParameters>]

说明

使用 Add-SPServerScaleOutDatabase cmdlet 通过使用 ServiceApplication 参数将现有的横向扩展数据库添加到指定的服务应用程序,或创建新的横向扩展数据库并将其添加到指定的服务应用程序。

示例

-------------示例------------

$serviceApplication = Get-SPServiceApplication -Name "AppManagement"
Add-SPServerScaleOutDatabase -ServiceApplication $serviceApplication

此示例将新的或现有的扩展数据库添加到特定服务应用程序。

参数

-Confirm

执行命令前,看到确认提示。 有关详细信息,请键入以下命令:get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabaseCredentials

指定要添加到服务应用程序的横向扩展数据库的所有者凭据。

Type:PSCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabaseFailoverServer

要添加的扩展数据库的故障转移服务器。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabaseName

指定要添加到指定的服务应用程序的数据库的名称。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabaseServer

The name of the server hosting the scale-out database to be added. If a value is not provided, the default database server will be used.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DeferUpgradeActions

指定升级过程期间是否延迟升级操作。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ServiceApplication

指定扩展数据库的服务应用程序。

Type:SPServiceApplicationPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

显示一条描述命令作用的消息,而不执行命令。 有关详细信息,请键入以下命令:get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

输入

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

输出

System.Object