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

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

520


What are the different types of replication you can set up in sql server?

522


In one interview...interviewer ask me question pleas tell me sql server architecture.. can any body tell me the sql server architecture with digram

1505


What is a derived table?

503


We need to perform what steps in the following order to work with a cursor?

704






How to defragment table indexes?

544


Do you know the isolation level that sql server support?

519


Can a cursor be updated? If yes, how you can protect which columns are updated?

508


What is buffer cash and log cache in sql server?

585


What is the recursive stored procedure in sql server?

518


Define outer join in sql server joins?

515


Explain relational data?

535


What does COMMIT command do?

620


What are the diifferences between the ms sql server vs mysql?

645


What is clustered index

563