title: Node Js - TransactionError with mssql (ENOTBEGUN)
body: <p><strong>Node Js (v7.10.0) + mssql (3.3.0)</strong></p>
  
  <p>I want execute three statements in a transaction but when I try to commit, it return a error: TransactionError: Transaction has not begun. Call begin() first.</p>
  
  <pre><code>       var conn = new sql.Connection(dbConfig);
         conn.connect().then(function() {
            test();
         }).catch(function(err) {
            console.log(err);
         });        
  
      function test() {
         var mssqlTransaction = new sql.Transaction(conn);
          mssqlTransaction.begin(function(err) {
               var sqlInsert = "My Insert";
               var request1 = new sql.Request(mssqlTransaction);
               request1.query(sqlInsert, function(err, recordset) {
                  if (err != undefined &amp;&amp; err.length == 0) {
                      erros.push(err);
                  }                   
               });
  
               var sqlDelete = "My Delete";
               var request2 = new sql.Request(mssqlTransaction);
               request2.query(sqlDelete , function(err, recordset) {
                  if (err != undefined &amp;&amp; err.length == 0) {
                      erros.push(err);
                  }                   
               });
  
               var sqlUpdate = "My Update";
               var request3 = new sql.Request(mssqlTransaction);
               request3.query(sqlUpdate , function(err, recordset) {
                  if (err != undefined &amp;&amp; err.length == 0) {
                      erros.push(err);
                  }                   
               });
  
               mssqlTransaction.commit(function(err) {
                   console.log('Error in commit:'+err);
               });
          });
      }
  </code></pre>