Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

How to Query Analysis Service Properties

$
0
0
Hi,Anyone knows a way to query the properties of an Analysis Service instance? I am trying to return the configured location of the backup files in SSAS. I tried to use the following query, but it keeps returning the values from the database engine. The "OLAPServer" was a guess, and I tried many different guessed names but couldn't make it work. Is there a way to find the return this by reading the registry or using MDX or T-SQL?declare @HkeyLocal nvarchar(18)declare @MSSqlServerRegPath nvarchar(31)declare @InstanceRegPath sysnamedeclare @SetupRegPath sysnamedeclare @RegPathParams sysnameselect @HkeyLocal=N'HKEY_LOCAL_MACHINE'-- Instance-based pathsselect @MSSqlServerRegPath=N'SOFTWARE\Microsoft\OLAPServer'select @InstanceRegPath=@MSSqlServerRegPath + N'\MSSQLServer'select @SetupRegPath=@MSSqlServerRegPath + N'\Setup'select @RegPathParams=@InstanceRegPath+'\Parameters'declare @SmoDefaultLog nvarchar(512)--exec master.dbo.xp_instance_regread @HkeyLocal, @InstanceRegPath, N'DefaultLog', @SmoDefaultLog OUTPUTexec master.dbo.xp_instance_regread @HkeyLocal,@SetupRegPath, N'SQLPath', @SmoDefaultLog OUTPUTPRINT @SmoDefaultLogThanks you!

Viewing all articles
Browse latest Browse all 1341

Trending Articles