Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying from Database to Database on the same Server

Status
Not open for further replies.

ADB1

Programmer
Aug 24, 2001
235
GB
Is it possible to copy from database to database on the same Teradata Box?

I have two diifferent databases sat on the same Teradata Server and want to copy the entire contents from one to the other. Is this easy?

Thanks in advance,

Adam.
 
You could submit a
CREATE TABLE newdb.tabname AS olddb.tabname WITH DATA;
for each table. This will copy including indices, but not Foreign Keys and SET/MULTISET.

Another way is backup olddb and restore into newdb using the COPY command.

Dieter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top