title: C++\SQL ODBC: Get row from table
body: <p>I'm trying to get the rpw 'AID' from the table 'Account'.</p>
  
  <pre><code>SQLCHAR AID;
  wsprintf(String, "select [AID] from [Account] where [UserID] = '%s'", User);
  Sql.RetCode = Sql.Execute(String);
  Sql.RetCode = Sql.Fetch();
  Sql.Clear();
  sprintf(String, "Here my result: %s", SQL RETURN!);
  MsgBox(String);
  
  How can i get the [AID] from the table [Account] ? (For User 'idohadar')
  </code></pre>