Quantcast
Channel: Microsoft Drivers for PHP for SQL Server forum
Viewing all articles
Browse latest Browse all 391

Columns with numeric names are not retrieved using sqlsrv_fetch_object

$
0
0

I pivot some data into tables with the year as the column name. When I use sqlsrv_fetch_object, the columns with numeric names don't return.

Example:

SELECT [someText], [someMoreText], [2014],[2015],[2016] FROM someTable

returns the first 2 columns only using sqlsrv_fetch_object.

SELECT [someText], [someMoreText], [Y2014],[Y2015],[Y2016] FROM someTable

returns 5 columns using sqlsrv_fetch_object.

Is this a bug in the SQL Drivers for PHP or the underlying native client?

Microsoft Drivers for PHP for SQL Server 3.0

SQL Server 2008 R2

SQL Native Client 11.0

PHP 5.3.28


Viewing all articles
Browse latest Browse all 391

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>