title: Using sp_MSForEachDB to update one table in all databases
body: <p>I've looked through all the threads regarding using sp_MSForEachDB and haven't found anything regarding updating.
  My issue is that I'm running the sp_MSForEachDB to pull information based on certain criteria into a Temp table.
  Now I want to use the same command to update one table in all the databases on the server based on the data that is in my temp table.
  I keep getting the same error Invalid object name 'UserAccount'.
  although all the databases have the same exact format and the same tables. I pulled the data from the same table using my Select statement but it won't allow me to update.
  Any suggestions. TIA</p>