i have this function below. that i used to run on a MySQL DB. I had to move to a SQL Server 2008, easy thing.
But, after that, the rowCount()
rowCount()
Got it guys.
The prepare() statement should receive one more parameter. array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL) .
prepare()
array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL)
$stmt = $this->pdo->prepare($sql,array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));
After that the rowCount() should work fine.
Thanks for the answer @Rasclatt.