When performing insert operations having buffered queries turned on, you get this exception: SQLSTATE[HY010]: [Microsoft][ODBC Driver Manager] Function sequence error This happens when running INSERT's and preparing the statement like this: $pdo_options[PDO::ATTR_CURSOR] = PDO::CURSOR_SCROLL; $pdo_options[PDO::SQLSRV_ATTR_CURSOR_SCROLL_TYPE] = PDO::SQLSRV_CURSOR_BUFFERED; return PDO::prepare($query, $pdo_options); This is happening in 3.0 and 3.1 version of the driver.