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

Where sql server user names and passwords are stored in sql server? : sql server database administration

1041


List the different normalization forms?

969


What have included columns when we talk about sql server indexing?

1028


What do you know about system database? : SQL Server Architecture

975


What is indexing and its types?

1008


Define synonym?

1160


How to call a function from a stored procedure in SQL Server ?

1016


what are the reporting service components in SSRS?

163


How optimize sql query with multiple joins in sql server?

888


What is plan freezing?

959


Explain the usage of floor function in sql server.

954


How to convert a unicode strings to non-unicode strings?

1094


What keyword you will use to get schema appended to the result set of a ‘for xml’ query?

1017


Difference between connected and disconnected database in .net with sql server?

1087


Comment,Datatypes are unlimited

2055