Use PDO_ODBC and make sure you are running with the most recent version of FreeTDS and its ODBC driver.
--Wez. On Mon, May 4, 2009 at 2:27 PM, Massimiliano Cavicchioli<ma...@zend.com> wrote: > Hi all, > I could not work out a way to make an error occurred on a stored procedure on > on MSSQL server (2005) propagate back into PHP using PDO and PDOStatement. > My setup is the following: > PHP 5.2.9 / PDO_DBLIB running on a CentOS 5.3 machine executing the most > simple stored procedure on a MSSQL Server 2005 that only does RAISERROR(). > Sample PHP code is attached. > Can anyone address me to a best practices tutorial regarding this case? > Thanks in advance, > Massi. > > > Massimiliano Cavicchioli > Senior Support Engineer > Zend Technologies, Ltd. > Email:ma...@zend.com > Tel:+972.3.6139544 > www.zend.com > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php