ID:               32278
 Comment by:       mcollard at hotmail dot com
 Reported By:      raulionescu at gmail dot com
 Status:           No Feedback
 Bug Type:         MSSQL related
 Operating System: WinXP Pro
 PHP Version:      5.0.4
 New Comment:

Seconded, this issue is ongoing and problematic.


Previous Comments:
------------------------------------------------------------------------

[2009-02-19 12:56:46] aromal at gmail dot com

any update on this? 
somebody there to give us a reply?

------------------------------------------------------------------------

[2008-07-02 16:35:05] steven_crombie at yahoo dot com

Additional comment to the post above...

To test that there was nothing amiss with the setup, code, or database
server, I changed the query to pull data from a database local to the
SQL Server (not linked database).  I got the expected result set.

------------------------------------------------------------------------

[2008-07-01 21:04:27] steven_crombie at yahoo dot com

Web Server:
  php 5.2.5
  Windows 2003 Server Standard SP1
  IIS 6.0

SQL Server:
  SQL Server 2005
  Windows 2003 Server Standard SP2
  Management Studio 9.00.3042.00

I have not been able to get a result set when using php to query the MS
SQL Server when the query references a linked server.  

I have also tried putting the query in a database view and querying the
view instead of directly to the tables.  Still no results. 

I have also tried putting my query in a stored procedure and calling
the stored procedure.  Still no results returned.

All three methods (direct query, view, and stored procedure) produce
good results when using Management Studio or the sqlcmd utility.

A fix for this long-standing problem would be most appreciated.

------------------------------------------------------------------------

[2008-06-09 20:07:08] cmoore at getzeroedin dot com

I'm experiencing the same error, Warning: mssql_query()
[function.mssql-query]: message: Heterogeneous queries require the
ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This
ensures consistent query semantics. Enable these options and then
reissue your query, when attempting to execute a linked MDX query to SQL
Server Analysis Services (an analytics cube).  Below is the query ....

set ANSI_NULLS ON;
set ANSI_ARNINGS ON;

exec sp_addlinkedserver 
@server='linked_olap', 
@srvproduct='', 
@provider='MSOLAP.3', 
@datasrc='scout', 
@catalog='Adventure Works DW Standard Edition'
;


SELECT * 
FROM OpenQuery(linked_olap,'SELECT 
  {Measures.[Internet Order Count]} ON COLUMNS , 
  [Product].[Category].members ON ROWS
FROM [Adventure Works]') 
;

exec sp_dropserver 'linked_olap'
;
------------

In the linked server procedure, 'scout' is my database server name, but
Adventure Works is the sample analysis server data warehouse (cube), so
you should be able to recreate this simply.

Are there any plans to support native MDX queries against a SQL Server
Analysis Server, or plans to resolve this issue?

------------------------------------------------------------------------

[2008-04-30 16:41:06] webster_jack at hotmail dot com

Hi
Has this bug been fixed?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/32278

-- 
Edit this bug report at http://bugs.php.net/?id=32278&edit=1

Reply via email to