Set-SPBusinessDataCatalogServiceApplication

设置服务器场中 Business Data Connectivity Service 应用程序的全局属性。

语法

Set-SPBusinessDataCatalogServiceApplication
   [-ApplicationPool <SPIisWebServiceApplicationPool>]
   [-DatabaseCredentials <PSCredential>]
   [-DatabaseName <String>]
   [-DatabasePassword <SecureString>]
   [-DatabaseServer <String>]
   [-DatabaseUsername <String>]
   [-FailoverDatabaseServer <String>]
   -Identity <SPServiceApplicationPipeBind>
   [-Name <String>]
   [-Sharing]
   [-Confirm]
   [-WhatIf]
   [-AssignmentCollection <SPAssignmentCollection>]
   [<CommonParameters>]

说明

Set-SPBusinessDataCatalogServiceApplication cmdlet 设置场中业务数据连接服务应用程序的全局属性。

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet

示例

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

$sa = Get-SPServiceApplication | ?{$_.TypeName -eq 'Business Data Connectivity Service Application'}
Set-SPBusinessDataCatalogServiceApplication -Identity $sa -FailoverDatabaseServer "CONTOSO\Backup"

此示例将针对给定的服务应用程序将故障转移数据库服务器设置为 CONTOSO\Backup。

参数

-ApplicationPool

指定要用于新的 Business Data Connectivity Service 应用程序的 IIS 应用程序池。

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

-Confirm

Prompts you for confirmation before executing the command. For more information, type the following command: 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

指定包含要用于数据库 SQL Server 身份验证的用户名和密码的 PSCredential 对象。

键入的值必须是有效的 PSCredential 对象。

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

-DatabaseName

指定业务数据连接数据库的名称。

键入的值必须是有效的 SQL Server 数据库名称;例如,UsageLogDB1。

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

-DatabasePassword

Specifies the password for the user specified in DatabaseUserName. Use this parameter only if SQL Server Authentication is used to access the Business Data Connectivity database.

键入的值必须是有效的密码。

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

-DatabaseServer

指定业务数据连接数据库的名称。

键入的值必须是有效的 SQL Server 数据库名称;例如,UsageLogDB1。

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

-DatabaseUsername

Specifies the user name to use for connecting to the catalog database. Use this parameter only if SQL Server Authentication is used to access the Business Data Connectivity database.

键入的值必须是有效的用户名;例如 UserName1。

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

-FailoverDatabaseServer

指定故障转移数据库服务器的主机服务器的名称。

键入的值必须是有效的 SQL Server 主机名;例如,SQLServerHost1。

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

-Identity

指定与新代理关联的 Business Data Connectivity Service 应用程序。

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

-Sharing

指定在服务器场中发布并共享 Business Data Connectivity Service 应用程序。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True
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

-名称

指定新的 Business Data Connectivity Service 应用程序代理的显示名称。

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

-工作分配

{{Fill AssignmentCollection Description}}

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