February 20, 2009 at 6:48 am
hi
i have 800 tables.is there any way to update the required columns on many tables with one statement
thanks
rock..:)
February 20, 2009 at 6:55 am
You can only update one table in an UPDATE statement, but the answer to your question is yes -
EXEC my_stored_procedure_which_updates_800_tables
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 20, 2009 at 8:16 am
There is an undocumented procedure:
sp_MSforeachtable
Search for it on google for more information.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply