Skip to content

docs: warn about shared sqlcmd context in CLI docs#62

Merged
Hinne1 merged 1 commit intomainfrom
claude/sqlcmd-context-safety
Mar 24, 2026
Merged

docs: warn about shared sqlcmd context in CLI docs#62
Hinne1 merged 1 commit intomainfrom
claude/sqlcmd-context-safety

Conversation

@Hinne1
Copy link
Contributor

@Hinne1 Hinne1 commented Mar 24, 2026

Summary

  • sqlcmd config is shared across all Claude sessions and users on the same machine
  • Another session can switch the context at any time, causing queries to run against the wrong database
  • Updated docs to always chain sqlcmd config use-context <name> && before every query

Discovered during a local E2E setup session where context silently switched from local to stage mid-session.

Multiple Claude sessions and users share the same sqlcmd config file.
Another session can switch the context at any time, so always set it
explicitly before every query using chained && commands.
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@Hinne1 Hinne1 marked this pull request as ready for review March 24, 2026 06:34
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@Hinne1 Hinne1 merged commit 1e789dd into main Mar 24, 2026
7 checks passed
@Hinne1 Hinne1 deleted the claude/sqlcmd-context-safety branch March 24, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant