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?