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

ID: Q243093


The information in this article applies to:
  • Microsoft SQL Server OLAP Services version 7.0


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


RESOLUTION

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 bug in the Microsoft products listed at the beginning of this article.


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.

Additional query words:

Keywords : kbGrpVCDB kbDSupport kbOLAP700bug
Version : winnt:7.0
Platform : winnt
Issue type : kbbug


Last Reviewed: December 14, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.