How to a Query to copy data from on table to another table.
Answer Posted / mohamed ibrahim
To Copy the data from one table to another table
for ex . i have the table named as TempMaster that having
the fields ID ,Name .The having the following record
ID Name
1 Raja
2 Mohamed
I want the same record copy to TempMasterArcheived table
to copy this using the following code:
INSERT INTO TempMasterArcheived
EXECUTE
('SELECT * FROM TempMaster ')
ID Name
1 Raja
2 Mohamed
after the output of TempMasterArcheived is as follows
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How you can change a cross join into an inner join?
What are the limitations/drawbacks or ssrs 2008 r2?
Define right outer join?
How to rename an existing column with sql server management studio?
What happens to a trigger with multiple affected rows?
What is the osql utility?
What are the different types of lock modes in sql server 2000?
Types of Authentications in Sql Server? How user gets authenticated through windows authentication?
Explain the properties of subqueries in sql server?
Explain the difference between function and stored procedure?
Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?
How to generate create function script on an existing function?
What have included columns when we talk about sql server indexing?
What are the different types of data sources in ssrs?
How to provide column names in insert statements in ms sql server?