[freetds] unixODBC via FreeTDS, PHP and Stored Procedure Help

Frank M. Kromann frank at kromann.info
Thu Jul 1 16:24:44 EDT 2004


Hi,

> 
> That leaves PHP, which I don't use.  Unless the mssql extension supports
the db-lib rpc functions -- unless, that is, you see some explicit support
for stored procedures and parameter binding -- you're not going to be able
to fetch output parameters.  The workaround is to call a wrapper procedure
that selects the output values, creating a normal resultset.  
> 

This is infact the case. the PHP extension has three function
mssql_init(), mssql_bind() and mssql_execute() to handle parameter and
return values to/from stored procedures.

- Frank






More information about the FreeTDS mailing list