Exemple #1
0
        private bool ConnectSSASServer(string connectionString)
        {
            try
            {
                if (ssasServer == null)
                {
                    ssasServer = new AMO.Server();
                }

                if (ssasServer.GetConnectionState(true) != System.Data.ConnectionState.Open)
                {
                    ssasServer.Connect(connectionString);
                }

                return(true);
            }
            catch
            {
                return(false);
            }
        }