Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain how to maintain a fill factor in existing indexes?

996


Tell me about the approaches which you used to counter the DI problems.

1356


how you can list all the tables in a database?

1026


How to use values from other tables in update statements in ms sql server?

1118


what are constraints? : Sql server database administration

1060


Explain datetimeoffset data type in sal server 2008?

915


How to populate a table in sql server?

965


What is coalesce and check constraint in sql server?

1122


What is Dependency Injection and provide example?

1122


When would you use a before or after trigger?

912


What is join query?

899


What are sparse columns?

1018


how to avoid cursors? : Sql server database administration

975


Can you change the data type of a column in a table after the table has been created? If so, which command would you use?

1036


Should you normalize audio?

944