I am using SQL Server 2014 Management Studio. I am adding a delete feature on my application that will delete a row from Table1. It will first insert that row into Table2 and then delete it from Table1.
To get a duplication of Table1's columns for Table2, I could do this:
SELECT * INTO Table2 FROM Table1
However, is there a way to have Table2 automatically get all columns from Table1 on a constant basis? The reason I ask is because Table1 will have different columns added in the future, so having to manually duplicate this into Table2 will be an annoyance. Thanks!