SQL Server 2008 - Mining datas to PHP - Error 37000



    I have set up connectivity from PHP server to SQL Server 2008 while ODBC(Free TDS). I am using ODBC_*() PHP functions. Function odbc_connect() for connectig to MSSQL and odbc_tables() for show all tables from database working fine. But If I try to load data with this SQL query: "SELECT TOP 100 * FROM table", it return me only follow error message.

    Error code is: "37000". And message is: "[unixODBC][FreeTDS][SQL Server]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 1 (""): Data type 0x00 is unknown."

    I can't search any relevant in documentation or in web. Do anybody know, what caused it?

    Thank you

    Wednesday, November 27, 2013 5:32 PM


All replies