Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to Copy data from one table to another table?

Author  Topic 

vinoth86
Starting Member

27 Posts

Posted - 2008-04-21 : 00:28:23
Hi,
I need to recover a table.

I have restored completed database to a temp DB.

I do know,how to use export and import.

Any one can help me?

Regards,
Vinoth

pravin14u
Posting Yak Master

246 Posts

Posted - 2008-04-21 : 01:58:32
Create Table NewTableName
Select * from OldTableName

Prakash.P
The secret to creativity is knowing how to hide your sources!
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-04-21 : 05:33:09
quote:
Originally posted by pravin14u

Create Table NewTableName
Select * from OldTableName

Prakash.P
The secret to creativity is knowing how to hide your sources!


Did you mean this?

Select * into NewTableName from OldTableName

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -