title: Update a specific row in Windows Azure Mobile Services SQL Database
body: <p>I am trying to update a specific row in Table of windows azure mobile services. </p>
  
  <p>item is a reference to a row in the ToDoItem table, which has had some changes made to it. </p>
  
  <pre><code>private void updateItem(final ToDoItem item) {
      if (mClient == null) {
          return;
      }
  
      new AsyncTask&lt;Void, Void, Void&gt;() {
  
          @Override
          protected Void doInBackground(Void... params) {
              try {
                  mToDoTable.update(item).get();
                  runOnUiThread(new Runnable() {
                      public void run() {
                          if (item.isComplete()) {
                              mAdapter.remove(item);
                          }
                          refreshItemsFromTable();
                      }
                  });
              } catch (Exception exception) {
                  createAndShowDialog(exception, "Error");
              }
              return null;
          }
      }.execute();
  }
  </code></pre>
  
  <p>and my Script in table is </p>
  
  <pre><code>function update(item, user, request) {
  
      request.execute();
  
  }
  </code></pre>
  
  <p>I want to select a row using an ID. While running this code, its just inserting a new row. Where i have to pass , ID , to update only the specified row. </p>