microsoft / microsoft/go-sqlcmd

Prefix @@servername of docker-instance with something more meaningful

Open
#259 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
Go
Stars
595
Forks
91
Avg merge
9h 35m
Merged PRs (30d)
1

Description

With the ability to create docker instance via sqlcmd, I think there should also be some mechanism to confirm if user is connected to the docker instance created via sqlcmd or some other sql server instance post establishing connection.
One way to do this is by running select @@servername which displays only hash.
I wonder if labeling it something like sqlcmd-mssql-65f98dde9a9d would make more sense to distinguish itself.

1> select @@servername
2> go


--------------------------------------------------------------------------------------------------------------------------------
65f98dde9a9d


(1 row affected)

Opening this issue to investigate efforts required to achieve this.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how sqlcmd creates Docker instances and how the instance name is assigned for SQL Server connections. Trace whether that name can be configured or prefixed, then verify the resulting value through select @@servername. Done means Docker instances created via sqlcmd report a meaningful, distinguishable server name.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go, sql
Domain
cli, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.