Forum Discussion
alescan
Aug 20, 2021Brass Contributor
PHP PDOStatement::rowCount problem
Hello everyone, I have a problem with the rowCount() in this code: $sqlLoc= "DECLARE @Data2 AS DATE;
SET @Data2 = CONVERT(DATE,CONVERT(date, '$dataIncasso'), 102);
DECLARE ...
dga26
Oct 29, 2024Copper Contributor
UP
Same for us today,
Very strange behavior when iterating over multiple statement sometimes rowcount is correct, sometimes not and tracing query in standard ssms profiler, we see a line result > abort when rowcount is down
We have tried to use select @@ROWCOUNT for issue instead of rowcount (which returns -1) in vain...
We use doctrine dbal proxy for pdo_sqlsrv (5.12) driver and sqlserver 2022 for information