Post by light_wti know how to find the database version liked using tsql
select serverproperty('ProductVersion')
or
how can i find the version of the cube or the analysis services? thanks.
I created myself a CLR procedure. Here is the main part you need:
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using AMO = Microsoft.AnalysisServices;
using ADOMD = Microsoft.AnalysisServices.AdomdServer;
namespace ServerProcs
{
public class ASProcs
{
public static string GetSrvVersion()
{
AMO.Server currSvr = new AMO.Server();
currSvr.CaptureXml = false;
currSvr.Connect("DataSource=" + ADOMD.Context.CurrentServerID + ";");
return currSvr.Version;
}
}
}
After you build and register the assebly, you can call this from DMX
language:
SELECT ServerProcs.GetSrvVersion()
FROM [Customer Clusters];
--
Dejan Sarka
http://blogs.solidq.com/EN/dsarka/