Database classes for SQL Server 2005 and SQL Server 2008 (using php_sqlsrv.dll from the Microsoft Data Programmability t |
[eluser]broadband[/eluser]
Using: - IIS 7.5 & FastCGI - PHP 5.3.5 (thread safe) - MSSQL MSDE - sqlsrv 2.0 lib(dll) - http://www.phrenzy.org/code/sqlsrv-1.1.tar.gz I have problems with performance when using: Code: $stmt = sqlsrv_query($conn, $tsql, null, array( Above code works slow but num_rows() works. If I use SQLSRV_CURSOR_FORWARD everything works quite fast, but num_rows doesn't work as is described in API. PHP outputs some NOTICE. For this to work I also had to change this two methods: Code: function _execute($sql) Any ideas how to keep the performance and still have num_rows functionality? |
Welcome Guest, Not a member yet? Register Sign In |