Skip to content

For SqlServer I see no way to set TrustServerCertificate=True #113

@uptondev

Description

@uptondev

Extension Version

2.6.2

OS and Version

Windows 10

VS Code Version

v1.99.3

Database name and Version

Microsoft SQL Server 2022 (RTM) - 16.0.1000.6 (X64) Oct 8 2022 05:58:25 Copyright (C) 2022 Microsoft Corporation Express Edition (64-bit) on Windows 10 Pro 10.0 (Build 19045: ) (Hypervisor)

Steps to reproduce

Steps to Reproduce:

  1. Launch SSMS and connect with credentials below. Verify it works.
  2. Launch VS Code
  3. Edit .devdbrc to look like this:
    {
    "name": "My Sql Server",
    "type": "mssql",
    "host": "DESKTOP-YODA\SQLEXPRESS",
    "port": 1433,
    "username": "someROuser",
    "password": "someROuserPwd",
    "database": "TestDatabase"
    }
  4. Get a message toast that says...
    "The MSSQL connection My Sql Server specified in your config file is not valid" Source: DevDb

Expected behavior

I expected the database tools to pop up in the DEVDB panel. But I remembered, in SSMS, I need to check the checkbox "Trust Server Certificate" because my development environment uses a self-signed cert as is the default with SqlServer 2022. That could be the cause of the failure...

How can I add that to my configuration?

I'm really wanting the MCP server but could benefit from your tools window also! Thanks for any assistance you can provide.

Screenshots

Image

Additional context

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions