次の方法で共有


Get-SPAccessServicesDatabaseServer

Access Services に関連付けられているSQL Serverインスタンスを返します。

構文

GetSingleDatabaseServerParamterSet

Get-SPAccessServicesDatabaseServer
    [-ServiceContext] <SPServiceContextPipeBind>
    -DatabaseServer <AccessServicesDatabaseServerPipeBind>
    -DatabaseServerGroup <AccessServicesDatabaseServerGroupPipeBind>
    [-AssignmentCollection <SPAssignmentCollection>]
    [<CommonParameters>]

GetDatabaseServersParameterSet

Get-SPAccessServicesDatabaseServer
    [-ServiceContext] <SPServiceContextPipeBind>
    [-AssignmentCollection <SPAssignmentCollection>]
    [-DatabaseServerGroup <AccessServicesDatabaseServerGroupPipeBind>]
    [<CommonParameters>]

説明

Access Services で使用できるSQL Server インスタンスを返します。

例 1

Get-SPAccessServicesDatabaseServer

使用可能なすべてのSQL Serverインスタンスを返します。

例 2

Get-SPAccessServicesDatabaseServer -DatabaseServer ACCSQL -ServiceContext https://siteUrl -DatabaseServergroup DEFAULT

サービス コンテキストを使用して DEFAULT データベース サーバー グループからデータベース サーバー ACCSQL を返します。 https://siteUrl.

パラメーター

-AssignmentCollection

該当: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

適切な破棄を行うためにオブジェクトを管理します。 SPWeb や SPSite などのオブジェクトの使用によって大量のメモリが使用される場合があるので、Windows PowerShell スクリプトでこれらのオブジェクトを使用するには適切なメモリ管理が必要です。 メモリの解放が必要になった場合は、SPAssignment オブジェクトを使用して、変数へのオブジェクトの割り当てとオブジェクトの破棄を行うことができます。 割り当てコレクションまたは Global パラメーターが使用されていない場合、SPWeb、SPSite、または SPSiteAdministration オブジェクトが使用されていると、オブジェクトは自動的に破棄されます。

Global パラメーターが使用されている場合は、オブジェクトはすべてグローバル ストアに格納されます。 Stop-SPAssignment コマンドを使用してオブジェクトの使用または破棄を直接行わないと、メモリ不足のシナリオになる場合があります。

パラメーターのプロパティ

型:SPAssignmentCollection
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-DatabaseServer

該当: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

Access Services に関連付けられている既存のデータベース サーバーを指定します。

パラメーターのプロパティ

型:AccessServicesDatabaseServerPipeBind
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

GetSingleDatabaseServerParamterSet
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-DatabaseServerGroup

該当: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

データベース サーバー グループの名前。

パラメーターのプロパティ

型:AccessServicesDatabaseServerGroupPipeBind
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

GetSingleDatabaseServerParamterSet
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
GetDatabaseServersParameterSet
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-ServiceContext

該当: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

Access Services データベース サーバー情報を取得するサービス コンテキストを指定します。

パラメーターのプロパティ

型:SPServiceContextPipeBind
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:0
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、「about_CommonParameters」を参照してください。

入力

Microsoft.SharePoint.PowerShell.SPServiceContextPipeBind

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

出力

System.Object