Microsoft Knowledge Base Email Alertz

(243093) - When making a connection to an OLAP data source and specifying an IP address for the Data Source property in an ADO or ADO*MD connection string, the following error occurs: Microsoft(r) OLE DB Provider for OLAP Services error '80004005' Cannot connect...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 243093 - Last Review: March 14, 2006 - Revision: 5.1

FIX: Using an IP Address for OLAP Data Source Connection Property Causes Error

This article was previously published under Q243093

SYMPTOMS

When making a connection to an OLAP data source and specifying an IP address for the Data Source property in an ADO or ADO*MD connection string, the following error occurs:
Microsoft(r) OLE DB Provider for OLAP Services error '80004005' Cannot connect to cube file, 'IP address' , file may be in use.

CAUSE

The OLAP provider is not properly resolving the IP address; instead, it expects the server name to be specified. OLAP handles the Data Source name with a dot in it as a file name, rather than an IP address.

WORKAROUND

If possible, use the computer name instead of the IP address.

One workaround for this problem is to edit the %Systemroot%\System32\Drivers\Etc\Hosts file and manually add an entry for the specified IP address and the corresponding host name.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
254561  (http://kbalertz.com/Feedback.aspx?kbNumber=254561/ ) INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

MORE INFORMATION

To reproduce the error, run the following code and use a valid IP address for the Data Source:
set cn = Server.CreateObject ("ADOdb.Connection")
cn.Open "Data Source=<ipaddress goes here>;Initial Catalog=FoodMart;Provider=msolap;"
				
This functionality is documented in the OLAP Books Online topic, as follows:
DBPROP_INIT_DATASOURCE Property:
Name of the server computer or local cube file.
Remarks:
This property's name, which is used in the connection string, is Data Source. The property's value depends on the intended operation mode: To work with an OLAP server, specify the name of the server computer, or LOCALHOST, or LOCAL, or an IP address.

APPLIES TO
  • Microsoft SQL Server 7.0 Standard Edition
  • Microsoft SQL Server OLAP Services
Keywords: 
kbbug kbfix KB243093
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate