|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-26 08:46 UTC] tony2001@php.net
[2010-06-21 09:30 UTC] ssufficool@php.net
[2010-06-21 09:31 UTC] ssufficool@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: ssufficool
[2010-06-21 09:31 UTC] ssufficool@php.net
[2010-06-21 09:32 UTC] ssufficool@php.net
[2011-04-29 22:36 UTC] urkle at outoforder dot cc
[2011-04-30 17:48 UTC] ssufficool@php.net
[2011-04-30 20:32 UTC] pajoye@php.net
[2011-04-30 21:04 UTC] ssufficool@php.net
[2011-04-30 21:19 UTC] pajoye@php.net
[2011-05-07 19:11 UTC] ssufficool@php.net
[2011-09-17 14:58 UTC] vds dot jeroen at gmail dot com
[2012-03-10 09:02 UTC] programmer at finner dot de
[2012-03-15 12:38 UTC] programmer at finner dot de
[2013-05-28 17:53 UTC] mneyman at yesco dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
Description: ------------ I'm connecting from a Linux/Apache/PHP server to a Microsoft SQL Server 2000 database using PDO with the DBLIB driver. Attempting to use transactions produces the exception 'This driver doesn't support transactions'. Reproduce code: --------------- $dsn = 'dblib:host=' . $server . ';dbname=' . $dbName; $user = 'tempUser'; $pwd = 'tmpPwd'; $table = 'sqlTable'; $column = 'colName'; $value = 'value'; $sql = 'Insert Into ' . $dbName; $sql .= ' (' . $column . ')'; $sql .= ' Values ' . $value; $conn = new PDO($dsn, $user, $pwd); $conn->beginTransaction(); $conn->exec($sql); $conn->commit(); Expected result: ---------------- The value should be inserted into the table. Actual result: -------------- Fatal error: Uncaught exception 'PDOException' with message 'This driver doesn't support transactions' in /var/www/html/business/entity.php:37 Stack trace: #0 /var/www/html/business/entity.php(37): PDO->beginTransaction() #1 {main} thrown in /var/www/html/business/entity.php on line 37