PHP for SQL Server Version 2.0 PDO LastInsertId and fetching scope_identity in sqlsrv not works. Both have bugs.
blogs.msdn.com