I’m using node-mssql 3.2.0 and I need to INSERT INTO a table and return the id of the inserted record. I can successfully use sql.Transaction() to insert data, but the only parameters given to callbacks (request.query() and transaction.commit()) are: So recordset is undefined for INSERT, UPDATE and DELETE statements, and affected is the number of rows affected, in my case