Remove-SPAccessServicesDatabaseServer

移除設定為裝載 Access Services 資料庫的伺服器。

Syntax

Remove-SPAccessServicesDatabaseServer
      [-ServiceContext] <SPServiceContextPipeBind>
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      -DatabaseServer <AccessServicesDatabaseServerPipeBind>
      -DatabaseServerGroup <AccessServicesDatabaseServerGroupPipeBind>
      [-Force]
      [-WhatIf]
      [<CommonParameters>]

Description

此 Cmdlet 會移除裝載 Access Services 資料庫的 Access Services 資料庫伺服器。

範例

------------------範例------------------

Remove-SPAccessServicesDatabaseServer -DatabaseServer SQLSVR01 -DatabaseServerGroup DEFAULT

此範例會將名為 SQLSVR01 的SQL Server從 DEFAULT 群組中移除為 Access Services 資料庫伺服器。

參數

-AssignmentCollection

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 2013, SharePoint Server 2016, SharePoint Server 2019

-Confirm

執行 Cmdlet 之前提示您確認。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-DatabaseServer

指定SQL Server的名稱。

Type:AccessServicesDatabaseServerPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-DatabaseServerGroup

包含要移除之SQL Server物件的 Access Services 資料庫伺服器群組名稱。

Type:AccessServicesDatabaseServerGroupPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-Force

執行 Cmdlet 之前提示您確認。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-ServiceContext

指定服務內容。

Type:SPServiceContextPipeBind
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-WhatIf

顯示執行 Cmdlet 時會發生什麼情況。 未執行 Cmdlet。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

輸入

Microsoft.SharePoint.PowerShell.SPServiceCoNtextPipeBind

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

輸出

系統.物件