<feed version="0.3" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://purl.org/atom/ns#" xml:lang="en-US"><title>Microsoft Analysis Services</title><link rel="alternate" type="text/html" href="http://www.sqljunkies.com/WebLog/edwardm/default.aspx" /><tagline type="text/html" /><id>http://www.sqljunkies.com/WebLog/edwardm/default.aspx</id><author><url>http://www.sqljunkies.com/WebLog/edwardm/default.aspx</url></author><generator url="http://communityserver.org" version="1.0.1.50214">Community Server</generator><modified>2006-05-26T04:16:00Z</modified><entry><title>Troubleshooting Analysis Services 2005 connectivity problems</title><link rel="alternate" type="text/html" href="http://www.sqljunkies.com/WebLog/edwardm/archive/2006/05/26/21447.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:21447</id><created>2006-05-26T04:16:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are several causes for connectivity problems.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV&gt;Client components problems.&lt;/DIV&gt;
&lt;LI&gt;
&lt;DIV&gt;Firewall&lt;/DIV&gt;
&lt;LI&gt;
&lt;DIV&gt;Security problems.&lt;/DIV&gt;
&lt;LI&gt;
&lt;DIV&gt;Other problems&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Just to remind. There are two protocols you can use to connect to Analysis Server: TCP/IP and HTTP.&lt;BR&gt;Here are pointers to whitepapers on how to configure HTTP connectivity:&lt;BR&gt;&lt;A href="http://www.microsoft.com/technet/prodtechnol/sql/2005/httpssas.mspx"&gt;http://www.microsoft.com/technet/prodtechnol/sql/2005/httpssas.mspx&lt;/A&gt;&amp;nbsp;&lt;BR&gt;&lt;A href="http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx"&gt;http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;Client components problems.&lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;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)&lt;BR&gt;First make sure you have correct version of the client object model installed. The latest version of the client object model could be found&amp;nbsp; at ( at the time of writing this article) &lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&amp;amp;displaylang=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Install latest version of the client component.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Some information about dependencies for Client components:&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AS 2005 OLEDB is dependent on the MSXML6.&lt;BR&gt;ADOMD.NET and AMO depends on the .NET Framework 2.0 to be installed.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;&lt;FONT&gt;Firewall&lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;If you have Firewall enabled on your machine,&amp;nbsp; you will need to make sure you open TCP ports so Analysis Server can accept incoming connections.&lt;BR&gt;The port numbers Analysis Server listens to are following;&lt;BR&gt;2383 – port default instance of Analysis Server listens to&lt;BR&gt;2382 – port SQL Browser service listens to for Analysis Services requests.&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;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 &amp;lt; Instances&amp;gt; section in it.&lt;BR&gt;For example you might see following in it;&lt;BR&gt;&lt;EM&gt;&lt;FONT&gt;&amp;nbsp;&amp;lt;Instances&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Instance&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Name&amp;gt;Inst1&amp;lt;/Name&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Port&amp;gt;56178&amp;lt;/Port&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/Instance&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;lt;/Instances&amp;gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;This means your machinename\Inst1 is listening on the port 56178.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In many situations you would like to ensure your named instance is not picking port by itself but listens on pre-defined port.&lt;BR&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Windows Firewall&lt;BR&gt;&lt;/STRONG&gt;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”.&lt;BR&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Non-Windows Firewalls&lt;BR&gt;&lt;/STRONG&gt;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.&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;STRONG&gt;&lt;FONT&gt;Security problems&lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;Most of the problems here related to the fact that user establishing connection to Analysis Server doesn’t have sufficient privileges.&lt;BR&gt;&amp;nbsp;&lt;BR&gt;There are two stages of security checks user connection is passing;&lt;BR&gt;Authentication&lt;BR&gt;Authorization&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Authentication means that Analysis Server can establish user identity.&lt;BR&gt;Most of the problems with Authentication are because Analysis Sever cannot establish who the user connecting.&amp;nbsp; For instance Analysis Server running on the machine A, user is trying to connect from machine B.&lt;BR&gt;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.&lt;BR&gt;If user connecting with local machine B credentials, machine A will to be able to recognize the user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Authorization is process where Analysis Server establishes access permissions for authenticated user.&lt;BR&gt;Make sure user connecting is member of one or more security roles. Otherwise after connecting you will not see any of databases.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;&lt;FONT&gt;Other problems:&lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;Several obvious things to try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure Analysis Server service is running;&lt;BR&gt;Default name appears under name SQL Server Analysis Services (MSSQLSERVER) in Service Control Manager.&lt;BR&gt;Named instances will be named as SQL Server Analysis Services (InstName).&lt;BR&gt;For named instances make sure SQL Server Browser service.&amp;nbsp; 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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure the account password for Analysis Server service has not expired.&lt;BR&gt;Just restart Analysis Server service to verify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;Tools for troubleshooting connectivity.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;MDXSampe app.&lt;BR&gt;&lt;/STRONG&gt;Surprisingly the simplest client tool for troubleshooting connectivity problems I’ve found is MDXSample application shipped with SQL Server 2000.&lt;BR&gt;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.&amp;nbsp; You will find them in windows\system32 folder on you AS2000 machine.&lt;BR&gt;MDXSample is using AS2005 OLEDB.&lt;BR&gt;Run MDXSample and try to see if you are able to connect to AS2005.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SQL Server Profiler.&lt;BR&gt;&lt;/STRONG&gt;Use Profiler to monitor Analysis Server. You should be able to Audit Login event in case user is authenticated with Analysis server.&amp;nbsp; You will see username in the NTUserName column.&lt;BR&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Network Tools.&lt;BR&gt;&lt;/STRONG&gt;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 ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;Common errors;&lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;Some of commonly encountered error messages:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#1&lt;BR&gt;&lt;EM&gt;No such host is known…&lt;BR&gt;&lt;/EM&gt;This error indicates you are trying to connect to non existing machine on the network, or machine is not available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#2&lt;BR&gt;&lt;EM&gt;No connection could be made because the target machine actively refused it.&lt;BR&gt;&lt;/EM&gt;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.&lt;BR&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#3&lt;BR&gt;&lt;EM&gt;An error occurred while named instance information was being retrieved from the SQLBrowser service on the ‘MACHINENAME’ server.&lt;BR&gt;&lt;/EM&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#4&lt;BR&gt;&lt;EM&gt;A valid instance named ‘MyInst’ cannot be found on the ‘MACHINENAME’ server.&lt;BR&gt;&lt;/EM&gt;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.&lt;BR&gt;Test your instance name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edward Melomed. &lt;/P&gt;
&lt;P&gt;Program Manager,&amp;nbsp;&amp;nbsp;Analysis Services.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://www.sqljunkies.com/WebLog/aggbug.aspx?PostID=21447" width="1" height="1"&gt;</content><slash:comments>455</slash:comments><wfw:commentRss>http://www.sqljunkies.com/WebLog/edwardm/commentrss.aspx?PostID=21447</wfw:commentRss></entry></feed>