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
- Select a saved connection to reveal the toolbar icons. Click the Copy Connection button (the clipboard icon) to create a duplicate
- A New Connection tab opens with all settings pre-filled from the original. The name defaults to the original name with “Copy” appended
- Modify any settings you need (name, server, credentials, database) then click Save
The copy appears in the Connections panel alongside the original.
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