microsoft / microsoft/go-sqlcmd
Prefix @@servername of docker-instance with something more meaningful
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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