[sql-server] How to save select query results within temporary table?