How to a Query to copy data from on table to another table.

Answer Posted / rajeshbargode

we have to use INSERT INTO method.
with the use of this method we can easily transfer records
from one table to another table.we can not only use this
method in the same server but can aslo be done across the
server.for exmaple.if we have two table A1 and A2 then the
code is
INSERT INTO A2 select * from A2.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the database you used in your final year project?

539


Which tcp/ip port does sql server run on? How can it be changed?

578


What is “asynchronous” communication in sql server service broker?

548


Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

661


What does it mean to normalize a database and why would you do it?

532






What are the differences between union, intersect, and minus operators?

578


Can I work with several databases simultaneously? : sql server management studio

567


Which data types generate inaccurate results if used with an = or <> comparison in a where clause of a sql statement?

541


What is sql or structured query language?

688


Where is my database stored on the hard disk in ms sql server?

596


Can we do dml on views?

555


How to generate create function script on an existing function?

596


What is the difference between SQL notification and SQL invalidation?

592


Tell me time data type, datetime2, datetimeoffset data type in sql server 2008?

575


How to get a list of columns in a view using the "sp_columns" stored procedure?

620