Microsoft Analysis Services

<July 2008>
SuMoTuWeThFrSa
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789


Navigation

Subscriptions



Troubleshooting Analysis Services 2005 connectivity problems

After answering quite a few questions on the Microsoft forum and getting some common questions regarding connectively to analysis services 2005 it is time to have a common place for look for information about how to troubleshoot connectivity:

 

There are several causes for connectivity problems.

  • Client components problems.
  • Firewall
  • Security problems.
  • Other problems

Just to remind. There are two protocols you can use to connect to Analysis Server: TCP/IP and HTTP.
Here are pointers to whitepapers on how to configure HTTP connectivity:
http://www.microsoft.com/technet/prodtechnol/sql/2005/httpssas.mspx 
http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx

 

When troubleshooting HTTP connectivity problems, first make to connect to Analysis Server using TCP/IP from IIS machine using same credentials you use for IIS virtual directory.

 

Client components problems.

When using client application to connect to Analysis Services 2005 you are usually relying on one of the two object models: Analysis Services 2005 OLE DB provider, or ADOMD.NET. There is another object model that is used for management of Analysis Server objects – Analysis Management Objects (AMO)
First make sure you have correct version of the client object model installed. The latest version of the client object model could be found  at ( at the time of writing this article) http://www.microsoft.com/downloads/details.aspx?familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en

Install latest version of the client component.


Some information about dependencies for Client components:

You don’t need to guess the dependencies for the client component you are installing. The setup for component will give you a message in case some dependency is missing:

 

AS 2005 OLEDB is dependent on the MSXML6.
ADOMD.NET and AMO depends on the .NET Framework 2.0 to be installed.


Firewall
If you have Firewall enabled on your machine,  you will need to make sure you open TCP ports so Analysis Server can accept incoming connections.
The port numbers Analysis Server listens to are following;
2383 – port default instance of Analysis Server listens to
2382 – port SQL Browser service listens to for Analysis Services requests.

Named instance of Analysis Services will dynamically pick ports to listen on your machine. The easiest way for you to discover TCP port named instance listens is to look at the configuration file for SQL Server Browser file. Open file located on the %Program files%\Microsoft SQL Server\90\Shared\ASConfig. Open msmdredir.ini file and look at the < Instances> section in it.
For example you might see following in it;
 <Instances>
  <Instance>
   <Name>Inst1</Name>
   <Port>56178</Port>
  </Instance>
 </Instances>


This means your machinename\Inst1 is listening on the port 56178.

 

In many situations you would like to ensure your named instance is not picking port by itself but listens on pre-defined port.
For that, you can modify the Port – Analysis Server property. Make sure you restart Analysis Server and SQL Server Browser service after changing this property.

 

Windows Firewall
Depending on the operating system you are running windows firewall admin interface is found in different places. On Windows XP you were to go into Control Panel and click on the “Windows Firewall”.
On Windows Server 2003 you go into “Network Connections” , click on individual connection, go into Advanced Tab and there you would find Widows Firewall settings.

 

Non-Windows Firewalls
Many antivirus software applications nowadays will install firewalls on your machine. Please refer to particular software manufacturer documentation about opening ports for Analysis Server to use.
 
Security problems
Most of the problems here related to the fact that user establishing connection to Analysis Server doesn’t have sufficient privileges.
 
There are two stages of security checks user connection is passing;
Authentication
Authorization

 

Authentication means that Analysis Server can establish user identity.
Most of the problems with Authentication are because Analysis Sever cannot establish who the user connecting.  For instance Analysis Server running on the machine A, user is trying to connect from machine B.
If user connecting with Domain\user credentials, machine A can recognize the user. That in the case if machine A is registed with Doman or trust relationships are established between domains.
If user connecting with local machine B credentials, machine A will to be able to recognize the user.

 

By default Analysis Server will not allow anonymous connections (connections coming under unrecognizable user credentials). Temporarily for troubleshooting purposes you can enable anonymous users to connect using ether SAC (Surface Area Configuration for Features) or modifying Security\RequireClientAuthentication server property.

 

Authorization is process where Analysis Server establishes access permissions for authenticated user.
Make sure user connecting is member of one or more security roles. Otherwise after connecting you will not see any of databases.


Other problems:
Several obvious things to try:

 

Make sure Analysis Server service is running;
Default name appears under name SQL Server Analysis Services (MSSQLSERVER) in Service Control Manager.
Named instances will be named as SQL Server Analysis Services (InstName).
For named instances make sure SQL Server Browser service.  If SQL Server Browser service is not running or you suspect it not functioning correctly you can try and bypass it by using following format for the server name when connecting: Servername:Port. For instance Edwardm2:56178.

 

Make sure the account password for Analysis Server service has not expired.
Just restart Analysis Server service to verify.

 

Make sure Analysis Server will allow connections from other machine. Although it is not common, and by default this situation will not happen to you. But this is possible: SQL Server Surface Area Configuration (SAC) tool allows you to force Analysis Server to listen to local connections only. Please make sure to open SAC, click on “Surface Area Configuration for Services and Connections”, expand node for Analysis Services and make sure Remote connections has “Local and Remote Connections” radio button selected.

 

Tools for troubleshooting connectivity.

 

MDXSampe app.
Surprisingly the simplest client tool for troubleshooting connectivity problems I’ve found is MDXSample application shipped with SQL Server 2000.
Compile MDXSample. Copy the executable over to your AS2005 machine. You will need to copy couple more binaries along with it comctl32.ocx and msflxgrd.ocx.  You will find them in windows\system32 folder on you AS2000 machine.
MDXSample is using AS2005 OLEDB.
Run MDXSample and try to see if you are able to connect to AS2005.

 

SQL Server Profiler.
Use Profiler to monitor Analysis Server. You should be able to Audit Login event in case user is authenticated with Analysis server.  You will see username in the NTUserName column.
Session Initialize event will tell you about user able to create session. Sessions are associated with particular database, if you see session created, that means user was granted access to specific database. You will see name of the database in the DatabaseName column.

 

Network Tools.
You should be able to use variety of tools to see if you can access specific machine ( ping). Or to see if particular port is open ( port scanner ).

 

Common errors;
Some of commonly encountered error messages:

 

#1
No such host is known…
This error indicates you are trying to connect to non existing machine on the network, or machine is not available.

 

#2
No connection could be made because the target machine actively refused it.
You will receive this error message if client application was able to find server machine, but couldn’t connect to specific port. Try stopping your Analysis Server and you will receive this error next time you try to connect.
If you are trying to connect to the named instance and you are receiving this error, it means that client application was able to retrieve port information from SQLBrowser and made an attempt to connect using this port, but it couldn’t.

 

#3
An error occurred while named instance information was being retrieved from the SQLBrowser service on the ‘MACHINENAME’ server.
You will receive this error when trying to connect to named Analysis Server instance and client application cannot establish connection to SQLBrowser service listening on the port 2382.

 

#4
A valid instance named ‘MyInst’ cannot be found on the ‘MACHINENAME’ server.
This error message tells you: You were able to connect to SQLBrowser but it couldn’t find any instance name matching yours. Just to test it, use some arbitrary non-existent instance name: “localhost\1111” as your server name and you will receive this error.
Test your instance name.

 

Edward Melomed.

Program Manager,  Analysis Services.

 

posted on Friday, May 26, 2006 4:16 AM by edwardm


# Edward Melomed started a new Analysis Services blog @ Saturday, May 27, 2006 10:06 PM

New Analysis Services dedicated blog to take notice of - http://www.sqljunkies.com/WebLog/edwardm/&amp;nbsp;started...

Anonymous

# Scrum for Team System Troubleshooting Part Trois @ Tuesday, June 27, 2006 1:29 PM

Anonymous

# Scrum for Team System Troubleshooting Part Trois @ Tuesday, June 27, 2006 2:13 PM

Anonymous

# Scrum for Team System Troubleshooting Part Trois @ Tuesday, June 27, 2006 2:14 PM

Anonymous

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, August 23, 2006 1:17 AM

Hi I checked out the article at
http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx
Seems the only source for this on the web. One question arises. Is http access related to the version of SQL 2005 (Standard, Enterprise). At least ProClarity manuals for SQL 2000 + PAS talk about Enterprise.

Mat2s2on

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Thursday, November 09, 2006 4:42 AM

Hi,

I have a question abt your article. When you talk about firewall and ports, are you then refering to the client as well as the server?

We have some problem connection to the analysis server from clients that are behind a firewall (we are using https), but the same connection works from a PC that is not behind a firewall.

Cheers
Øyvind

&#216;yvind Elnan

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Thursday, November 23, 2006 6:46 PM

The msdn articles are quite good but to set up connection we also needed to give the "Read & Execute" privilege to the built in account "NETWORK SERVICE".

mjsk

# Analysis Services 2005 Connectivity @ Wednesday, December 06, 2006 12:24 PM

Anonymous

# Analysis Services 2005 Connectivity @ Wednesday, December 06, 2006 12:24 PM

Anonymous

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, February 07, 2007 1:19 PM

Opened 2383 on the server: problem solved!

Thanks for this great post!

Brian

Brian

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, February 28, 2007 4:23 AM

Hi,

I try to install the datapump in a middle tier machine but it doesn't run. Is there a tip or a step I haven't done.

Although I have followed the step from microsoft website, the msdn help page is not very helpfull.

My first machine point to the IIS olap website in the middle tier machine and the config file contains :
<ServerName>http://secondmachine/olap/msmdpump.dll</ServerName>

Any idea please ????

anonymous

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, March 21, 2007 10:04 AM

Following observation for Named Instance of Analysis Services:

It looks that when in the ini file of the OLAP Server (msmdsrv.ini) the port is specified to 0, the OLAP server will choose a dynamic port - so far this makes sense for me.

However, at least on our machine, SQLBrowser never finds out about this dynamic port. The only way I could convince SQLBrowser to listen on the right port for a Named Instance, is to specify a real static port number of the Named Instance in the ini files of the SQL Browser (file msmdredir.ini, section <Instances><Port>) and the OLAP Server (file msmdsrv.ini, section <ConfigurationSettings><Port>) and of course this port number must match.

So, summing up, is it true that SQL Browser never ever can resolve Named Instances of Analysis Service with dynamic ports (port 0 in ini file) e.g. by scanning running OLAP processes at run time????

If not, how can I achieve that goal????

Regs,
Mark

Mark Wehrmann

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 02, 2007 8:41 AM

Interesting...

Kostantinos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, April 03, 2007 4:22 PM

Cool}Cool!

Anninos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Friday, April 06, 2007 7:31 PM

Nice

Ivan

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 08, 2007 12:46 PM

Nice

Giannis

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 09, 2007 12:32 PM

Nice

Socrates

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, April 10, 2007 3:49 PM

Nice!

Anaklets

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, April 11, 2007 8:33 PM

interesting

Chrysostomos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 14, 2007 8:25 PM

Nice...

Loukas

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 15, 2007 3:25 AM

Nice!

Iakovos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 15, 2007 4:26 AM

Cool}Cool!

Crist

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 15, 2007 10:50 AM

Interesting...

Apostolos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 15, 2007 3:59 PM

Nice...

Platon

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, April 17, 2007 2:06 AM

Nice!

Emmanuel

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, April 17, 2007 7:30 AM

Nice

Athanasios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, April 17, 2007 8:26 PM

Nice

Themestoclis

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, April 17, 2007 8:40 PM

interesting

Timotheos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, April 18, 2007 1:42 AM

Nice...

Koinos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, April 18, 2007 4:13 AM

Nice

Ivan

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Thursday, April 19, 2007 12:29 PM

Nice

Carolos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Friday, April 20, 2007 12:44 AM

Cool...

Grigoris

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Friday, April 20, 2007 5:42 AM

Cool}Cool!

Kyriacos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Friday, April 20, 2007 7:15 AM

Cool}Cool!

Thanos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Friday, April 20, 2007 9:50 PM

Nice

Neophytos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Friday, April 20, 2007 9:54 PM

interesting

Kostas

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 21, 2007 1:59 AM

Cool}Cool!

Nicolas

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 21, 2007 11:55 AM

interesting

Chrysostomos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 21, 2007 11:56 AM

interesting

Chrysostomos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 21, 2007 5:11 PM

Cool}Cool!

Evis

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 21, 2007 6:21 PM

Cool}Cool!

Yioryios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 22, 2007 12:51 AM

Interesting...

Andreas

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 22, 2007 4:30 AM

Nice!

Vasilios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 22, 2007 9:41 AM

interesting

Moris

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 22, 2007 11:43 AM

Nice

Pericles

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 22, 2007 2:25 PM

Nice...

Stratos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 23, 2007 12:37 AM

interesting

Arion

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 23, 2007 9:04 AM

Nice

Stavros

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 23, 2007 7:25 PM

Cool}Cool!

Miltos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, April 24, 2007 5:48 AM

Interesting...

Nektarios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, April 24, 2007 12:23 PM

interesting

Tzannas

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, April 24, 2007 3:54 PM

Nice...

Panayotis

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, April 24, 2007 7:34 PM

Nice!

Koinos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, April 25, 2007 11:20 AM

Nice!

Vasileios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, April 25, 2007 2:31 PM

interesting

Yiorgos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, April 25, 2007 2:31 PM

interesting

Yiorgos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Thursday, April 26, 2007 3:12 AM

Nice

Tataki

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Thursday, April 26, 2007 5:37 AM

Nice!

Kosta

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Friday, April 27, 2007 1:08 PM

Cool}Cool!

Ivan

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Friday, April 27, 2007 1:25 PM

interesting

Philippos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 28, 2007 12:07 AM

Cool}Cool!

George

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 28, 2007 3:21 AM

interesting

Metrophanes

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 28, 2007 12:09 PM

Nice...

Efthimios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 28, 2007 1:09 PM

Cool}Cool!

Efstratios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 28, 2007 1:09 PM

Cool}Cool!

Efstratios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, April 28, 2007 10:24 PM

interesting

Theophanis

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 29, 2007 4:53 AM

Cool...

Ambrosios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 29, 2007 5:45 AM

interesting

Eleni

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 29, 2007 9:00 AM

Cool...

Stelios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 29, 2007 9:27 AM

Nice!

Emmanuil

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, April 29, 2007 5:38 PM

interesting

Yannis

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 30, 2007 1:50 AM

interesting

Titos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 30, 2007 7:05 AM

Cool.

Cletus

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 30, 2007 9:26 AM

interesting

Ignatios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 30, 2007 10:27 AM

Nice!

Nikolaos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 30, 2007 10:27 AM

Nice!

Nikolaos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, April 30, 2007 1:56 PM

Cool...

Iason

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, May 01, 2007 8:29 AM

Interesting...

Athones

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, May 02, 2007 1:43 AM

Nice...

Aniketos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, May 02, 2007 9:06 AM

Cool.

Nathanael

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, May 02, 2007 9:44 AM

Cool...

Rhigas

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, May 02, 2007 9:45 AM

Cool...

Rhigas

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, May 02, 2007 12:18 PM

Interesting...

Angelos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, May 02, 2007 4:48 PM

Interesting...

Ivan

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, May 02, 2007 9:03 PM

Nice

Haralambos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Thursday, May 03, 2007 12:16 AM

Cool.

Demosthenes

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Thursday, May 03, 2007 5:10 PM

Interesting...

Hermes

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Thursday, May 03, 2007 5:13 PM

Interesting...

Hermes

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Thursday, May 03, 2007 6:14 PM

Sorry :(

Valerios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Friday, May 04, 2007 5:06 PM

Cool...

Nicolaon

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Friday, May 04, 2007 9:19 PM

interesting

Nathanael

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, May 05, 2007 3:51 AM

Nice

Lefteris

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Saturday, May 05, 2007 9:04 AM

Cool!

Chrysostomos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Sunday, May 06, 2007 3:37 PM

interesting

Leo

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, May 07, 2007 11:12 AM

Nice!

Eleni

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, May 07, 2007 1:52 PM

Nice...

Aineias

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, May 07, 2007 9:15 PM

Nice...

Gondikas

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, May 08, 2007 12:00 PM

Nice

Vaggelis

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, May 14, 2007 2:36 AM

Cool...

Sotirios

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, May 14, 2007 3:23 AM

Cool.

Emmanouil

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Monday, May 14, 2007 4:03 PM

Cool...

Drymiotes

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, May 15, 2007 10:05 AM

interesting

Carolos

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Tuesday, May 15, 2007 1:47 PM

Nice

Othon

# re: Troubleshooting Analysis Services 2005 connectivity problems @ Wednesday, May 16, 2007 12:21 AM

Sorry :(