Export-SPAccessServicesDatabase

Exporta una base de datos de Access Services a un DACPAC a través de Data-Tier Framework.

Syntax

Export-SPAccessServicesDatabase
      [-AssignmentCollection <SPAssignmentCollection>]
      -DatabaseName <String>
      -ServerReferenceId <Guid>
      [<CommonParameters>]

Description

Este cmdlet exporta una base de datos de Access Services a un DACPAC. El cmdlet requiere que Data-Tier Framework se instale en el servidor de SharePoint donde se ejecuta el cmdlet. Los paquetes de Data-Tier Framework se pueden encontrar en Microsoft® SQL Server ® Data-Tier Application Framework (DacFx 17.4.1 GA). Instale la siguiente MSI desde la descarga:

EN\x86\DacFramework.msi

Nota: Se requiere el paquete x86. El paquete x64 no es compatible con este cmdlet.

Vea más información sobre Data-Tier Framework en Aplicaciones de capa de datos.

Ejemplos

Ejemplo 1

$contentdb = Get-SPContentDatabase ContentDbName
$accessDb = Get-SPAccessServicesDatabase -ContentDb $contentdb -EA 0 | Select -First 1
Export-SPAccessServicesDatabase -DatabaseName $accessDb.DatabaseName -ServerReferenceId $accessDb.ServerReferenceId | Set-Content -Path C:\accessDb.bacpac -Encoding Byte

Este cmdlet recupera la primera base de datos de Access de la base de datos de contenido especificada y exporta la base de datos de Access a un BACPAC. Este archivo BACPAC se puede importar a través de SQL Server Management Studio para restaurar la base de datos de Access.

Parámetros

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

-DatabaseName

Nombre de la base de datos de Access.

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

-ServerReferenceId

ServerReferenceId usado para la base de datos de Access.

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

Entradas

System.String

System.Guid Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Salidas

System.Object