PRB: Cannot Open a Client-Side Cursor for a SQL Query to OLAP Server (265263)
The information in this article applies to:
- Microsoft SQL Server OLAP Services 7.0
This article was previously published under Q265263 SYMPTOMS
Using ActiveX Data Objects (ADO), if you pass an MDX query to the SQL Server 2000 Analysis Services (OLAP) server, you can open a recordset by using either a client-side or server-side cursor. However, if you pass a SQL query (for example, "Select * from Sales") to OLAP server, you cannot open a client-side cursor. The following error occurs at adoRs.Open:
Change Failed
-2147217887
Multiple-step OLE DB operation generated errors. Check each OLE DB
status value, if available. No work was done.
CAUSE
This behavior is by design.
WORKAROUND
The following are three separate workarounds:
- Implement Sorting routing for the recordset in your application (by using additional arrays after you receive the recordset).
- Redesign the application to generate an MDX query instead of a SQL query.
- Use ADO to point to relational data and obtain the result set directly. ORDER BY will be available and you can also use client-side cursor.
Modification Type: | Major | Last Reviewed: | 11/6/2003 |
---|
Keywords: | kbprb KB265263 |
---|
|