SQL: How to make table name in stored procedure dynamic
问题 I am pretty new to SQL Server and hope someone here can help me with this (I'm using QL Server 2008). The following is a small procedure that works as intended. Now I would like to use the same procedure to update multiple tables as all these tables have exactly the same column names and column formatting, the only difference is the 2nd part of the table name for which I added XXX below. Can someone tell me how this could be made dynamic and also provide me some explanations on this ? I