|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61199 SQLSRV problem to create new Transaction
Submitted: 2012-02-28 07:38 UTC Modified: 2020-02-07 14:50 UTC
From: mohammad dot saberi at gmail dot com Assigned: cmb (profile)
Status: Closed Package: sqlsrv (PECL)
PHP Version: 5.3.10 OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mohammad dot saberi at gmail dot com
New email:
PHP Version: OS:


 [2012-02-28 07:38 UTC] mohammad dot saberi at gmail dot com
From manual page:
I've used SQLSRV driever ver.2 with PHP. I must use SQL Transactions in my codes. 
But I get this error sometimes:
"New transaction is not allowed because there are other threads running in the 

I updated SQL SERVER Native client too, but it could not solve anything.

Test script:
// This is my psudo code
if (sqlsrv_begin_transaction( $sqlsrv->sqlsrvLink ) === true) {

   $firstQuery = sqlsrv_query($stmt1);
   if (!$firstQuery) {
   } else {
      $nextQuery = sqlsrv_query($stmt2);
      if (!$nextQuery) {
      } else {



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-28 08:51 UTC]
-Package: Unknown/Other Function +Package: sqlsrv
 [2012-02-28 08:51 UTC]
fix package
 [2020-02-07 14:50 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2020-02-07 14:50 UTC]
If you still experience this issue, please file a bug report at
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 17:01:24 2020 UTC