I am trying to insert data from one of my existing table into another existing table.
Is it possible to insert data into any existing table using select * into
No, you cannot use SELECT INTO
to insert data into an existing table.
The documentation makes this very clear:
SELECT…INTO creates a new table in the default filegroup and inserts the resulting rows from the query into it.
You generally want to avoid using SELECT INTO
in production because it gives you very little control over how the table is created, and can lead to all sorts of nasty locking and other performance problems. You should create schemas explicitly and use INSERT
- even for temporary tables.