I have only just become aware of the option to use a table variable to substitute for a temporary table and I'd like to start taking this approach. Is it possible to direct the results of a SELECT INTO to a table variable without having declared any columns for that table - e.g. something like:
This doesn't work but hopefully you can see where I'm heading.
Code:
DECLARE @MyTable as Table ()
SELECT * INTO MyTable FROM Client