Re: Stored procedure error propagation from MSSQL to PDO
| From: | Wez Furlong | Date: | Sun, 14 Jun 2009 15:11:23 +0000 |
| Subject: | Re: Stored procedure error propagation from MSSQL to PDO | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44275@lists.php.net to get a copy of this message | ||
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<massi@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:massi@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
>