New-SPBusinessDataCatalogServiceApplication
在伺服器陣列中建立新的 Business Data Connectivity Service 應用程式。
Syntax
New-SPBusinessDataCatalogServiceApplication
-ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>
[-DatabaseName <String>]
[-DatabaseServer <String>]
[-Name <String>]
[-AssignmentCollection <SPAssignmentCollection>]
[-Confirm]
[-DatabaseCredentials <PSCredential>]
[-DatabasePassword <SecureString>]
[-DatabaseUsername <String>]
[-FailoverDatabaseServer <String>]
[-PartitionMode]
[-Sharing]
[-WhatIf]
[-DeferUpgradeActions]
[<CommonParameters>]
Description
New-SPBusinessDataCatalogServiceApplication Cmdlet 會在伺服器陣列中建立新的 Business Data Connectivity 服務應用程式。
如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。
範例
------------------範例------------------
New-SPBusinessDataCatalogServiceApplication -ApplicationPool "SharePoint Web Services Default" -DatabaseName "ContosoBdcDB" -DatabaseServer "CONTOSO\SharePoint" -Name "ContosoServiceApp"
此範例會建立 Business Data Connectivity Service 應用程式 ContosoServiceApp。 在此程式中,它會使用 SharePoint Web 服務預設應用程式集區,並建立名為 ContosoBdcDB 的資料庫。
參數
-ApplicationPool
指定新 Business Data Connectivity Service 應用程式所要使用的 IIS 應用程式集區。
Type: | SPIisWebServiceApplicationPoolPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-AssignmentCollection
管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。
使用 Global 參數時,所有物件會包含在全域儲存區內。 若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Confirm
在執行命令之前,提示您確認操作。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters
。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-DatabaseName
指定 Business Data Connectivity 資料庫的名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-DatabasePassword
指定 DatabaseUserName 中指定之使用者的密碼。 唯有在 SQL Server 驗證用於存取 Business Data Connectivity 資料庫時,才使用此參數。
此類型必須是有效的密碼。
Type: | SecureString |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-DatabaseServer
指定 DatabaseName 中指定之資料庫的主機伺服器名稱。
此類型必須是有效的 SQL Server 主機名稱,例如 SERVER\Database。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-DatabaseUsername
指定用於連接資料庫的使用者名稱。 唯有在 SQL Server 驗證用於存取 Business Data Connectivity 資料庫時,才使用此參數。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-DeferUpgradeActions
指定是否要延後並以手動方式完成升級程序。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-FailoverDatabaseServer
指定容錯移轉資料庫伺服器之主機伺服器的名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Name
指定新 Business Data Connectivity Service 應用程式的顯示名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-PartitionMode
指定服務應用程式依訂閱識別碼限制資料。 此屬性在服務應用程式建立之後即無法變更。
此屬性對 SharePoint Server 2019 沒有影響。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Sharing
指定在全伺服器陣列中發佈與共用 Business Data Connectivity 應用程式。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-WhatIf
顯示訊息會描述命令的功效而不執行命令。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters
。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |