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.
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.
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.
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.
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:
254561For more information, contact your primary support provider.
(http://support.microsoft.com/kb/254561/ )INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
To reproduce the error, run the following code and use a valid IP address for the Data Source:
This functionality is documented in the OLAP Books Online topic, as follows:
Name of the server computer or local cube file.
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.