I want to declare a table variable and fill it with a select, without having to explicitly define its columns. Does T-SQL allow something like this:
DECLARE @people TABLE() SELECT * FROM Persons;
Hypothetically, the above statement would match column types identically, and fill the @people table variable at the same time. :)