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

Article translations Article translations
Article ID: 243093 - View products that this article applies to.
This article was previously published under Q243093
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

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 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.

Properties

Article ID: 243093 - Last Review: February 28, 2014 - Revision: 5.1
APPLIES TO
  • Microsoft SQL Server 7.0 Standard Edition
  • Microsoft SQL Server OLAP Services
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB243093

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com