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

What is the syntax to execute the sys.dm_db_missing_index_details?

966


How can sql server instances be hidden? : sql server security

1053


What command is used to create a database in the sql server and how?

1112


Can coalesce return null?

946


How to convert a numeric expression from one data type to another?

933


Is it possible to create trigger on views?

934


What do you understand by mirroring?

951


which backup strategy you are following at ur company

2103


Why we need sql server?

910


Explain what is use of dbcc commands?

988


What is the difference between varchar and nvarchar?

897


What are the hotfixes and patches in sql server?

973


Mention the differences between local and global temporary tables.

952


Do you know hot add cpu in sql server 2008?

899


When would you use it?

943