title: I want to update a table in each db on server
body: <p>I have a config table with same fields "SMTP_Server". I want to update the fields with new value in each database on the server.</p>
  
  <p><code>sp_foreachdb</code> updates last table (in last database). Why?</p>
  
  <p>please help</p>