[freetds] php odbc_exec problem

James K. Lowden jklowden at freetds.org
Thu Jan 22 21:39:55 EST 2009


Lorenz, Marcus wrote:
> i can't execute any statements using parameter bindings. If i include
> the parameters into the query directly i get the expected results. If i
> pass them to odbc_execute as an array i only get the following error:
>  
> odbc_mssql error: [00000: °     ±ÿÂ] in EXECUTE("select  top 1 * from
> master.Importstatus WHERE importer=? order by id desc")
>  
> The odbc_prepare() before returns a valid statement resource.
>  

I would be interested to see a TDSDUMP log of your session.  When
debugginhg ODBC problems, I often find it useful to direct both the OCBC
trace (usually level 3) and TDSDUMP to stderr. 

--jkl


More information about the FreeTDS mailing list