Got a complex SELECT query, from which I would like to insert all rows into a table variable, but T-SQL doesn\'t allow it.
Along the same lines, you c
Try to use INSERT instead of SELECT INTO:
INSERT
SELECT INTO
INSERT @UserData SELECT name, location etc.