microsoft / microsoft/go-sqlcmd

Add a command to create/add a user

Open
#312 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It would be create if sqlcmd could support the creation of database users/logins. For example, something like

sqlcmd user add -u Davide -p <Password>

for adding a SQL user into the database pointed at by the active context, or

sqlcmd user add -u damauri@microsoft

for adding a AAD user

In both cases the users would be added to the database (creating the login if necessary) and then it would also be stored in the context config so that it could be used when generating the connection string:

sqlcmd config connection-strings -u damauri@microsoft

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 tracing the existing sqlcmd command structure, active-context handling, and the config connection-strings command. Define how user add should handle SQL users, logins, and AAD users, then verify that both user types are stored in context config and usable when generating connection strings.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, go, sql
Domain
authentication, authorization, cli, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.