Skip to content

Expose server name/URL via azdata.ServerInfo #24202

Open
@zijchen

Description

@zijchen

Is your feature request related to a problem? Please describe.
ServerInfo is used to determine the target platform when creating a database project from an existing database. Unfortunately, Fabric DW has the same engine edition as Serverless DW (OnDemand) and the only way to differentiate the two is from the server URL.

Describe the solution or feature you'd like
The server URL be accessible via azdata.ServerInfo
https://github.com/microsoft/azuredatastudio/blob/25a658775c1de09448625410d9b12a2771d147ac/src/sql/azdata.d.ts#L530C19-L530C29

Describe alternatives you've considered
In #24014 I am using the server name from the ConnectionProfile, but it only works if the connection is already selected prior to creating a project (via the list of connections). There is no way to get the server name after using this dialog to select a connection:
image

Additional context
Server name is accessible via vscode-mssql

export interface IConnectionInfo {
/**
* server name
*/
server: string;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions