title: How does Connection.Execute work in VBScript?
body: <p>How does <code>Connection.Execute</code> work in VBScript?</p>
  
  <pre class="lang-vb prettyprint-override"><code>Dim Connection
  Set Connection = CreateObject("ADODB.Connection")
  connection.open(Parameter)
  
  Dim sql
  sql = "sql query"
  
  Dim RowsReturn
  Err.Clear
  Connection.CommandTimeout = 30  
  Connection.Execute SQLStatement, RowsReturn, 1
  </code></pre>
  
  <p>I am trying to rewrite the code in JavaScript. What am I missing below?</p>
  
  <pre class="lang-javascript prettyprint-override"><code>var connection = new ActiveXObject("ADODB.Connection");
  var rs = new ActiveXObject("ADODB.Recordset");  
  connectionstring = "Connection String "
  connection.Open(connectionstring);
  
  var sql = "Sql query"
  
  rs = connection.execute(sql);
  </code></pre>
  
  <p>I need help with understanding for the statement <code>Connection.Execute SQLStatement, RowsReturn, 1</code>.</p>