다음을 통해 공유


Get-MasterDataServicesDatabases(PowerShell)

지정한 SQL Server 인스턴스의 Master Data Services 데이터베이스에 대한 정보를 가져옵니다.

구문

Get-MasterDataServicesDatabases [-Server] <Microsoft.MasterDataServices.Configuration.DatabaseServerInformation>

설명

Get-MasterDataServicesDatabases는 지정한 SQL Server 인스턴스의 Master Data Services 데이터베이스에 대한 정보를 포함하는 데이터베이스 정보 개체 컬렉션을 반환합니다. 컬렉션에는 Server 매개 변수에서 지정한 자격 증명을 사용하여 액세스할 수 있는 데이터베이스만 포함됩니다.

매개 변수

-Server

Server 매개 변수는 Get-MasterDataServicesDatabaseServerInformation의 데이터베이스 서버 정보 개체입니다. 이 개체는 Master Data Services 데이터베이스를 호스팅하는 SQL Server 인스턴스에 연결하는 데 사용됩니다.

필수 여부

true

위치

0

기본값

없음

파이프라인 입력 허용

true(ByValue)

와일드카드 문자 허용

false

입력 및 출력

입력 유형은 cmdlet에 파이프할 수 있는 개체 유형입니다. 반환 유형은 cmdlet에서 반환하는 개체 유형입니다.

입력

Microsoft.MasterDataServices.Configuration.DatabaseServerInformation

입력은 Get-MasterDataServicesDatabaseServerInformation의 데이터베이스 서버 정보 개체입니다.

출력

System.Collections.ObjectModel.Collection{Microsoft.MasterDataServices.Configuration.DatabaseInformation}

Get-MasterDataServicesDatabases는 데이터베이스 정보 개체 컬렉션을 반환합니다.

출력

다음은 이 cmdlet을 사용할 때 반환되는 출력의 예입니다.

Name             : MyDatabase_EN
HasAccess        : True
Collation        : SQL_Latin1_General_CP1_CI_AS
ServiceAccount   :
MdsAdministrator :
Server           : Microsoft.MasterDataServices.Configuration.DatabaseServerInformation
IsDatabaseOwner  : True

Name             : MyDatabase_JA
HasAccess        : True
Collation        : Japanese_Bushu_Kakusu_100_CS_AI
ServiceAccount   :
MdsAdministrator :
Server           : Microsoft.MasterDataServices.Configuration.DatabaseServerInformation
IsDatabaseOwner  : True
...

변수 및 명명된 매개 변수 사용

이 예에서는 Get-MasterDataServicesDatabaseServerInformation cmdlet을 사용하여 Get-MasterDataServicesDatabases cmdlet의 Server 매개 변수에 사용할 변수 $server를 설정합니다. -Server 매개 변수는 명명된 매개 변수입니다.

C:\PS>$server = Get-MasterDataServicesDatabaseServerInformation 
    -connectionString 'Data Source=MyServer\MyInstance;Initial catalog=;Integrated Security=True;User ID=;Password='; 
    Get-MasterDataServicesDatabases -Server $server

출력 파이핑 및 명명된 매개 변수 사용

이 예에서는 Get-MasterDataServicesDatabases의 Server 매개 변수에 대해 Get-MasterDataServicesDatabaseServerInformation에서 Get-MasterDataServicesDatabases로 출력을 파이프합니다. -Server 매개 변수는 명명된 매개 변수입니다.

C:\PS>Get-MasterDataServicesDatabaseServerInformation 
    -connectionString 'Data Source=MyServer\MyInstance;Initial catalog=;Integrated Security=True;User ID=;Password=' | 
    Get-MasterDataServicesDatabases

변수 및 위치 매개 변수 사용

이 예에서는 Get-MasterDataServicesDatabaseServerInformation cmdlet을 사용하여 Get-MasterDataServicesDatabases cmdlet의 Server 매개 변수에 사용할 변수 $server를 설정합니다. -Server 매개 변수는 위치 매개 변수입니다.

C:\PS>$server = Get-MasterDataServicesDatabaseServerInformation 
    -connectionString 'Data Source=MyServer\MyInstance;Initial catalog=;Integrated Security=True;User ID=;Password='; 
    Get-MasterDataServicesDatabases $server