INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Transferring data from one db to another

Transferring data from one db to another

(OP)
Hi everyone,

What is the correct SQL syntax to transfer data from one SQLBase database to another. In MS SQL Server 2000,
databasename.dbowner.tablename seem to do the trick.

Please advise,

Audrey

RE: Transferring data from one db to another

What is the condition of the destination database? Is it an empty schema? Is it a copy of the source db? Does it contain data from a different schema? Your copy options depend on the conditions of the destination db.

RE: Transferring data from one db to another

Hello,

One can copy data from one source table to another the following maner,

Copy <cursor number> source table to <cursor number> destination table;

e.g SQL> COPY EMP TO 2.EMPLOYEES;

NOTE : THE DESTINATION TABLE MUST EXIST.\

If you have toconnect toanother DB and copy from another table,
SQL> Connect DatabaseName 2 Username/Password;
SQL> Create TABLE <TABLENAME> ( COL1 DATATYPE, COL2 DATATYPE......);
SQL>COPY 1.TABLENAME TO TABLENAME2;

Let me know if this helped.

regards....
indoaryaan.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close