Restore-ASDatabase

从备份文件还原指定的 Analysis Service 数据库。

语法

ParameterSetName (默认值)

Restore-ASDatabase
    [-RestoreFile] <String>
    [-Name] <String>
    [-AllowOverwrite]
    [-Security <RestoreSecurity>]
    [-Password <SecureString>]
    [-StorageLocation <String>]
    [-Locations <RestoreLocation[]>]
    [-Server <String>]
    [-Credential <PSCredential>]
    [-ServicePrincipal]
    [-ApplicationId <String>]
    [-TenantId <String>]
    [-CertificateThumbprint <String>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ParameterSetInputObject

Restore-ASDatabase
    [-Server <String>]
    [-Credential <PSCredential>]
    [-ServicePrincipal]
    [-ApplicationId <String>]
    [-TenantId <String>]
    [-CertificateThumbprint <String>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ParameterSetTabularName

Restore-ASDatabase
    [-Server <String>]
    [-Credential <PSCredential>]
    [-ServicePrincipal]
    [-ApplicationId <String>]
    [-TenantId <String>]
    [-CertificateThumbprint <String>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ParameterSetTabularInputObject

Restore-ASDatabase
    [-Server <String>]
    [-Credential <PSCredential>]
    [-ServicePrincipal]
    [-ApplicationId <String>]
    [-TenantId <String>]
    [-CertificateThumbprint <String>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

使数据库管理员能够从备份文件还原 Analysis Service 数据库。 如果只提及没有位置的备份文件名,则会考虑在安装过程中指定的默认备份位置。

Module requirements: version 21+ on PowerShell 5.1; version 21 (recent preview) or version 22+ on PowerShell 7.x.

参数

-AllowOverwrite

指示在还原期间是否可以覆盖目标文件。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

ParameterSetName
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ApplicationId

服务主体的应用程序 ID。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-CertificateThumbprint

服务主体的证书指纹。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Confirm

在运行 cmdlet 之前,提示你进行确认。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:cf

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Credential

如果指定此参数,则传递的用户名和密码将用于连接到指定的 Analysis Server 实例。 如果未指定运行该工具的用户的默认 Windows 帐户,则使用凭据。

参数属性

类型:PSCredential
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Locations

要还原的分区的远程位置。

参数属性

类型:

RestoreLocation[]

默认值:None
支持通配符:False
不显示:False

参数集

ParameterSetName
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Name

必须还原的 Analysis Services 数据库名称。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

ParameterSetName
Position:1
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Password

用于解密还原文件的密码。

参数属性

类型:SecureString
默认值:None
支持通配符:False
不显示:False

参数集

ParameterSetName
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-RestoreFile

从备份文件还原指定的 Analysis Service 数据库。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

ParameterSetName
Position:0
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Security

表示还原作的安全设置。

参数属性

类型:RestoreSecurity
默认值:None
接受的值:CopyAll, SkipMembership, IgnoreSecurity
支持通配符:False
不显示:False

参数集

ParameterSetName
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Server

(可选)指定要连接到的服务器实例(如果当前不在 SQLAS 提供程序目录中)。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ServicePrincipal

指定此连接使用服务主体。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-StorageLocation

数据库存储位置。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

ParameterSetName
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-TenantId

服务主体的租户 ID。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:无线

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

System.String