I'm trying to get metadata from the tables on my database (sql server). I execute the query to get that metadata on Sql Management Studio and it works but on php script show that error when i do : $row=sqlsrv_fetch_array($res): "Unexpected SQL type encountered in calc_string_size."
I suspected that the problem was on the build of the query string on the php but it's not because i printed that query and it's correct.
The problem appears when i added a field on the select (column description).
Anyone know that problem?