Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

What is the namespace of SQL Server 2017 database?

$
0
0

What is the namespace of Azure Analysis Services / SQL Server 2017 (1400)?

So i have the following script that returns connection string of databases under server

Import-ModuleSqlServer#SSAS 1103 
$oldAS =New-ObjectMicrosoft.AnalysisServices.Server
$oldAS.connect("server1")

foreach ($db in $oldAS.Databases){#$dbName = $db.NameWrite-Host $db.Name-Fore green
  $db.DataSources|ForEach-Object{$_.ConnectionString}}#SSAS 1200-1400 
$AS = new-ObjectMicrosoft.AnalysisServices.Tabular.Server
$AS.Connect("server1")

foreach ($dbt in $AS.Databases){
  $dbName = $dbt.Name
  $dbName
  $dbt.model.datasources[0].ConnectionString}

the first connection/namespace is used for compatibility levels 1103 the 2nd connection/namespace Microsoft.AnalysisServices.Tabular.Server is used for db's 1200-1400

however, we recently got databases that are 1400 but have a completely different format of connection string. the connection seems to be in JSON, even when looking at it from properties, compared to the traditional long connection string

i.e.

UserId=;DataSource=;PersistSecurityInfo=True

VS

json

any databases with a data source of that format in the picture is not displaying back

is there another namespace used to get this type of connection?


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>