title: List of database in Analysis service
body: <p>I want to get list of all databases in both Process and Tabular instance using <code>Microsoft.AnalysisServices.AdomdClient</code> and <strong>not with</strong> <code>Microsoft.AnalysisServices</code></p>
  
  <p>This is because I am compelled to use .Net 3.5 and cannot work with .Net 4.0.</p>
  
  <p>There are commands to get the data using SQL Server Management Studio:</p>
  
  <pre><code>SELECT [CATALOG_NAME] FROM $system.dbschema_catalogs
  
  SELECT * from $system.dbschema_tables
  </code></pre>
  
  <p>But I want to execute these to get list of Databases. I need to connect <em>without specifying Initial Catalog</em>.</p>
  
  <hr>
  
  <p>I have also tried connecting using <code>Microsoft.AnalysisServices</code>;</p>
  
  <pre><code>Microsoft.AnalysisServices.Server amoconn = new
  Microsoft.AnalysisServices.Server();
  
  String connstring = "Data Source = MyServerName;";
  amoconn.Connect(connectionString);// I get "A connection cannot be made. Ensure that the server is running." error here 
  Microsoft.AnalysisServices.Database db = amoconn.Databases.FindByName(amoconn.ConnectionInfo.Catalog);
  </code></pre>
  
  <p>Can anyone how to connect to server without requiring to provide Catalog/Database name?</p>