Hi,

the setTransactionIsolationLevel() function is available only for Sqlsrv
adapter (Zend_Db_Adapter_Sqlsrv).
This function is not supported by PDO adapters, that is your case.
I see that you are using Windows, if you are running the PHP application on
a Microsoft environment, I suggest to use the Sqlsrv native adapter of
Microsoft.

Regards,
Enrico Zimuel




On Thu, Sep 17, 2015 at 12:42 PM, vtsuper <[email protected]> wrote:

> But whats wrong with this statement, it always return error
>
> $this->getAdapter()->setTransactionIsolationLevel(SQLSRV_TXN_READ_UNCOMMITTED);
>
>  Fatal error: Call to undefined method
> Zend_Db_Adapter_Pdo_Sqlsrv::setTransactionIsolationLevel() in
> C:\wamp\www\project\application\modules\report\models\Item.php on line
>
>
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/how-to-use-zend-create-with-nolock-select-query-tp4662676p4662679.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: [email protected]
> Info: http://framework.zend.com/archives
> Unsubscribe: [email protected]
>
>
>


-- 

Enrico Zimuel
Senior Software Engineer | [email protected] Team           |
http://apigility.orgZend Framework Team      |
http://framework.zend.comZend Technologies Ltd.http://www.zend.com

Reply via email to