GET-MasterDataServicesDatabases (Windows PowerShell)
Pobiera informacje Master Data Services baz danych na określone wystąpienie SQL Server.
Składnia
Get-MasterDataServicesDatabases [-Server] <Microsoft.MasterDataServices.Configuration.DatabaseServerInformation>
Opis
GET MasterDataServicesDatabases zwraca kolekcja bazy danych informacji obiekty, które zawierają informacje o Master Data Services baz danych na określone wystąpienie SQL Server.Kolekcja zawiera tylko baz danych, które są dostępne przy użyciu poświadczenia, które są określone w parametrze serwera.
Parametry
-Serwer
Parametr serwera jest obiekt bazy danych serwera informacje z Get MasterDataServicesDatabaseServerInformation.Ten obiekt jest używany do łączenia się z wystąpienie SQL Server obsługującego Master Data Services bazy danych.
Wymagane? |
PRAWDA |
Pozycja? |
0 |
Wartość domyślna |
Brak |
Akceptuj dane wejściowe z potoku |
wartość true (ByValue) |
Akceptuje symboli wieloznacznych? |
FAŁSZ |
Wejść i wyjść
Typ danych wejściowych jest typ obiektów, które można potoku do polecenia cmdlet.Typ zwracany jest typ obiektów, które zwraca apletu polecenia.
Nakłady |
Microsoft.MasterDataServices.Configuration.DatabaseServerInformation Dane wejściowe są obiektu bazy danych serwera informacje z Get MasterDataServicesDatabaseServerInformation. |
Wyjście |
System.Collections.ObjectModel.Collection{Microsoft.MasterDataServices.Configuration.DatabaseInformation} GET MasterDataServicesDatabases zwraca kolekcja obiektów bazy danych informacji. |
Przykłady
Output
Oto przykład danych wyjściowych zwracaną podczas korzystania z tego polecenia.
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 ...
Używanie zmiennych i parametrów nazwanych
W tym przykładzie użyto polecenia Get-MasterDataServicesDatabaseServerInformation do zestaw zmiennej, serwer $ dla parametru Server w apletu polecenia Get-MasterDataServicesDatabases.Serwer parametr jest nazwany parametr.
C:\PS>$server = Get-MasterDataServicesDatabaseServerInformation
-connectionString 'Data Source=MyServer\MyInstance;Initial catalog=;Integrated Security=True;User ID=;Password=';
Get-MasterDataServicesDatabases -Server $server
Wyjście rurowe i przy użyciu parametrów nazwanych
Ten przykład rury wyjście z Get-MasterDataServicesDatabaseServerInformation do Get MasterDataServicesDatabases dla parametru Server Get MasterDataServicesDatabases.Serwer parametr jest nazwany parametr.
C:\PS>Get-MasterDataServicesDatabaseServerInformation
-connectionString 'Data Source=MyServer\MyInstance;Initial catalog=;Integrated Security=True;User ID=;Password=' |
Get-MasterDataServicesDatabases
Użycie zmiennych i parametrów pozycyjne
W tym przykładzie użyto polecenia Get-MasterDataServicesDatabaseServerInformation do zestaw zmiennej, serwer $ dla parametru Server w apletu polecenia Get-MasterDataServicesDatabases.Serwer parametr jest parametrem pozycyjne.
C:\PS>$server = Get-MasterDataServicesDatabaseServerInformation
-connectionString 'Data Source=MyServer\MyInstance;Initial catalog=;Integrated Security=True;User ID=;Password=';
Get-MasterDataServicesDatabases $server