Copy

Duplicate an existing database connection in DBCode to reuse settings or create variations without starting from scratch.

Duplicate an existing connection to reuse its settings, useful when you need a similar connection with minor changes like a different database, user, or role.

How to Copy

  1. Select a saved connection to reveal the toolbar icons. Click the Copy Connection button (the clipboard icon) to create a duplicate
Selected connection showing toolbar icons including copy connection
The Copy Connection button in the connection toolbar
  1. A New Connection tab opens with all settings pre-filled from the original. The name defaults to the original name with “Copy” appended
New Connection form with pre-filled settings from the copied connection
The New Connection form with settings copied from the original connection
  1. Modify any settings you need (name, server, credentials, database) then click Save

The copy appears in the Connections panel alongside the original.

Connections panel showing both the original and copied connection
The copied connection appears in the Connections panel

You can also right-click a connection and select Copy Connection from the context menu.

When to Copy

  • Multiple environments - Copy a production connection and change the host for staging or development
  • Different credentials - Same server, different user or role
  • Testing variations - Experiment with connection settings without affecting the original