Skip to content

[Feature Request]: Keep same connection when opening a file #19477

Closed
@richardtallent-erm

Description

@richardtallent-erm

Feature Description

When I click a .sql file in the EXPLORER panel, I want the new tab that is opened to auto-connect to the same database as the previously active tab.

Problem and Motivation

I feel like I spend half my life now reconnecting to the same database as I open SQL files, make changes, and execute them.

This feature would be in line with ADS and MSSQLMS.

This is related to, but not the same as, #1769 and #788. All express the same general idea that the user should be able to move between tabs and have a persistent database connection rather than having to break their workflow to constantly select and wait for connections to the database they are working in.

Related Area

  • Connection dialog
    Query editor
    IntelliSense/auto-completion
    Query results panel
    Object Explorer
    Table Designer
    Schema Compare
    Schema Designer
    Query Plan Visualizer
    Other (please describe below)

If you selected "Other", please describe the area

No response

Confirmation

  • I have searched existing feature requests and couldn't find a match
    I want to help implement this feature

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @Benjin@aasimkhan30@richardtallent-erm

    Issue actions

      [Feature Request]: Keep same connection when opening a file · Issue #19477 · microsoft/vscode-mssql