Get-SPAccessServicesDatabase

返回 Access Services 数据库。

语法

Get-SPAccessServicesDatabase
   [[-Identity] <AccessServicesDatabasePipeBind>]
   [[-ContentDb] <SPContentDatabasePipeBind>]
   [[-AccessAppsOnly] <Boolean>]
   [-AssignmentCollection <SPAssignmentCollection>]
   [<CommonParameters>]

说明

返回 Access Services 数据库。

示例

示例 1

Get-SPAccessServicesDatabase -Identity https://apps-eec88dc5f597c6.contoso-apps.com/sites/team/accessApp

此示例使用 App Web 返回名为“accessApp”的访问数据库。

示例 2

Get-SPAccessServicesDatabase -ContentDb WSS_Content

本示例返回与内容数据库中的站点关联的所有 Access 数据库,WSS_Content。

参数

-AccessAppsOnly

仅返回 Access 应用。

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

-ContentDb

要从中返回 Access Apps 的内容数据库。

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

-Identity

访问应用的 URL。 必须是应用 Web URL。

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

-工作分配

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

输入

Microsoft.Office.Access.Services.PowerShell.AccessServicesDatabasePipeBind

Microsoft.SharePoint.PowerShell.SPContentDatabasePipeBind System.Boolean Microsoft.SharePoint.PowerShell.SPAssignmentCollection

输出

System.Object