FEAT: Copy table to another database / connection

Author: rathbomaCreated Sep 25, 2026Updated Sep 25, 2026
Labelsenhancementaccepted :+1:poweruser

Being able to copy a table to another database is super useful for:

  • People debugging a production issue who want a dev/staging version they can play with
  • Moving static data from one database to another (eg country data, product data, zip codes, etc)

Workflow should be:

  1. Right click table, Copy to...
  2. Select where you want it copied: current connection / other compatible connection -> database -> schema -> new/existing table
  3. Choose what they want to copy - schema only, data only, both. If on a tabletable with filters - should also allow them to copy filtered view. If not on tabletable, should give directions on how to copy a filtered view.
  4. If new table -> show table schema
  5. If existing table -> show incompatiblities, ask if it should truncate values first6. Inserting data runs in a transaction
  6. Some destinations might require the user to log in before connecting (eg: Azure CLI). It should handle this gracefully.
  7. Progress bar displays what's happening
  8. Summary at the end

Needs to handle situations like:

  • Table has an auto-increment primary key
  • What if inserting into a table without truncating and there's a PK conflict, or multiple PK conflicts?
  • What if inserting into an existing table and there's a validation conflict? Eg null / not null. What if there are dozens of bad rows?

Future: Copy multiple tables

Engineer note: This must use the same code on the backend as our CSV import code. This will also give us a good opportunity to update that code to make it more robust.

Source: beekeeper-studio/beekeeper-studio